Avoid "inexact" exceptions in i386/x86_64 trunc 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_trunc.S (__trunc): Save and restore
5         floating-point environment rather than just control word.
6         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
7         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
8         floating-point environment, with "invalid" exceptions merged in,
9         rather than just control word.
10         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
11         * math/libm-test.inc (trunc_test_data): Do not allow spurious
12         "inexact" exceptions.
13
14         [BZ #15479]
15         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
16         floating-point environment rather than just control word.
17         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
18         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
19         floating-point environment, with "invalid" exceptions merged in,
20         rather than just control word.
21         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
22         * math/libm-test.inc (floor_test_data): Do not allow spurious
23         "inexact" exceptions.
24
25         [BZ #15479]
26         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
27         floating-point environment rather than just control word.
28         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
29         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
30         floating-point environment, with "invalid" exceptions merged in,
31         rather than just control word.
32         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
33         * math/libm-test.inc (ceil_test_data): Do not allow spurious
34         "inexact" exceptions.
35
36 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
37
38         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
39         __libc_vfork.
40         (__vfork) [IS_IN (libc)]: Remove alias.
41         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
42         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
43         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
44
45 2016-06-24  Torvald Riegel  <triegel@redhat.com>
46
47         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
48         of atomic_compare_and_exchange_bool_rel.
49         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
50         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
51         catomic_compare_and_exchange_bool_rel): Remove.
52         * sysdeps/aarch64/atomic-machine.h
53         (atomic_compare_and_exchange_bool_rel): Likewise.
54         * sysdeps/alpha/atomic-machine.h
55         (atomic_compare_and_exchange_bool_rel): Likewise.
56         * sysdeps/arm/atomic-machine.h
57         (atomic_compare_and_exchange_bool_rel): Likewise.
58         * sysdeps/mips/atomic-machine.h
59         (atomic_compare_and_exchange_bool_rel): Likewise.
60         * sysdeps/microblaze/atomic-machine.h
61         ( __arch_compare_and_exchange_bool_8_rel,
62         __arch_compare_and_exchange_bool_16_rel): Likewise.
63         * sysdeps/powerpc/atomic-machine.h
64         ( __arch_compare_and_exchange_bool_8_rel,
65         __arch_compare_and_exchange_bool_16_rel): Likewise.
66         * sysdeps/powerpc/powerpc32/atomic-machine.h
67         ( __arch_compare_and_exchange_bool_32_rel,
68         __arch_compare_and_exchange_bool_64_rel): Likewise.
69         * sysdeps/powerpc/powerpc64/atomic-machine.h
70         ( __arch_compare_and_exchange_bool_32_rel,
71         __arch_compare_and_exchange_bool_64_rel): Likewise.
72         * sysdeps/tile/atomic-machine.h
73         (atomic_compare_and_exchange_bool_rel): Likewise.
74
75 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
76
77         [BZ #20296]
78         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
79         when either argument is a NaN.
80         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
81         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
82
83         * math/libm-test.inc (snan_value_ld): New macro.
84         (isgreater_test_data): Add sNaN tests.
85         (isgreaterequal_test_data): Likewise.
86         (isless_test_data): Likewise.
87         (islessequal_test_data): Likewise.
88         (islessgreater_test_data): Likewise.
89         (isunordered_test_data): Likewise.
90         (nextafter_test_data): Likewise.
91         (nexttoward_test_data): Likewise.
92         (remainder_test_data): Likewise.
93         (remquo_test_data): Likewise.
94         (significand_test_data): Likewise.
95         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
96
97 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
98
99         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
100         environment macros are defined.
101         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
102
103 2016-06-23  Florian Weimer  <fweimer@redhat.com>
104
105         [BZ #20191]
106         Implement vtable verification in libio.
107         * Makerules (shlib.lds): Place __libc_IO_vtables section.
108         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
109         * debug/vdprintf_chk.c (__vdprintf_chk): Call
110         _IO_new_file_init_internal instead of _IO_file_init.
111         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
112         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
113         * libio/Makefile (routines): Add vtables.
114         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
115         (_IO_init): Remove, not for internal use.
116         (_IO_init_internal): Declare, internal replacement for _IO_init.
117         (_IO_file_init): Remove, not for internal use.
118         (_IO_new_file_init): Remove, not for internal use.
119         (_IO_new_file_init_internal): Declare, internal replacement for
120         _IO_new_file_init.
121         (_IO_old_file_init): Remove, not for internal use.
122         (_IO_old_file_init_internal): Declare, internal replacement for
123         _IO_old_file_init.
124         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
125         internal use.
126         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
127         Declare.
128         (libio_vtable): New macro.
129         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
130         functions.
131         * libio/fileops.c (_IO_new_file_init_internal): Rename from
132         _IO_new_file_init.
133         (_IO_new_file_init): New externally visible wrapper which disables
134         vtable verification.
135         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
136         Define as vtables.
137         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
138         (_IO_init): New externally visible wrapper which disables
139         vtable verification.
140         * libio/iofdopen.c (_IO_new_fdopen): Call
141         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
142         comment.
143         * libio/iofopen.c (__fopen_internal): Call
144         _IO_new_file_init_internal instead of _IO_file_init.
145         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
146         Define as vtables.
147         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
148         _IO_new_file_init_internal instead of _IO_file_init.
149         * libio/iopopen.c (_IO_new_popen): Likewise.
150         (_IO_proc_jumps): Define as vtable.
151         * libio/iovdprintf.c (_IO_vdprintf): Call
152         _IO_new_file_init_internal instead of _IO_file_init.
153         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
154         (__open_memstream): Call _IO_init_internal instead of _IO_init.
155         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
156         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
157         _IO_old_file_init.
158         (_IO_old_file_init): New externally visible wrapper which disables
159         vtable verification.
160         (_IO_old_file_jumps): Define as vtable.
161         * libio/oldiofdopen.c (_IO_old_fdopen): Call
162         _IO_old_file_init_internal instead of _IO_old_file_init.
163         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
164         * libio/oldiopopen.c (_IO_old_popen): Likewise.
165         (_IO_old_proc_jumps): Define as vtable.
166         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
167         Define as vtables.
168         * libio/vtables.c: New file.
169         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
170         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
171         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
172         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
173         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
174         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
175         instead of _IO_init.
176
177 2016-06-23  Florian Weimer  <fweimer@redhat.com>
178
179         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
180
181 2016-06-23  Florian Weimer  <fweimer@redhat.com>
182
183         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
184         potentially unused.
185
186 2016-06-22  Florian Weimer  <fweimer@redhat.com>
187
188         * test-skeleton.c (write_message): New function.
189         * malloc/tst-mallocfork2.c (write_message): Remove.
190         * debug/tst-longjmp_chk2.c (write_indented): New function.
191         (write_message): Remove.
192         (stackoverflow_handler): Call write_indented.
193
194 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
195
196         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
197         "inexact" exceptions after fnstenv.
198         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
199         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
200         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
201
202 2015-06-22  Zack Weinberg  <zackw@panix.com>
203
204         * sysdeps/generic/bits/hwcap.h: Moved to ...
205         * bits/hwcap.h: Here.
206
207 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
208
209         * sysdeps/aarch64/memcpy.S (memcpy):
210         Further tuning for performance.
211
212 2016-06-21  Florian Weimer  <fweimer@redhat.com>
213
214         [BZ #20284]
215         * malloc/arena.c (reused_arena): Do not return NULL if we start
216         out with a non-corrupted arena.
217
218 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
219
220         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
221         * misc/tst-preadvwritev.c: New file.
222         * misc/tst-preadvwritev64.c: Likewise.
223         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
224         usage.
225         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
226         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
227         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
228         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
229
230 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
231
232         [BZ #19654]
233         * sysdeps/x86_64/fpu/Makefile: Added new tests.
234         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
235         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
236         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
237         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
238         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
239         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
240         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
241         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
242         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
243         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
244         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
245         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
246         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
247         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
248         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
249         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
250         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
251         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
252         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
253         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
254         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
255         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
256         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
257         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
258         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
259
260 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
261
262         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
263         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
264
265 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
266
267         * sysdeps/aarch64/memcpy.S (memcpy):
268         Rewrite of optimized memcpy and memmove.
269         * sysdeps/aarch64/memmove.S (memmove): Remove
270         memmove code (merged into memcpy.S).
271
272 2016-06-20  Florian Weimer  <fweimer@redhat.com>
273
274         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
275         * sysdeps/generic/dl-dtv.h: New file.
276         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
277         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
278         (dtv_t): Remove.
279         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
280         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
281         (dtv_t): Remove.
282         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
283         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
284         (dtv_t): Remove.
285         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
286         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
287         (dtv_t): Remove.
288         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
289         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
290         (dtv_t): Remove.
291         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
292         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
293         (dtv_t): Remove.
294         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
295         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
296         (dtv_t): Remove.
297         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
298         (dtv_t): Remove.
299         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
300         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
301         (dtv_t): Remove.
302         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
303         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
304         (dtv_t): Remove.
305         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
306         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
307         (dtv_t): Remove.
308         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
309         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
310         (dtv_t): Remove.
311         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
312         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
313         (dtv_t): Remove.
314         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
315         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
316         (dtv_t): Remove.
317         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
318         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
319         (dtv_t): Remove.
320         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
321         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
322         (dtv_t): Remove.
323
324 2016-06-20  Florian Weimer  <fweimer@redhat.com>
325
326         Revert symbol poisoning of  __malloc_initialize_hook.
327         * include/stdc-predef.h (__malloc_initialize_hook): Remove
328         poisoning.
329         * malloc/Makefile: Remove un-poisoning.
330         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
331         instead of old__malloc_initialize_hook.
332         * malloc/malloc-hooks.h: Likewise.
333         * malloc/malloc.c: Likewise.
334         * malloc/mcheck-init.c: Likewise.
335
336 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
337
338         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
339
340 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
341
342         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
343         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
344         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
345         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
346
347 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
348
349         * NEWS: Mention addition of nextup and nextdown.
350         * manual/arith.texi: Document nextup and nextdown.
351         * manual/libm-err-tab.pl: Add nextup and nextdown.
352         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
353         * math/Versions (libm): Add GLIBC_2.24.
354         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
355         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
356         Add new test.
357         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
358         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
359         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
360         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
361         (nextup_test_data): Likewise.
362         (nextdown_test_data): Likewise.
363         * math/s_nextdown.c: New file.
364         * math/s_nextdownf.c: Likewise.
365         * math/s_nextdownl.c: Likewise.
366         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
367         F(nextup): New function.
368         F(nextdown): Likewise.
369         * math/tgmath.h: Add nextup and nextdown.
370         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
371         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
372         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
373         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
374         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
375         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
376         Add nextup and nextdown.
377         (CFLAGS-nldbl-nextup.c): New variable.
378         (CFLAGS-nldbl-nextdown.c): Likewise.
379         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
380         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
381         * sysdeps/nacl/libm.abilist: Update.
382         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
383         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
384         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
385         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
386         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
387         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
388         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
389         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
390         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
391         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
392         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
393         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
396         Likewise.
397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
399         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
400         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
401         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
402         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
403         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
404         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
405         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
406         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
407         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
408         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
409         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
410
411 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
412
413         * manual/pattern.texi: Fix typos & grammar errors.
414
415 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
416
417         * manual/search.texi: Fix typos & grammar errors.
418
419 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
420
421         * manual/message.texi: Fix typos & grammar errors.
422
423 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
424
425         * manual/contrib.texi: Fix spelling typos.
426         * manual/crypt.texi: Likewise.
427         * manual/filesys.texi: Likewise.
428         * manual/locale.texi: Likewise.
429         * manual/message.texi: Likewise.
430         * manual/nss.texi: Likewise.
431         * manual/string.texi: Likewise.
432
433 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
434
435         * manual/locale.texi: Fix typos & grammar errors.
436
437 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
438
439         * manual/charset.texi: Fix typos & grammar errors.
440
441 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
442
443         * manual/string.texi: Fix typos.
444
445 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
446
447         * manual/ctype.texi: Fix typos.
448
449 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
450
451         * manual/memory.texi: Fix various typos & grammar errors.
452
453 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
454
455         [BZ #20255]
456         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
457         * math/libm-test.inc (fdim_test_data): Add another test.
458
459         [BZ #6796]
460         [BZ #20255]
461         [BZ #20256]
462         * math/s_fdim.c: Include <math_private.h>.
463         (__fdim): Use math_narrow_eval on result.
464         * math/s_fdimf.c: Include <math_private.h>.
465         (__fdimf): Use math_narrow_eval on result.
466         * sysdeps/i386/fpu/s_fdim.S: Remove file.
467         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
468         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
469         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
470         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
471         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
472         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
473         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
474         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
475         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
476         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
477         * math/libm-test.inc (fdim_test_data): Expect errno setting on
478         overflow.  Add sNaN tests.
479
480         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
481         fpclassify.
482         * math/s_fdimf.c (__fdimf): Likewise.
483         * math/s_fdiml.c (__fdiml): Likewise.
484
485 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
486
487         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
488         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
489         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
490         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
491         ifunc'ed strcasecmp/strncasecmp.
492         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
493         [EALIGN]: Removed.
494         [END]: Likewise.
495         [__strcasecmp]: Define instead of the above to control symbol name.
496         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
497         for __strcasecmp_power8.
498         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
499         for __strncasecmp_power8.
500         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
501         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
502         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
503         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
504         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
505         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
506
507 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
508
509         [BZ #20252]
510         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
511         arguments when second argument is a NaN.
512         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
513         qNaN tests.
514
515         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
516         (conj_test_data): Likewise.
517         (copysign_test_data): Likewise.
518         (creal_test_data): Likewise.
519         (fma_test_data): Likewise.
520         (fmod_test_data): Likewise.
521
522         [BZ #20250]
523         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
524         itself.
525         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
526         zero input to itself.
527         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
528         Likewise.
529         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
530         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
531         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
532         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
533         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
534
535 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
536
537         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
538         * nptl/tst-cancel4-common.c: New file.
539         * nptl/tst-cancel4-common.h: Likewise.
540         * nptl/tst-cancel4.c: Move common definitions to
541         tst-cancel4-common.{c,h} file.
542         * nptl/tst-cancel4_1.c: New test.
543         * nptl/tst-cancel4_2.c: New test.
544
545 2016-06-13  Florian Weimer  <fweimer@redhat.com>
546
547         [BZ #20248]
548         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
549         (write_message): New function.
550         (stackoverflow_handler): Call it instead of printf, to avoid
551         excessive stack usage by printf.
552         (do_test): Restore SIGSEGV, SIGBUS default handlers.
553
554 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
555
556         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
557         (prio_inherit_missing): Remove define.
558         * sysdeps/unix/sysv/linux/arm/kernel-features.h
559         (__ASSUME_FUTEX_LOCK_PI): Likewise.
560         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
561         Likewise.
562         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
563         (__ASSUME_FUTEX_LOCK_PI): Likewise.
564         * sysdeps/unix/sysv/linux/mips/kernel-features.h
565         (__ASSUME_FUTEX_LOCK_PI): Likewise.
566         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
567         (__ASSUME_FUTEX_LOCK_PI): Likewise.
568
569 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
570
571         [BZ #19670]
572         [BZ #19672]
573
574         * io/test-lfs.c (do_prepare): Use xmalloc.
575         * io/tst-fcntl.c (do_prepare): Likewise.
576         * libio/tst-fopenloc.c (do_bz17916): Likewise.
577         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
578         * login/tst-utmp.c (do_prepare): Likewise.
579         * posix/tst-exec.c (do_prepare): Likewise.
580         * posix/tst-pathconf.c (prepare): Likewise.
581         * posix/tst-spawn.c (do_prepare): Likewise.
582         * posix/tst-truncate.c (do_prepare): Likewise.
583         * rt/tst-aio.c (do_prepare): Likewise.
584         * rt/tst-aio64.c (do_prepare): Likewise.
585
586 2016-06-11  Florian Weimer  <fweimer@redhat.com>
587
588         [BZ #20237]
589         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
590         (get*ent): Set entidx to NULL during initialization.  If entidx is
591         NULL, start iteration from the beginning.
592
593 2016-06-11  Florian Weimer  <fweimer@redhat.com>
594
595         * malloc/malloc.c (musable): Return correct size for dumped fake
596         mmapped chunk.
597
598 2016-06-11  Florian Weimer  <fweimer@redhat.com>
599
600         [BZ #20222]
601         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
602         (_IO_cookie_write): Likewise.
603         (_IO_cookie_seek): Likewise.
604         (_IO_cookie_close): Likewise.
605         (_IO_old_cookie_seek): Likewise.
606         (set_callbacks): New function.
607         (_IO_cookie_init): Call set_callbacks to copy callbacks.
608
609 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
610
611         * locale/programs/localedef.c (oldstyle_tables): Remove.
612         * locale/programs/localedef.h (oldstyle_tables): Likewise.
613
614 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
615
616         [BZ #20240]
617         * math/Makefile (CFLAGS-s_modf.c): New variable.
618         (CFLAGS-s_modff.c): Likewise.
619         (CFLAGS-s_modfl.c): Likewise.
620         * math/libm-test.inc (modf_test_data): Add sNaN tests.
621
622 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
623
624         [BZ #20215]
625         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
626         [!__GNUC_PREREQ (3,2)]: Likewise.
627
628 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
629
630         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
631         (msghdr.msg_controllen): Likewise.
632         (cmsghdr.cmsg_len): Likewise.
633         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
634         ptw-oldsendmsg.
635         (CFLAGS-oldrecvmsg.c): Remove rule.
636         (CFLAGS-oldsendmsg.c): Likewise.
637         (CFLAGS-recvmsg.c): Add rule.
638         (CFLAGS-sendmsg.c): Likewise.
639         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
640         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
641         (CFLAGS-recvmsg.c): Remove rule.
642         (CFLAGS-sendmsg.c): Likewise.
643         (CFLAGS-oldrecvmsg.c): Likewise.
644         (CFLAGS-oldsendmsg.c): Likewise.
645         (CFLAGS-recvmmsg.c): Likewise.
646         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
647         to kernel defined interfaces.
648         (msghdr.msg_controllen): Likewise.
649         (cmsghdr.cmsg_len): Likewise.
650         (msghdr.__glibc_reserved1): Remove member.
651         (msghdr.__glibc_reserved2): Likewise.
652         (cmsghdr.__glibc_reserved1): Likewise.
653         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
654         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
655         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
656         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
657         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
658         version.
659         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
660         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
661         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
662         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
663         Remove recvmsg and sendmsg.
664         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
665         Likewise.
666         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
667         Likewise.
668         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
669         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
670         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
671         Likewise.
672         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
673         Likewise.
674         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
675         [libc] (GLIBC_2.24): Likewise.
676         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
677         Likewise.
678         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
679         Likewise.
680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
681         [libc] (GLIBC_2.24): Likewise.
682         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
683         Likewise.
684         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
685         Likewise.
686         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
687         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
688         Likewise.
689         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
690         Likewise.
691         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
692         Likewise.
693         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
694         Likewise.
695         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
696         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
697         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
698         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
699         version for {recv,send,recm,sendm}msg.
700         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
701         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
702         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
703         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
704         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
705         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
706         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
707         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
708         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
709         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
710         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
711         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
713         Likewise.
714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
715         Likewise.
716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
718         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
719         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
720         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
721         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
722         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
723         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
724         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
725         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
726         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
727         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
728         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
729
730 2016-06-10  Florian Weimer  <fweimer@redhat.com>
731
732         [BZ #19564]
733         Remove __malloc_initialize_hook from the API.
734         * malloc/malloc.h (__malloc_initialize_hook): Remove.
735         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
736         #pragma GCC poison.
737         * malloc/malloc-hooks.h: New file.
738         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
739         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
740         (old__malloc_initialize_hook): Rename from
741         __malloc_initialize_hook to evade poisoning.  Turn into compat
742         symbol.
743         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
744         __malloc_initialize_hook.
745         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
746         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
747         * manual/memory.texi (Hooks for Malloc): Remove
748         __malloc_initialize_hook.  Adjust hook example.
749
750 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
751
752         [BZ #20235]
753         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
754         itself.
755         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
756         * math/libm-test.inc (log2_test_data): Add sNaN tests.
757
758         [BZ #20234]
759         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
760         infinity or NaN input to itself.
761
762         [BZ #20233]
763         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
764         to itself.
765
766         [BZ #20232]
767         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
768         itself.
769
770 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
771
772         * sysdeps/x86_64/start.S (_start): Always indirect branch to
773         __libc_start_main via GOT.
774
775 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
776
777         * sysdeps/x86_64/memcopy.h: New file.
778         * sysdeps/x86_64/wordcopy.c: Likewise.
779
780 2016-06-09  Florian Weimer  <fweimer@redhat.com>
781
782         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
783         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
784         <cstdlib>.
785         (optimization_barrier): New.
786         (do_test): Use it.  Call quick_exit in the global namespace.
787         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
788         instead of <cstdlib>, <thread>.
789         (optimization_barrier): New.
790         (non_main_thread): Adjust declaration.  Call optimization_barrier.
791         Call quick_exit in the global namespace.
792         (do_test): Call optimization_barrier.  Use pthread_create,
793         pthread_join instead of std::thread.
794
795 2016-06-09  Andreas Schwab  <schwab@suse.de>
796
797         [BZ #19755]
798         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
799         new entries in auto-propagate mode.
800         * nscd/grpcache.c (cache_addgr): Likewise.
801
802 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
803
804         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
805         New functions.
806         (add_temp_file): Use them.
807
808 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
809
810         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
811
812 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
813
814         [BZ #20229]
815         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
816         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
817         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
818
819         [BZ #20228]
820         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
821         itself.
822         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
823         * math/libm-test.inc (log10_test_data): Add sNaN tests.
824
825         [BZ #20227]
826         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
827         itself.
828         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
829         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
830         * math/libm-test.inc (log_test_data): Add sNaN tests.
831
832         [BZ #20226]
833         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
834         itself.
835         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
836         * math/libm-test.inc (exp_test_data): Add sNaN tests.
837         (exp10_test_data): Likewise.
838         (expm1_test_data): Likewise.
839
840         [BZ #20225]
841         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
842         itself.
843         * math/s_ldexpf.c (__ldexpf): Likewise.
844         * math/s_ldexpl.c (__ldexpl): Likewise.
845         * math/w_scalbln.c (__w_scalbln): Likewise.
846         * math/w_scalblnf.c (__w_scalblnf): Likewise.
847         * math/w_scalblnl.c (__w_scalblnl): Likewise.
848         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
849         (scalbln_test_data): Likewise.
850
851         [BZ #20224]
852         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
853         argument to itself.
854         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
855
856 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
857
858         [BZ #19776]
859         * sysdeps/x86_64/memcpy.S: Make it dummy.
860         * sysdeps/x86_64/mempcpy.S: Likewise.
861         * sysdeps/x86_64/memmove.S: New file.
862         * sysdeps/x86_64/memmove_chk.S: Likewise.
863         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
864         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
865         * sysdeps/x86_64/memmove.c: Removed.
866         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
867         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
868         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
869         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
870         Likewise.
871         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
872         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
873         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
874         memcpy-sse2-unaligned, memmove-avx-unaligned,
875         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
876         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
877         (__libc_ifunc_impl_list): Replace
878         __memmove_chk_avx512_unaligned_2 with
879         __memmove_chk_avx512_unaligned.  Remove
880         __memmove_chk_avx_unaligned_2.  Replace
881         __memmove_chk_sse2_unaligned_2 with
882         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
883         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
884         with __memmove_avx512_unaligned.  Replace
885         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
886         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
887         with __memcpy_chk_avx512_unaligned.  Remove
888         __memcpy_chk_avx_unaligned_2.  Replace
889         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
890         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
891         Replace __memcpy_avx512_unaligned_2 with
892         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
893         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
894         with __mempcpy_chk_avx512_unaligned.  Remove
895         __mempcpy_chk_avx_unaligned_2.  Replace
896         __mempcpy_chk_sse2_unaligned_2 with
897         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
898         Replace __mempcpy_avx512_unaligned_2 with
899         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
900         Replace __mempcpy_sse2_unaligned_2 with
901         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
902         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
903         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
904         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
905         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
906         (ENTRY): Removed.
907         (END): Likewise.
908         (ENTRY_CHK): Likewise.
909         (libc_hidden_builtin_def): Likewise.
910         Don't include ../memcpy.S.
911         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
912         __memcpy_chk_avx512_unaligned_erms and
913         __memcpy_chk_avx512_unaligned.  Use
914         __memcpy_chk_avx_unaligned_erms and
915         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
916         Default to __memcpy_chk_sse2_unaligned.
917         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
918         Change function suffix from unaligned_2 to unaligned.
919         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
920         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
921         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
922         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
923         (ENTRY): Removed.
924         (END): Likewise.
925         (ENTRY_CHK): Likewise.
926         (libc_hidden_builtin_def): Likewise.
927         Don't include ../mempcpy.S.
928         (mempcpy): New.  Add a weak alias.
929         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
930         __mempcpy_chk_avx512_unaligned_erms and
931         __mempcpy_chk_avx512_unaligned.  Use
932         __mempcpy_chk_avx_unaligned_erms and
933         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
934         Default to __mempcpy_chk_sse2_unaligned.
935
936 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
937
938         [BZ #19881]
939         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
940         into ...
941         * sysdeps/x86_64/memset.S: This.
942         (__bzero): Removed.
943         (__memset_tail): Likewise.
944         (__memset_chk): Likewise.
945         (memset): Likewise.
946         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
947         defined.
948         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
949         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
950         (__memset_zero_constant_len_parameter): Check SHARED instead of
951         PIC.
952         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
953         memset-avx2 and memset-sse2-unaligned-erms.
954         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
955         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
956         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
957         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
958         (__bzero): Enabled.
959         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
960         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
961         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
962         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
963         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
964         (memset): Removed.
965         (__memset_chk): Likewise.
966         (MEMSET_SYMBOL): New.
967         (libc_hidden_builtin_def): Replace __memset_sse2 with
968         __memset_sse2_unaligned.
969         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
970         __memset_chk_sse2 and __memset_chk_avx2 with
971         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
972         Use __memset_chk_sse2_unaligned_erms or
973         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
974         __memset_chk_avx512_unaligned_erms and
975         __memset_chk_avx512_unaligned.
976
977 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
978
979         * math/gen-auto-libm-test.c (fp_format_desc): remove
980         suffix member.
981         (output_generic_value): Remove usage of suffix member,
982         and the resulting unuse of the fp_format argument.
983         (output_for_one_input_case): Remove unused fp_format
984         parameter.
985
986         * math/auto-libm-test-out: Regenerate.
987
988         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
989         usage with TEST_COND_ibm128.
990         (TEST_COND_flt_32): Remove.
991         (TEST_COND_dbl_64): Remove.
992         (TEST_COND_ldbl_96_intel): Remove.
993         (TEST_COND_ldbl_96_m68k): Remove.
994         (TEST_COND_ldbl_128): Remove.
995
996 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
997
998         * auto-libm-test-in:
999         Replace flt-32 usage with binary32.
1000         Replace dbl-64 usage with binary64.
1001         Replace ldbl-intel-96 usage with intel96.
1002         Replace ldbl-m68k-96 usage with m68k96.
1003         Replace ldbl-128ibm usage with ibm128.
1004         Replace ldbl-128 usage with binary128.
1005
1006         * auto-libm-test-out: Regenerate.
1007
1008 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1009
1010         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1011         (parse_ulps): Dynamically generate type name matching
1012         string from all_floats.
1013         (get_ulps): Generate the ulps as an array instead.
1014         (output_ulps): Dynamically compose the type based
1015         on the number of supported formats, and print
1016         the indices as type specific helper macros.
1017
1018         * math/libm-test.inc: Remove comment about CHOOSE.
1019         (ulp_data): Generate the type in libm-test-ulps.h.
1020         (ULP_IDX): New macro.
1021         (find_ulps): Update usage of max_ulp.
1022
1023         * math/test-double-vlen2.h (CHOOSE): Remove.
1024         * math/test-double-vlen4.h (CHOOSE): Likewise.
1025         * math/test-double-vlen8.h (CHOOSE): Likewise.
1026         * math/test-float.c (CHOOSE): Likewise.
1027         * math/test-float-finite.c (CHOOSE): Likewise.
1028         * math/test-double.c (CHOOSE): Likewise.
1029         * math/test-double-finite.c (CHOOSE): Likewise.
1030         * math/test-idouble.c (CHOOSE): Likewise.
1031         * math/test-ifloat.c (CHOOSE): Likewise.
1032         * math/test-ildoubl.c (CHOOSE): Likewise.
1033         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1034         * math/test-ldouble.c (CHOOSE): Likewise.
1035
1036         * math/test-float.h (TEST_FLOAT): Remove.
1037         * math/test-double.h (TEST_DOUBLE): Likewise.
1038         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1039
1040 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1041
1042         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1043         (parse_args): Strip C suffix from floating point literals
1044         typed with 'f' and wrap them with LIT().
1045
1046         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1047         (test_ff_f_data_nexttoward): Rename to
1048         (test_fj_f_data): New struct.
1049         (nexttoward_test_data): Relabel tests as
1050         TEST_fj_f instead of TEST_ff_f.
1051
1052 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1053
1054         Emacs bug 23726.
1055         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1056         (__libc_realloc): Correct size computation for dumped fake mmapped
1057         chunks.
1058
1059 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1060
1061         [BZ #20219]
1062         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1063         to itself.
1064         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1065
1066         [BZ #20218]
1067         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1068         to itself.
1069         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1070
1071 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1072
1073         [BZ #20195]
1074         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1075         check to ...
1076         (init_cpu_features): Here.
1077
1078 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1079
1080         [BZ #20214]
1081         * sysdeps/unix/sysv/linux/bits/in.h
1082         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1083          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1084         Define to 1.
1085         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1086          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1087         Define to 0.
1088         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1089         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1090
1091 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1092
1093         [BZ #20198]
1094         * stdlib/Makefile (tests): Add tst-quick_exit, and
1095         tst-thread-quick_exit.
1096         [ifeq ($(have-cxx-thread_local),yes)]
1097         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1098         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1099         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1100         (LDLIBS-tst-thread-quick_exit): Likewise.
1101         [ifneq ($(have-cxx-thread_local),yes)]
1102         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1103         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1104         If run_dtors is true call __call_tls_dtors.
1105         (exit): Call __run_exit_handlers with run_dtors set to true.
1106         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1107         definition.
1108         * stdlib/quick_exit.c (quick_exit): Remove function.
1109         (__new_quick_exit): New function.
1110         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1111         function.
1112         * stdlib/tst-quick_exit.cc: New file.
1113         * stdlib/tst-thread-quick_exit.cc: New file.
1114         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1115         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1116         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1117         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1118         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1119         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1120         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1121         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1122         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1123         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1124         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1125         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1126         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1127         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1128         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1129         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1134         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1135         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1136         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1137         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1138         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1139         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1140         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1141         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1142         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1143         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1144
1145 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1146
1147         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1148         a typo in comments.
1149
1150 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1151
1152         [BZ #20213]
1153         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1154         argument to itself.
1155         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1156
1157 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1158
1159         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1160         required flags.
1161         (CFLAGS-pwritev64.c): Likewise.
1162         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1163         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1164         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1165         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1166         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1167         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1168         syscall from auto-generation.
1169         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1170         [WORDSIZE == 64] (pwritev64): Remove macro.
1171         [!PWRITEV] (PWRITEV): Likewise.
1172         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1173         [!PWRITEV] (PWRITE): Likewise.
1174         [!PWRITEV] (OFF_T): Likewise.
1175         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1176         (LO_HI_LONG): Remove macro.
1177         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1178         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1179         (PWRITEV): Remove macro.
1180         (PWRITEV_REPLACEMENTE): Likewise.
1181         (PWRITE): Likewise.
1182         (OFF_T): Likewise.
1183         (pwritev64): New function.
1184         * nptl/tst-cancel4.c (tf_writev): Add test.
1185
1186         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1187         required flags.
1188         (CFLAGS-preadv64.c): Likewise.
1189         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1190         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1191         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1192         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1193         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1194         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1195         syscall from auto-generation.
1196         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1197         [WORDSIZE == 64] (preadv64): Remove macro.
1198         [!PREADV] (PREADV): Likewise.
1199         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1200         [!PREADV] (PREAD): Likewise.
1201         [!PREADV] (OFF_T): Likewise.
1202         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1203         (LO_HI_LONG): Remove macro.
1204         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1205         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1206         (PREADV): Remove macro.
1207         (PREADV_REPLACEMENTE): Likewise.
1208         (PREAD): Likewise.
1209         (OFF_T): Likewise.
1210         (preadv64): New function.
1211         * nptl/tst-cancel4.c (tf_preadv): Add test.
1212
1213 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1214
1215         [BZ #20212]
1216         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1217         argument to itself.
1218         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1219
1220 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1221
1222         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1223         New symbol defined as libc_hidden_def.
1224         (strcasestr): Became a weak alias to __strcasestr.
1225         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1226         according to multi-arch support.  Move __stpncpy hidden
1227         definition from here to...
1228         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1229         symbol stpncpy.
1230         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1231         libc_hidden_builtin_def.
1232         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1233         memset symbol to use when multi-arch support is available.
1234
1235 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1236
1237         * dlfcn/tst-rec-dlopen.c: Include string.h.
1238
1239 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1240
1241         * manual/install.texi: Remove mention of --without-tls
1242         * INSTALL: Regenerate.
1243
1244 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1245
1246         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1247         Remove.
1248         (call_function, interposed_malloc_called): New variables.
1249         (malloc): New function.
1250         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1251         and clear call_function as needed.
1252
1253 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1254
1255         * include/wchar.h (__wmemset): Use __typeof.
1256
1257 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1258
1259         * include/wchar.h (__wmemset): Declare function without typeof.
1260
1261 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1262
1263         [BZ #20205]
1264         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1265         exponent when incrementing negative subnormal with low mantissa
1266         word zero.
1267         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1268         Add another test.
1269
1270 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1271
1272         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1273         __wmemset instead of wmemset.
1274
1275 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1276
1277         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1278         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1279         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1280         __USE_KERNEL_IPV6_DEFS to 0.
1281         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1282         Update comment.
1283
1284 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1285
1286         [BZ #19861]
1287         Do not use IFUNC resolver with potentially unrelocated symbol.
1288         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1289         (DEFINE_FORK): Remove macro and inline definition.
1290         (fork_alias): Renamed from fork_ifunc.
1291         (__fork_alias): Renamed from __fork_ifunc.
1292
1293 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1294
1295         [BZ 19653]
1296         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1297         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1298
1299 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1300
1301         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1302         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1303         i386-linux-gnu).
1304         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1305         Set to no.
1306         * sysdeps/mach/hurd/configure: Refresh.
1307
1308 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1309
1310         [BZ #20178]
1311         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1312         on failure instead of exit.
1313
1314 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1315
1316         [BZ #3629]
1317         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1318         of POSIX.1-2008.
1319
1320 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1321
1322         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1323           Use PLT entry for calling _hurd_self_sigstate.
1324
1325 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1326
1327         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1328         available logical processors with SMT level type sharing L2
1329         cache for Intel processors.
1330
1331 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1332
1333         [BZ #20160]
1334         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1335         argument to itself before returning the result.
1336         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1337         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1338         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1339         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1340         Likewise.
1341         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1342         Likewise.
1343         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1344         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1345         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1346         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1347         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1348         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1349
1350         [BZ #20160]
1351         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1352         argument to itself before returning the result.
1353         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1354         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1355         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1356         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1357         Likewise.
1358         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1359         Likewise.
1360         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1361         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1362         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1363         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1364         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1365         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1366
1367 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1368
1369         * libm-test.inc: Replace usage of M_El with
1370         (lit_e): New macro.
1371
1372 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1373
1374         * libm-test.inc: Replace usage of M_PI_4l with
1375         (lit_pi_4_d): New macro.
1376
1377 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1378
1379         * libm-test.inc: Replace usage of M_PIl with
1380         (lit_pi): New macro.
1381
1382 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1383
1384         * libm-test.inc: Replace usage of M_PI2l with
1385         (lit_pi_2_d): New macro.
1386
1387         * math/test-double.h (LITM): New macro.
1388         * math/test-float.h (LITM): Likewise.
1389         * math/test-ldouble.h (LITM): Likewise.
1390
1391 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1392
1393         * libm-test.inc (M_PI_34l): Rename to
1394         (lit_pi_3_m_4_d): New Macro.
1395         (M_PI_34_LOG10El): Rename to
1396         (lit_pi_3_m_4_ln10_m_d): New Macro.
1397         (M_PI2_LOG10El): Rename to
1398         (lit_pi_2_ln10_m_d):  New Macro.
1399         (M_PI4_LOG10El): Rename to
1400         (lit_pi_4_ln10_m_d):  New Macro.
1401         (M_PI_LOG10El): Rename to
1402         (lit_pi_ln10_d):  New Macro.
1403
1404 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1405
1406         [BZ #20157]
1407         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1408         determine whether to negate low half if [_ARCH_PPCGR], and integer
1409         comparison otherwise.
1410         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1411         determine whether to negate low half.
1412
1413         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1414         (NO_TEST_INLINE_DOUBLE): Likewise.
1415         (TEST_COND_x86_64): Likewise.
1416         (TEST_COND_x86): Likewise.
1417         (M_PI_6l): Likewise.
1418
1419 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1420
1421         * math/libm-test.inc:
1422         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1423         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1424         (TEST_LDOUBLE): Update usage to evaluate as true if
1425         the guarded tests match the property being tested.
1426         (LDBL_MAX_EXP): Change to MAX_EXP.
1427         (LDBL_MIN_EXP): Change to MIN_EXP.
1428         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1429         nexttoward tests.
1430
1431 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1432
1433         * math/libm-test.inc:
1434         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1435         (TYPE_MIN): Likewise.
1436         (TYPE_TRUE_MIN): Likewise.
1437         (TYPE_MAX): Likewise.
1438         (MIN_EXP): Likewise.
1439         (MAX_EXP): Likewise.
1440         (MANT_DIG): Likewise.
1441
1442         (FSTR_MAX): New macro.
1443         (__CONCATX): Likewise.
1444         (QTYPE_STR): Likewise.
1445         (TEST_COND_binary32): Likewise.
1446         (TEST_COND_binary64): Likewise.
1447         (TEST_COND_binary128): Likewise.
1448         (TEST_COND_ibm128): Likewise.
1449         (TEST_COND_intel96): Likewise.
1450         (TEST_COND_m68k96): Likewise.
1451
1452         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1453         (TEST_COND_dbl_64): Likewise.
1454         (TEST_COND_ldbl_96_intel): Likewise.
1455         (TEST_COND_ldbl_96_m68k): Likewise.
1456         (TEST_COND_ldbl_128): Likewise.
1457         (TEST_COND_ldbl_128ibm): Likewise.
1458
1459         (plus_zero): Redefine using LIT macro.
1460         (minus_zero): Likewise.
1461         (plus_infty): Redefine as (INF).
1462         (minux_infty): Redefine as (-INF).
1463         (max_value): Redefine as TYPE_MAX.
1464         (min_value): Redefine as TYPE_MIN.
1465         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1466
1467         (print_float): Refactor to use snprintf to convert FLOAT values
1468         to string. This brings it closer to dropin replacement of strtof
1469         for the TS 18661 defined types.
1470         (update_stats): Likewise.
1471         (print_complex_function_ulps): Likewise.
1472         (print_max_error): Likewise.
1473         (print_complex_max_error): Likewise.
1474         (check_float_internal): Likewise.
1475
1476         * math/test-float.h (PREFIX): New macro.
1477         (LIT): Likewise.
1478         (TYPE_STR): Likewise.
1479         (FTOSTR): Likewise.
1480
1481         * math/test-double.h (PREFIX): New macro.
1482         (LIT): Likewise.
1483         (TYPE_STR): Likewise.
1484         (FTOSTR): Likewise.
1485
1486         * math/test-ldouble.h (PREFIX): New macro.
1487         (LIT): Likewise.
1488         (TYPE_STR): Likewise.
1489         (FTOSTR): Likewise.
1490
1491 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1492
1493         [BZ #20156]
1494         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1495         to itself when zero or not finite.
1496         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1497         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1498         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1499         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1500
1501 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1502
1503         [BZ #20153]
1504         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1505         x * x + x for infinities and NaNs.
1506
1507         [BZ #20151]
1508         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1509         argument to itself before returning result.
1510         (__ieee754_y0l): Likewise.
1511         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1512         (__ieee754_y1l).
1513
1514         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1515         (atan_test_data): Likewise.
1516         (ceil_test_data): Likewise.
1517         (cos_test_data): Likewise.
1518         (cosh_test_data): Likewise.
1519         (erf_test_data): Likewise.
1520         (exp2_test_data): Likewise.
1521         (fabs_test_data): Likewise.
1522         (floor_test_data): Likewise.
1523         (ilogb_test_data): Likewise.
1524         (j0_test_data): Likewise.
1525         (j1_test_data): Likewise.
1526         (jn_test_data): Likewise.
1527         (lgamma_test_data): Likewise.
1528         (lrint_test_data): Likewise.
1529         (llrint_test_data): Likewise.
1530         (logb_test_data): Likewise.
1531         (lround_test_data): Likewise.
1532         (llround_test_data): Likewise.
1533         (nearbyint_test_data): Likewise.
1534         (rint_test_data): Likewise.
1535         (round_test_data): Likewise.
1536         (sin_test_data): Likewise.
1537         (sincos_test_data): Likewise.
1538         (sinh_test_data): Likewise.
1539         (sqrt_test_data): Likewise.
1540         (tan_test_data): Likewise.
1541         (tanh_test_data): Likewise.
1542         (tgamma_test_data): Likewise.
1543         (trunc_test_data): Likewise.
1544         (y0_test_data): Likewise.
1545         (y1_test_data): Likewise.
1546         (yn_test_data): Likewise.
1547
1548         * math/libm-test.inc: Update comment about NaN testing.
1549         (TEST_SNAN): New macro.
1550         (snan_value): Likewise.
1551         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1552         (fpclassify_test_data): Add sNaN tests.
1553         (isfinite_test_data): Likewise.
1554         (isinf_test_data): Likewise.
1555         (isnan_test_data): Likewise.
1556         (isnormal_test_data): Likewise.
1557         (issignaling_test_data): Likewise.
1558         (signbit_test_data): Likewise.
1559         * math/gen-libm-test.pl (%beautify): Add snan_value.
1560         (show_exceptions): Add argument $test_snan.
1561         (parse_args): Handle snan_value as non-finite.  Update call to
1562         show_exceptions.
1563         * math/Makefile (libm-test-no-inline-cflags): Add
1564         -fsignaling-nans.
1565
1566 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1567
1568         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1569         (CFLAGS-oldsendmsg.c): Add rule.
1570         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1571         Correct recvmsg symbol name.
1572         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1573         Likewise.
1574
1575 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1576
1577         * sysdeps/unix/sysv/linux/Makefile
1578         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1579         oldsendmmsg.
1580         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1581         sendmmsg.
1582         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1583         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1584         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1585         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1587         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1588         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1589         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1590         Likewise.
1591         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1592         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1593         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1594         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1595         iovlen and controllen fields to adjust to POSIX specification.
1596         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1597
1598         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1599         and change to correct expected type.
1600         (msghdr.msg_controllen): Likewise.
1601         (cmsghdr.cmsg_len): Likewise.
1602         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1603         expected POSIX assumption about the size.
1604         (msghdr.msg_controllen): Likewise.
1605         (msghdr.__glibc_reserved1): Likewise.
1606         (msghdr.__glibc_reserved2): Likewise.
1607         (cmsghdr.cmsg_len): Likewise.
1608         (cmsghdr.__glibc_reserved1): Likewise.
1609         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1610         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1611         (CFLAGS-sendmsg.c): Remove rule.
1612         (CFLAGS-recvmsg.c): Likewise.
1613         (CFLAGS-oldsendmsg.c): Add rule.
1614         (CFLAGS-oldrecvmsg.c): Likewise.
1615         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1616         recvmsg and sendmsg.
1617         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1618         Likewise.
1619         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1620         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1621         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1622         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1623         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1624         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1625         Likewise.
1626         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1627         Likewise.
1628         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1629         Likewise.
1630         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1631         Likewise.
1632         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1633         Likewise.
1634         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1635         Likewise.
1636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1637         (GLIBC_2.24): Likewise.
1638         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1639         Likewise.
1640         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1641         Likewise.
1642         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1643         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1644         Likewise.
1645         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1646         Likewise.
1647         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1648         Likewise.
1649         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1650         (GLIBC_2.24): Likewise.
1651         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1652         Likewise.
1653         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1654         Likewise.
1655         * sysdeps/unix/sysv/linux/Makefile
1656         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1657         (CFLAGS-sendmsg.c): Add rule.
1658         (CFLAGS-recvmsg.c): Likewise.
1659         (CFLAGS-oldsendmsg.c): Likewise.
1660         (CFLAGS-oldrecvmsg.c): Likewise.
1661         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1662         initialization.
1663         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1664         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1665         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1666         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1667         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1668         iovlen and controllen fields to adjust to POSIX specification.
1669         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1670         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1671         added recvmsg and sendmsg.
1672         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1673         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1674         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1675         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1676         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1677         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1678         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1679         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1680         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1681         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1682         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1683         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1685         Likewise.
1686         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1688         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1689         Likewise.
1690         Likewise.
1691         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1692         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1693         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1694         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1695         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1696         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1697         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1698         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1699         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1700         Likewise.
1701         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1702         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1703
1704         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1705         from auto-generation.
1706         (sendmsg): Likewise.
1707         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1708         (sendmsg): Likewise.
1709         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1710         (sendmsg): Likewise.
1711         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1712         (sendmsg): Likewise.
1713         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1714         (sendmsg): Likewise.
1715         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1716         (sendmsg): Likewise.
1717         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1718         Likewise.
1719         (sendmsg): Likewise.
1720         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1721         (sendmsg): Likewise.
1722         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1723         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1724         Remove.
1725         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1726         Likewise.
1727         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1728         Undefine.
1729         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1730         Likewise.
1731         * sysdeps/unix/sysv/linux/kernel-features.h
1732         (__ASSUME_SENDMSG_SYSCALL): Define.
1733         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1734         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1735         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1736         Remove.
1737         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1738         Likewise.
1739         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1740         Undefine.
1741         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1742         Likewise.
1743         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1744         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1745         Remove.
1746         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1747         Likewise.
1748         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1749         Undefine.
1750         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1751         Likewise.
1752         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1753         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1754         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1755         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1756         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1757         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1758         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1759         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1760         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1761
1762 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1763
1764         * stdlib/gen-tst-strtod-round.c: Add backslash to
1765         compile command in comment.
1766         (printfp): Remove the literal suffix, and define an infinite
1767         value as INF to avoid expansion clash with INFINITY.
1768         (round_str): Remove the literal suffix.
1769         (round_for_all): Likewise, remove the now duplicate ldbl-64
1770         entry, and remove some magic constants.
1771
1772         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1773         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1774         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1775         (_CONCAT): New macro.
1776         (CONCAT): Likewise.
1777         (CHOOSE_ld): Likewise.
1778         (CHOOSE_f): Likewise.
1779         (CHOOSE_d): Likewise.
1780         (FTYPE_MEMBER): Likewise.
1781         (BOOL_MEMBER): Likewise.
1782         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1783         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1784         (_XNTRY): Likewise.
1785         (XNTRY): Likewise.
1786         (_ENTRY): Likewise.
1787         (ENTRY): Likewise.
1788         (test_exactness): Generate members via macro.
1789         (test_results): Likewise.
1790         (test): Update members.
1791         (TEST): Redefine using new macros.
1792         (INF): New macro.
1793         (fetestmodes): New structure.
1794         (do_test): Refactor to be type generic.
1795         (test_in_one_mode): Refactor duplicate code into
1796         (GEN_ONE_TEST): New macro.
1797
1798         * stdlib/tst-strtod-round-data.h: Regenerate.
1799
1800         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1801         Extend to pass additional arbitrary parameters to
1802         generators.
1803
1804 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1805
1806         [BZ #15479]
1807         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1808         floating-point state after first floating-point operation on
1809         input.  Restore full floating-point state instead of just rounding
1810         mode.
1811         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1812         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1813         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1814         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1815         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1816
1817         [BZ #15479]
1818         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1819         floating-point state after first floating-point operation on
1820         input.  Restore full floating-point state instead of just rounding
1821         mode.
1822         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1823         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1824         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1825         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1826         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1827
1828 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1829
1830         [BZ #19727]
1831         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1832         valid high surrogate.
1833         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1834         of an utf16 surrogate.
1835         * iconv/gconv_simple.c (BODY): Likewise.
1836         * iconvdata/bug-iconv12.c: New file.
1837         * iconvdata/Makefile (tests): Add bug-iconv12.
1838
1839 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1840
1841         [BZ #19726]
1842         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1843         outptrp in case of an illegal input.
1844         * iconv/tst-iconv6.c: New file.
1845         * iconv/Makefile (tests): Add tst-iconv6.
1846
1847 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1848
1849         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1850         an error in case of a value in range of an utf16 low surrogate.
1851
1852 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1853
1854         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1855         an error in case of a value in range of an utf16 low surrogate.
1856
1857 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1858
1859         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1860         Move to ...
1861         * sysdeps/s390/Makefile: ... here.
1862         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1863         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1864         (BRANCH_ON_COUNT): New define.
1865         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1866         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1867         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1868         run on s390-32, too.
1869         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1870         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1871         run on s390-32, too.
1872         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1873         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1874         run on s390-32, too.
1875
1876 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1877
1878         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1879         etf3eh or new vector loop-variant.
1880
1881 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1882
1883         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1884         etf3eh or new vector loop-variant.
1885
1886 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1887
1888         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1889         or new vector loop-variant.
1890
1891 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1892
1893         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1894         Rename to TR_LOOP and usage of tr instead of troo instruction.
1895
1896 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1897
1898         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1899         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1900
1901 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1902
1903         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1904         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1905         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1906         New override define.
1907         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1908
1909 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1910
1911         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1912         * sysdeps/s390/configure.ac: Add test for S390 vector register
1913         support in gcc.
1914         * sysdeps/s390/configure: Regenerated.
1915
1916 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1917
1918         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1919         Install file from $(objpfx)gconv-modules.
1920         ($(objpfx)gconv-modules): Concatenate architecture specific file
1921         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1922         * sysdeps/s390/gconv-modules: New file.
1923         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1924         Deleted.
1925         ($(objpfx)gconv-modules-s390): Deleted.
1926         (sysdeps-gconv-modules): New variable.
1927
1928 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1929
1930         [BZ #15479]
1931         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1932         of immediate operand to rounding instruction.
1933         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1934         Likewise.
1935         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1936         Likewise.
1937         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1938         Likewise.
1939
1940 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1941
1942         * math/libm-test.inc (MIN_EXP): Directly define as
1943         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1944
1945 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1946
1947         * math/libm-test.inc (MANT_DIG): Directly define as
1948         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1949
1950 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1951
1952         * stdlib/gen-tst-strtod-round.c (main):
1953           Change usage to more closely match the generated
1954           output.  Add usage and compilation instructions.
1955           (string_to_fp): Add and use FILE* parameter as
1956           output target.
1957           (print_fp): Likewise.
1958           (round_str): Likewise.
1959           (round_for_all): Likewise.
1960         * stdlib/tst-strtod-round.c (tests): Move into
1961         * stdlib/tst-strtod-round-data.h: New file.
1962
1963 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1964
1965         [BZ #15479]
1966         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1967         (__round): Do not force "inexact" exception.
1968         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1969         variable.
1970         (__round): Do not force "inexact" exception.
1971         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1972         (__roundf): Do not force "inexact" exception.
1973         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1974         (__roundl): Do not force "inexact" exception.
1975         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1976         (__roundl): Do not force "inexact" exception.
1977         * math/libm-test.inc (round_test_data): Do not allow spurious
1978         "inexact" exceptions.
1979
1980         [BZ #15479]
1981         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1982         exception in comment.
1983         (huge): Remove variable.
1984         (__floor): Do not force "inexact" exception.
1985         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1986         "inexact" exception in comment.
1987         (huge): Remove variable.
1988         (__floor): Do not force "inexact" exception.
1989         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1990         exception in comment.
1991         (huge): Remove variable.
1992         (__floorf): Do not force "inexact" exception.
1993         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1994         exception in comment.
1995         (huge): Remove variable.
1996         (__floorl): Do not force "inexact" exception.
1997
1998         [BZ #15479]
1999         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2000         exception in comment.
2001         (huge): Remove variable.
2002         (__ceil): Do not force "inexact" exception.
2003         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2004         "inexact" exception in comment.
2005         (huge): Remove variable.
2006         (__ceil): Do not force "inexact" exception.
2007         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2008         (__ceilf): Do not force "inexact" exception.
2009         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2010         exception in comment.
2011         (huge): Remove variable.
2012         (__ceill): Do not force "inexact" exception.
2013
2014 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2015
2016         * config.h.in (BIND_NOW): New.
2017         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2018         * configure: Regenerated.
2019         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2020         indirect branch via the GOT slot.
2021
2022 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2023
2024         [BZ #19765]
2025         * sysdeps/s390/mempcpy.S: New File.
2026         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2027         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2028         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2029         Add mempcpy variants.
2030         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2031         (memcpy): Adjust to be usable from mempcpy entry point.
2032         (__memcpy_mvcle): Likewise.
2033         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2034         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2035         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2036         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2037         (__memcpy_z10): Likewise.
2038         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2039
2040 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2041
2042         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2043         Remove __GI_ symbol.
2044         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2045         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2046         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2047         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2048         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2049         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2050
2051 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2052
2053         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2054         Use cghi instead of chi to compare 64bit value.
2055
2056 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2057
2058         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2059         Jump to 1MB check before executing mvc-loop.
2060
2061 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2062
2063         [BZ #6527]
2064         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2065         unconditionally.
2066         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2067
2068 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2069
2070         * stdlib/tst-strtod6.c (do_test): Use new type generic
2071         invocation of the test function.
2072         (test): Refactor into ...
2073         (TEST_STRTOD): New macro base function.
2074
2075 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2076
2077         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2078         (TEST_STRTOD): New macro.
2079         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2080
2081 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2082
2083         * stdlib/tst-strtod6.c (do_test): Use new type generic
2084         invocation of the test function.
2085         (test): Refactor into ...
2086         (TEST_STRTOD): New macro base function.
2087
2088 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2089
2090         CVE-2016-4429
2091         [BZ #20112]
2092         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2093         payload.
2094
2095 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2096
2097         [BZ #20111]
2098         * bits/sockaddr.h (_SS_SIZE): Define.
2099         * bits/socket.h (_SS_SIZE): Remove.
2100         (_SS_PADSIZE): Adjust to account for all padding.
2101         (struct sockaddr_storage): Update comment.  Avoid implicit
2102         padding.
2103         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2104         (_SS_PADSIZE): Adjust to account for all padding.
2105         (struct sockaddr_storage): Update comment.  Avoid implicit
2106         padding.
2107         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2108         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2109         (_SS_PADSIZE): Adjust to account for all padding.
2110         (struct sockaddr_storage): Update comment.  Avoid implicit
2111         padding.
2112         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2113         __SS_SIZE is 126 in this version.
2114         * inet/tst-sockaddr.c: New file.
2115         * inet/Makefile (tests): Add tst-sockaddr.c
2116         (tst-sockaddr.c): Compile with non-strict aliasing.
2117
2118 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2119
2120         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2121         [XPG3 || XPG4].
2122         (NL_ARGMAX): Also expect for [XPG3].
2123         (NL_LANGMAX): Likewise.
2124         (NL_MSGMAX): Likewise.
2125         (NL_NMAX): Likewise.
2126         (NL_SETMAX): Likewise.
2127         (NL_TEXTMAX): Likewise.
2128         (NZERO): Likewise.
2129         (TMP_MAX): Likewise.
2130         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2131         variable.
2132
2133         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2134         (PF_MAX): Update value.
2135         (AF_KCM): New macro.
2136         (SOL_NETBEUI): Likewise.
2137         (SOL_LLC): Likewise.
2138         (SOL_DCCP): Likewise.
2139         (SOL_NETLINK): Likewise.
2140         (SOL_TIPC): Likewise.
2141         (SOL_RXRPC): Likewise.
2142         (SOL_PPPOL2TP): Likewise.
2143         (SOL_BLUETOOTH): Likewise.
2144         (SOL_PNPIPE): Likewise.
2145         (SOL_RDS): Likewise.
2146         (SOL_IUCV): Likewise.
2147         (SOL_CAIF): Likewise.
2148         (SOL_ALG): Likewise.
2149         (SOL_NFC): Likewise.
2150         (SOL_KCM): Likewise.
2151         (MSG_BATCH): New enum value and macro.
2152
2153 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2154
2155         [BZ #18185]
2156         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2157         sharing L2 cache to 2 for Knights Landing.
2158
2159 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2160
2161         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2162         (FTW_DP): Do not expect for [XPG3 || XPG4].
2163         (FTW_SL): Do not expect for [XPG3].
2164         (FTW_SLN): Likewise.
2165         (FTW_PHYS): Likewise.
2166         (FTW_MOUNT): Likewise.
2167         (FTW_DEPTH): Likewise.
2168         (FTW_CHDIR): Likewise.
2169         (nftw): Likewise.
2170         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2171         variable.
2172
2173 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2174
2175         * manual/errno.texi: Fix various typos & grammar errors.
2176
2177 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2178
2179         * manual/intro.texi: Fix duplicated typo.
2180
2181 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2182
2183         [BZ #13304]
2184         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2185         <float.h>, <math_private.h> and <stdlib.h>.
2186         (add_split): New function.
2187         (mul_split): Likewise.
2188         (ext_val): New typedef.
2189         (store_ext_val): New function.
2190         (mul_ext_val): New function.
2191         (compare): New function.
2192         (add_split_ext): New function.
2193         (__fmal): After checking for Inf, NaN and zero, compute result as
2194         an exact sum of scaled double values in round-to-nearest before
2195         adding those up and adjusting for other rounding modes.
2196         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2197         tests of fma.
2198         * math/auto-libm-test-out: Regenerated.
2199
2200 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2201
2202         [BZ #20119]
2203         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2204         processor level type mask for CPUID with EAX == 11.
2205
2206 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2207
2208         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2209         logical threads if the HTT bit is 0.
2210         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2211         (index_cpu_HTT): Likewise.
2212         (reg_HTT): Likewise.
2213
2214 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2215
2216         [BZ #20115]
2217         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2218         Remove alignments on jump targets.
2219
2220 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2221
2222         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2223         (getpwent): Likewise.
2224         (setpwent): Likewise.
2225         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2226         variable.
2227
2228         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2229         (remque): Likewise.
2230         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2231         variable.
2232
2233 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2234
2235         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2236         not being tested.
2237
2238 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2239
2240         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2241         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2242         call.
2243         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2244         (__condvar_cleanup1): Likewise.
2245
2246 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2247
2248         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2249         New
2250         (__pthread_unwind): Renamed to ...
2251         (PTHREAD_UNWIND): This.
2252         (__pthread_enable_asynccancel): Replace
2253         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2254
2255 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2256
2257         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2258         (CLONE_NEWCGROUP): New macro.
2259
2260         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2261         (Q_GETNEXTQUOTA): New macro.
2262
2263 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2264
2265         [BZ #19907]
2266         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2267         buffer updated by the previous run.
2268         * string/test-memcpy.c (do_one_test): Likewise.
2269         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2270         * string/test-memmove.c (do_one_test): Likewise.
2271
2272 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2273
2274         [BZ #20094]
2275         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2276         not [__USE_XOPEN].
2277         (unlockpt): Likewise.
2278         (ptsname): Likewise.
2279         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2280         variable.
2281
2282         [BZ #20076]
2283         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2284         instead of [__USE_UNIX98].
2285         (S_ISSOCK): Likewise.
2286         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2287         variable.
2288
2289         [BZ #20074]
2290         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2291         [__USE_POSIX].
2292         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2293         variable.
2294
2295         [BZ #20051]
2296         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2297         (ttyslot): Do not declare.
2298         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2299         (ttyslot): New prototype.
2300         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2301         variable.
2302         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2303
2304 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2305
2306         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2307
2308 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2309
2310         Fix race condition in tst-mallocfork2, use fewer resources.
2311         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2312         to current process group.
2313         (signal_sender): Yield in the non-sleeping case.
2314
2315 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2316
2317         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2318         (ecvt): Likewise.
2319         (fcvt): Likewise.
2320         (gcvt): Likewise.
2321         (getsubopt): Likewise.
2322         (grantpt): Likewise.
2323         (initstate): Likewise.
2324         (l64a): Likewise.
2325         (mktemp): Likewise.
2326         (mkstemp): Likewise.
2327         (ptsname): Likewise.
2328         (random): Likewise.
2329         (realpath): Likewise.
2330         (setstate): Likewise.
2331         (srandom): Likewise.
2332         (ttyslot): Likewise.
2333         (unlockpt): Likewise.
2334         (valloc): Likewise.
2335
2336         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2337         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2338         variable.
2339
2340 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2341
2342         [BZ #20072]
2343         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2344         init_cpu_features only if SHARED is defined.
2345         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2346
2347 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2348
2349         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2350         non-inclusive caches on Intel processors.
2351
2352 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2353
2354         * malloc/malloc.c (dumped_main_arena_start)
2355         (dumped_main_arena_end): New variables.
2356         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2357         (do_check_chunk): Skip dumped fake mmapped chunks.
2358         (munmap_chunk): Likewise.
2359         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2360         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2361         mmapped chunks.
2362         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2363         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2364         and dumped_main_arena_end to cover the dumped heap.
2365
2366 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2367
2368         * conform/data/time.h-data (getdate_err): Do not expect for
2369         [XPG3].
2370         (getdate): Likewise.
2371         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2372         variable.
2373
2374         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2375         (F_ULOCK): Likewise.
2376         (F_TEST): Likewise.
2377         (F_TLOCK): Likewise.
2378         (useconds_t): Likewise.
2379         (intptr_t): Do not expect for [XPG3] or [XPG4].
2380         (brk): Do not expect for [XPG3]
2381         (fchown): Likewise.
2382         (fchdir): Likewise.
2383         (ftruncate): Likewise.
2384         (getdtablesize): Likewise.
2385         (gethostid): Likewise.
2386         (getpagesize): Likewise.
2387         (getpgid): Likewise.
2388         (getsid): Likewise.
2389         (getwd): Likewise.
2390         (lchown): Likewise.
2391         (lockf): Likewise.
2392         (readlink): Likewise.
2393         (sbrk): Likewise.
2394         (setpgrp): Likewise.
2395         (setregid): Likewise.
2396         (setreuid): Likewise.
2397         (symlink): Likewise.
2398         (sync): Likewise.
2399         (truncate): Likewise.
2400         (ualarm): Likewise.
2401         (usleep): Likewise.
2402         (vfork): Likewise.
2403         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2404         variable.
2405
2406         [BZ #20054]
2407         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2408         not [__USE_UNIX98].
2409         * conform/data/unistd.h-data (gethostname): Do not expect for
2410         [XPG3].
2411
2412         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2413         [!POSIX] (S_IFBLK): Likewise.
2414         [!POSIX] (S_IFCHR): Likewise.
2415         [!POSIX] (S_IFIFO): Likewise.
2416         [!POSIX] (S_IFREG): Likewise.
2417         [!POSIX] (S_IFDIR): Likewise.
2418         [!POSIX] (S_IFLNK): Likewise.
2419         [!POSIX] (S_IFSOCK): Likewise.
2420         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2421         variable.
2422         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2423
2424 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2425
2426         * sysdeps/aarch64/memset.S (__memset):
2427         Rewrite of optimized memset.
2428
2429 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2430
2431         [BZ #19703]
2432         Partially async-signal-safe fork for single-threaded processes.
2433         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2434         variable.  Do not acquire and reset/release malloc and libio locks
2435         in single-threaded processes.
2436         * malloc/tst-mallocfork2.c: New file.
2437         * malloc/Makefile (tests): Add it.
2438
2439 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2440
2441         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2442         argument.  Use scratch buffer instead of extend_alloca.
2443         (gethosts): Use scratch buffer instead of extend_alloca.
2444         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2445         extend_alloca.
2446         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2447
2448 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2449
2450         [BZ #20055]
2451         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2452         instead of [__USE_UNIX98].
2453         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2454         [__USE_UNIX98].
2455         * conform/data/termios.h-data (tcgetsid): Do not expect for
2456         [XPG3].
2457         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2458         variable.
2459         (test-xfail-XPG4/termios.h/conform): Likewise.
2460
2461 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2462
2463         Do not use mcheck in localedef.
2464         * locale/programs/localedef.c (turn_on_mcheck)
2465         (__malloc_initialize_hook): Remove.
2466
2467 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2468
2469         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2470         * sysdeps/s390/s390-64/Makefile: Likewise.
2471
2472 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2473
2474         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2475         Remove ifunc-defines.sym.
2476         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2477         Likewise.
2478         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2479         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2480         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2481         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2482         rtld-global-offsets.sym.
2483         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2484         * sysdeps/x86/cpu-features-offsets.sym: This.
2485         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2486         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2487
2488 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2489
2490         [BZ #20073]
2491         * io/sys/stat.h (fchmod): Declare for
2492         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2493         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2494         variable.
2495
2496         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2497         [XPG3] (S_IFSOCK): Likewise.
2498         [XPG3] (S_ISVTX): Likewise.
2499         [XPG3] (S_ISLNK): Likewise.
2500         [XPG3] (S_ISSOCK): Likewise.
2501         [XPG3] (fchmod): Likewise.
2502         [XPG3] (lstat): Likewise.
2503         [XPG3] (mknod): Likewise.
2504
2505         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2506         [XPG3].  Expect type long and XFAIL for [XPG4].
2507         (st_blocks): Likewise.
2508
2509         [BZ #20044]
2510         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2511         (pthread_atfork): New prototype.
2512         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2513         variable.
2514
2515         [BZ #20043]
2516         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2517         prototype.
2518
2519 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2520
2521         [BZ #20017]
2522         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2523         gmtime.
2524
2525 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2526
2527         [BZ #19994]
2528         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2529         flag in _res.options.
2530
2531 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2532
2533         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2534         [XPG3 || XPG4].
2535         (blksize_t): Likewise.
2536         (clockid_t): Likewise.
2537         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2538         variable.
2539         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2540
2541 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2542
2543         * sysdeps/unix/sysv/linux/s390/init-first.c:
2544         Add VDSO_SYMBOL(getcpu).
2545         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2546         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2547         Add VDSO_SYMBOL(getcpu).
2548         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2549         New define HAVE_GETCPU_VSYSCALL.
2550         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2551
2552 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2553
2554         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2555         instead of <sysdeps/x86_64/cacheinfo.c>.
2556         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2557         * sysdeps/x86/cacheinfo.c: Here.
2558
2559 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2560
2561         * malloc/malloc-internal.h: Adjust header file guard.
2562
2563 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2564
2565         [BZ #19787]
2566         * inet/getnameinfo.c (check_sprintf_result): New function.
2567         (CHECKED_SNPRINTF): New macro.
2568         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2569         to the host buffer.
2570         (gni_host_local): Use checked_copy to copy the host name.
2571         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2572         (gni_serv_local): Use checked_copy to copy the service name.
2573         (getnameinfo): Remove unnecessary truncation of result buffers.
2574
2575 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2576
2577         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2578         in case of inet_ntop failure.
2579
2580 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2581
2582         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2583         avoid long lines.
2584         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2585         variables.
2586         (gni_host_inet, gni_host_local): Add comment.
2587         (gni_host): Add comment.  Use temporary to avoid long lines.
2588
2589 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2590
2591         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2592         registers specifiers where general purpose registers specifiers should
2593         have been used.
2594
2595 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2596
2597         [BZ #19779]
2598         CVE-2016-1234
2599         Avoid copying names of directory entries.
2600         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2601         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2602         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2603         (struct readdir_result): New type.
2604         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2605         (GL_READDIR): New macros.
2606         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2607         (convert_dirent, convert_dirent64): New functions.
2608         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2609         convert_dirent64.  Adjust references to the readdir result.
2610         * sysdeps/unix/sysv/linux/i386/glob64.c:
2611         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2612         * posix/bug-glob2.c (LONG_NAME): Define.
2613         (filesystem): Add LONG_NAME.
2614         (my_DIR): Increase the size of room_for_dirent.
2615
2616 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2617
2618         [BZ #20041]
2619         * misc/sys/select.h (__need_timespec): Only define if
2620         [__USE_XOPEN2K].
2621         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2622         variable.
2623         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2624         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2625         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2626
2627 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2628             Segher Boessenkool  <segher@gcc.gnu.org>
2629
2630         [BZ #20004]
2631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2632         (__novec_swapcontext): Add missing load.
2633
2634 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2635
2636         [BZ #20023]
2637         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2638         <time.h>.
2639         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2640         variable.
2641         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2642
2643 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2644
2645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2646         flags CLONE_VM compare.
2647
2648 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2649
2650         [BZ #20031]
2651         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2652         completely empty.
2653
2654 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2655
2656         [BZ #19573]
2657         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2658         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2659         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2660         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2661         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2662         (hesiod_free_list): Mark as hidden.
2663         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2664         res_set, res_get.
2665         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2666         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2667         (hesiod_init): Remove obsolete res_ninit call.
2668         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2669         (hesiod_bind): Do not call init.
2670         (get_txt_records): Use res_mkquery, res_send instead of
2671         res_nmkquery, res_nsend.
2672         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2673         instead of _nss_hesiod_init.
2674         (_nss_hesiod_initgroups_dyn): Likewise.
2675         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2676         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2677         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2678
2679 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2680
2681         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2682         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2683
2684 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2685
2686         * hesiod/hesiod.h: Remove RCS keyword.
2687         * hesiod/hesiod_p.h: Likewise.
2688
2689         * hesiod/hesiod.c: Likewise.
2690
2691 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2692
2693         [BZ #12450]
2694         * locale/iso-639.def: Add Samogitian/sgs.
2695
2696 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2697
2698         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2699
2700         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2701
2702 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2703             Carlos O'Donell  <carlos@redhat.com>
2704
2705         [BZ #19072]
2706         * grp/Makefile (headers): Add grp-merge.h
2707         (routines): Add grp-merge.
2708         * grp/getgrgid_r.c: Include grp-merge.h.
2709         (DEEPCOPY_FN): Define.
2710         (MERGE_FN): Define.
2711         * grp/getgrname_r.c: Include grp-merge.h.
2712         (DEEPCOPY_FN): Define.
2713         (MERGE_FN): Define.
2714         * grp/grp-merge.c: New file.
2715         * grp/grp-merge.h: New file.
2716         * include/grp-merge.h: New file.
2717         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2718         __copy_grp@GLIBC_PRIVATE.
2719         * manual/nss.texi (Actions in the NSS configuration): Describe
2720         return, continue, and merge.
2721         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2722         (DEEPCOPY_FN): Define.
2723         (MERGE_FN): Define.
2724         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2725         (DEEPCOPY_FN): Define.
2726         (MERGE_FN): Define.
2727         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2728         [!MERGE_FN]: Define __merge_einval.
2729         (CHECK_MERGE): Define.
2730         (REENTRANT_NAME): Process merge if do_merge is true.
2731         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2732         (__nss_getent_r): Likewise.
2733         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2734         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2735
2736 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2737
2738         [BZ #20012]
2739         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2740         length to calculate the buffer to read.
2741         (fmemopen_write): Set the buffer position based on bytes written.
2742         (fmemopen_seek): Return EINVAL for invalid whence modes.
2743
2744         [BZ #19957]
2745         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2746         tst-getpid2.
2747         (test): Add tst-clone2.
2748         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2749         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2750         pid/tid fields for CLONE_VM.
2751         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2752         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2753         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2754         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2755         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2756         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2757         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2758         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2760         Likewise.
2761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2762         Likewise.
2763         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2764         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2765         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2766         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2767         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2768         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2769         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2770         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2771
2772 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2773
2774         [BZ #19642]
2775         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2776         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2777         (gni_serv_local, gni_serv): New functions extracted from
2778         getnameinfo.
2779         (getnameinfo): Call gni_host and gni_serv to perform the
2780         processing.  Always free scratch buffer.
2781
2782 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2783
2784         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2785         remaining bytes in the dest string, with zeros.
2786
2787 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2788
2789         [BZ #20010]
2790         CVE-2016-3706
2791         * sysdeps/posix/getaddrinfo.c
2792         (convert_hostent_to_gaih_addrtuple): New function.
2793         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2794         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2795         AF_INET data.
2796
2797 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2798
2799         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2800         callback function gl_readdir.
2801         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2802         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2803         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2804         memcpy to copy the name.
2805         * manual/pattern.texi (Calling Glob): Document requirements for
2806         implementations of the gl_readdir callback function.
2807         * manual/examples/mkdirent.c: New example.
2808         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2809         per the manual guidance.
2810         * posix/tst-gnuglob.c (my_readdir): Likewise.
2811
2812 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2813
2814         [BZ #20014]
2815         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2816         not [__USE_POSIX].
2817         (getchar_unlocked): Likewise.
2818         (putc_unlocked): Likewise.
2819         (putchar_unlocked): Likewise.
2820         (flockfile): Likewise.
2821         (ftrylockfile): Likewise.
2822         (funlockfile): Likewise.
2823         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2824         variable.
2825         (test-xfail-XPG4/stdio.h/conform): Likewise.
2826
2827         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2828         Expect constant.
2829         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2830         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2831         variable.
2832         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2833         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2834
2835         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2836         [__USE_LARGEFILE64] (off64_t): Likewise.
2837         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2838         variable.
2839
2840 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2841
2842         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2843
2844 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2845
2846         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2847         * resolv/res_init.c: Likewise.
2848         * resolv/res_mkquery.c: Likewise.
2849
2850 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2851
2852         * resolv/res_init.c (isascii): Do not define.  Use definition in
2853         <ctype.h>.
2854         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2855         (LOG_AUTH): Remove.
2856         (SPRINTF): Remove, adjust caller.
2857         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2858
2859 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2860
2861         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2862         SUNSECURITY conditional.
2863         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2864
2865 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2866
2867         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2868         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2869         Remove BSD-related preprocessor conditionals.
2870         * conf/portability.h: Remove.
2871
2872 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2873
2874         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2875         * resolv/res_data.c: Likewise.
2876
2877 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2878
2879         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2880         * resolv/res_data.c: Remove code conditional on ultrix.
2881
2882 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2883
2884         * resolv/res_init.c (RFC1535): Do not define.  Remove
2885         RFC1535 preprocessor conditionals.
2886         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2887         because there configuration options which make the resolver
2888         behavior different.
2889
2890 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2891
2892         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2893         RESOLVSORT preprocessor conditionals.
2894         * resolv/nss_dns/dns-host.c: Likewise.
2895         * resolv/res_init.c: Likewise.
2896
2897 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2898
2899         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2900         is never defined.
2901
2902 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2903
2904         * inet/inet_lnaof.c: Remove SCSS keyword.
2905         * inet/inet_mkadr.c: Likewise.
2906         * inet/inet_net.c: Likewise.
2907         * inet/inet_netof.c: Likewise.
2908         * inet/rcmd.c: Likewise.
2909         * inet/rexec.c: Likewise.
2910         * inet/ruserpass.c: Likewise.
2911
2912 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2913
2914         * resolv/inet_addr.c: Remove _LIBC conditionals.
2915         * resolv/res_data.c: Likewise.
2916         * resolv/res_init.c: Likewise.
2917         * resolv/res_mkquery.c: Likewise.
2918         * resolv/res_libc.c: Update comment.
2919         * resolv/README: Update.
2920
2921 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2922
2923         * resolv/gethnamaddr.c: Remove SCSS keyword.
2924         * resolv/herror.c: Likewise.
2925         * resolv/inet_addr.c: Likewise.
2926         * resolv/inet_net_ntop.c: Likewise.
2927         * resolv/inet_net_pton.c: Likewise.
2928         * resolv/inet_neta.c: Likewise.
2929         * resolv/inet_ntop.c: Likewise.
2930         * resolv/inet_pton.c: Likewise.
2931         * resolv/ns_date.c: Remove RCS keyword.
2932         * resolv/ns_name.c: Likewise.
2933         * resolv/ns_netint.c: Likewise.
2934         * resolv/ns_parse.c: Likewise.
2935         * resolv/ns_print.c: Likewise.
2936         * resolv/ns_samedomain.c: Likewise.
2937         * resolv/ns_ttl.c: Likewise.
2938         * resolv/nsap_addr.c: Likewise.
2939         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2940         * resolv/res_data.c: Remove RCS keyword.
2941         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2942         * resolv/res_init.c: Likewise.
2943         * resolv/res_mkquery.c: Likewise.
2944         * resolv/res_query.c: Likewise.
2945         * resolv/res_send.c: Likewise.
2946
2947 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2948
2949         * conform/data/stdio.h-data (fdopen): Expect also for
2950         [XPG3 || XPG4].
2951
2952         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2953         (fseeko): Likewise.
2954         (ftello): Likewise.
2955         (ftrylockfile): Likewise.
2956         (funlockfile): Likewise.
2957         (getc_unlocked): Likewise.
2958         (getchar_unlocked): Likewise.
2959         (putc_unlocked): Likewise.
2960         (putchar_unlocked): Likewise.
2961
2962 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2963
2964         [BZ #19868]
2965         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2966         DNS packet syntax checks (which were not needed before).  Skip
2967         over non-PTR records.
2968
2969 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2970
2971         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2972         definition.  Include <stddef.h> instead.
2973
2974 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2975
2976         [BZ #19831]
2977         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2978         function.
2979         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2980         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2981
2982 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2983
2984         [BZ #19862]
2985         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2986         (getanswer_r): Do not call syslog.
2987         (gaih_getanswer_slice): Likewise.
2988         * resolv/gethnamaddr.c (AskedForGot): Remove.
2989         (getanswer): Do not call syslog.
2990         (gethostbyaddr): Likewise.
2991
2992 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2993
2994         * conform/data/signal.h-data (union sigval): Expect also if
2995         [XOPEN2K].
2996         (struct sigevent): Likewise.
2997         (SIGEV_NONE): Likewise.
2998         (SIGEV_SIGNAL): Likewise.
2999         (SIGEV_THREAD): Likewise.
3000         (SIGRTMIN): Likewise.
3001         (SIGRTMAX): Likewise.
3002         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3003         variable.
3004         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3005
3006 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3007
3008         [BZ #19830]
3009         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3010         (gaih_getanswer_slice): Likewise.
3011         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3012         Also check for availability of RR metadata.
3013
3014 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3015
3016         [BZ #19825]
3017         * resolv/res_send.c (send_vc): Remove early *resplen2
3018         initialization.  Set *resplen2 on socket error.  Call
3019         close_and_return_error for other errors.
3020
3021 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3022
3023         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3024         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3025         (SCM_IUCV_TRGCLS): New define.
3026
3027 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3028
3029         [BZ #20005]
3030         * libio/fmemopen.c (fmemopen_write): Update internal position after
3031         write.
3032         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3033         * stdio-common/tst-fmemopen4.c: New file..
3034
3035 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3036
3037         [BZ #19996]
3038         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3039         not [__USE_XOPEN2K].
3040         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3041         variable.
3042
3043         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3044         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3045         variable.
3046
3047         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3048         [__USE_XOPEN2K8].
3049         [__USE_LARGEFILE64] (off64_t): Likewise.
3050         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3051         variable.
3052
3053 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3054
3055         [BZ #19989]
3056         * libio/stdio.h (cuserid): Do not declare if
3057         [__USE_XOPEN2K && !__USE_GNU].
3058         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3059         variable.
3060
3061 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3062
3063         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3064         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3065         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3066         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3067         ifunc'ed strcspn.
3068         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3069         [EALIGN]: Removed.
3070         [END]: Likewise
3071         [STRSPN]: Define instead of the above to control symbol name.
3072         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3073         New file.
3074         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3075         Likewise.
3076         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3077         Likewise.
3078         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3079         Likewise.
3080         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3081         [INITIAL_MASK]: New macro.
3082         [STRCSPN]: Likewise.
3083         [UPDATE_MASK]: Likewise.
3084         [USE_AS_STRCSPN]: Lisewise.
3085
3086 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3087
3088         [BZ #19931]
3089         * stdio-common/tst-vfprintf-width-prec.c: New file.
3090         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3091         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3092         (generated): Add mtrace-related files.
3093         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3094         (tst-%-mem.out): New pattern rule, replaces
3095         tst-printf-bz18872-mem.out.
3096         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3097         specifier, deallocate any previously allocated work buffer.
3098
3099 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3100
3101         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3102         Add nop before __startcontext, add explaining comments.
3103
3104 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3105
3106         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3107         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3108         completely different API.
3109
3110         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3111         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3112         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3113         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3114         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3115         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3116         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3117         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3118         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3119         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3120
3121 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3122
3123         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3124
3125 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3126
3127         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3128         when it is the default of 0.
3129
3130 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3131
3132         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3133         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3134         (sysdep_routines): Add new strcasestr targets.
3135         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3136         (__libc_ifunc_impl_list): Likewise.
3137         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3138         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3139         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3140         * sysdeps/powerpc/powerpc64/power8/Makefile:
3141         New file to add strcasestr-ppc64 to sysdep_routines.
3142         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3143         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3144
3145 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3146
3147         * benchtests/Makefile (wcsmbs-benchset): Include only for
3148         native builds and runs.
3149         (LOCALES): Likewise.
3150         (bench-build): Build timing-type here instead of the bench
3151         target.  Generate locale only for native builds.
3152         * benchtests/README: Add note for cross-building.
3153
3154         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3155
3156         * benchtests/README: Update README to include instructions on
3157         using bench-build.
3158
3159         * Makefile.in (bench-build): New target.
3160         * Rules (PHONY): Add bench-build target.
3161         * benchtests/Makefile (bench): Depend on bench-build.
3162         (bench-build): New target.
3163
3164 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3165
3166         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3167         profil_reply_port.
3168         (profile_waiter): Do not initialize profil_reply_port.
3169         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3170         frequency instead of tick length in us.
3171
3172 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3173
3174         [BZ #18712]
3175         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3176         (__old_mempcpy_small): Likewise.
3177         (__old_strcpy_small): Likewise.
3178         (__old_stpcpy_small): Likewise.
3179         (__old_strpbrk_c2): Fix compat symbol name.
3180         (__old_strpbrk_c3): Likewise.
3181         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3182         (__mempcpy_small): Remove.
3183         (__strcpy_small): Remove.
3184         (__stpcpy_small): Remove.
3185
3186 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3187
3188         [BZ #19400]
3189         * locale/iso-639.def: Add the Talossan/tzl language.
3190
3191 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3192
3193         [BZ #16983]
3194         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3195         comment.  Add "ln" to strchr check on postal_fmt.
3196
3197 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3198
3199         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3200         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3201         tel_dom_fmt.
3202
3203 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3204
3205         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3206         (sysdep_routines): Added __strlen_power8.
3207         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3208         __strlen_power8 entry.
3209         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3210         Implementation for POWER8.
3211         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3212         for __strlen_power8.
3213         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3214         Implementation for POWER8.
3215
3216 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3217
3218         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3219
3220 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3221
3222         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3223         Goldmont and Airmont processors.
3224
3225 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3226
3227         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3228         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3229         (__STRING2_SMALL_GET32): Remove.
3230         (memset): Remove.
3231         (__memset_1): Remove.
3232         (__memset_gc): Remove.
3233         (__mempcpy): Remove.
3234         (mempcpy): Remove.
3235         (__mempcpy_args): Remove.
3236         (strchr): Remove.
3237         (strcpy): Remove.
3238         (strcpy_args): Remove.
3239         (__stpcpy_args): Remove.
3240         (__strcmp_cc): Remove.
3241         (__strcmp_gc): Remove.
3242         (strstr): Remove.
3243
3244 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3245
3246         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3247         * nis/nis_call.c (nis_server_cache_add): Likewise.
3248
3249 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3250
3251         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3252
3253 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3254
3255         * malloc/arena.c (__malloc_fork_lock_parent)
3256         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3257         internal_function attribute.
3258
3259 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3260
3261         * stdio-common/printf_fp.c (__printf_fp_l):
3262         Rename ___printf_fp_l to __printf_fp_l and
3263         remove strong alias. Use libc_hidden_def instead
3264         of ldbl_hidden_def macro.
3265
3266 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3267
3268         Remove malloc hooks from fork handler.  They are no longer needed
3269         because malloc runs right before fork, and no malloc calls from
3270         other fork handlers are not possible anymore.
3271         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3272         declarations.
3273         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3274         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3275         (atfork_recursive_cntr): Remove.
3276         (__malloc_fork_lock_parent): Do not override malloc hooks and
3277         thread_arena.
3278         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3279         thread_arena.
3280         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3281         thread_arena instead of save_arena.
3282
3283 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3284
3285         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3286         (thread_atfork, thread_atfork_static): Remove.
3287         * sysdeps/mach/hurd/malloc-machine.h:
3288         (thread_atfork, thread_atfork_static): Remove.
3289
3290 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3291
3292         [BZ #19431]
3293         Run the malloc fork handler as late as possible to avoid deadlocks.
3294         * malloc/malloc-internal.h: New file.
3295         * malloc/malloc.c: Include it.
3296         * malloc/arena.c (ATFORK_MEM): Remove.
3297         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3298         Update comment.
3299         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3300         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3301         Remove outdated comment.
3302         (ptmalloc_init): Do not call thread_atfork.  Remove
3303         thread_atfork_static.
3304         * malloc/tst-malloc-fork-deadlock.c: New file.
3305         * Makefile (tests): Add tst-malloc-fork-deadlock.
3306         (tst-malloc-fork-deadlock): Link against libpthread.
3307         * manual/memory.texi (Aligned Memory Blocks): Update safety
3308         annotation comments.
3309         * sysdeps/nptl/fork.c (__libc_fork): Call
3310         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3311         __malloc_fork_unlock_child.
3312         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3313
3314 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3315
3316         [BZ #19613]
3317         Remove union wait.
3318         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3319         (w_stopsig, w_stopval): Remove.
3320         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3321         stat_loc argument.
3322         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3323         (__WAIT_STATUS_DEFN): Remove.
3324         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3325         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3326         (wait, wait3, wait4): Use int * for the stat_loc argument.
3327         * posix/wait.c (__wait): Likewise.
3328         * posix/wait3.c (__wait3): Likewise.
3329         * posix/wait4.c (__wait4): Likewise.
3330         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3331         (__WAIT_STATUS_DEFN): Remove.
3332         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3333         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3334         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3335         argument.
3336         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3337         * sysdeps/posix/wait3.c (__wait3): Likewise.
3338         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3339         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3340         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3341         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3342         stat_loc argument.
3343         * manual/process.texi (BSD Wait Functions): Remove union wait.
3344
3345 2016-04-13  Andreas Schwab  <schwab@suse.de>
3346
3347         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3348         (test-extras): Add tst-tlsalign-vars.
3349         * math/Makefile: Wrap long lines.
3350         (libm-vec-test-wrappers): Define.
3351         (test-extras): Add $(libm-vec-test-wrappers).
3352         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3353         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3354         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3355         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3356         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3357         (extra-test-objs): Add corresponding objects.
3358
3359 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3360
3361         [BZ #19928]
3362         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3363         New.
3364         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3365         times of shared cache size.
3366         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3367         (VMOVNT): New.
3368         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3369         (VMOVNT): Likewise.
3370         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3371         (VMOVNT): Likewise.
3372         (VMOVU): Changed to movups for smaller code sizes.
3373         (VMOVA): Changed to movaps for smaller code sizes.
3374         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3375         comments.
3376         (PREFETCH): New.
3377         (PREFETCH_SIZE): Likewise.
3378         (PREFETCHED_LOAD_SIZE): Likewise.
3379         (PREFETCH_ONE_SET): Likewise.
3380         Rewrite to use forward and backward loops, which move 4 vector
3381         registers at a time, to support overlapping addresses and use
3382         non temporal store if size is above the threshold and there is
3383         no overlap between destination and source.
3384
3385 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3386
3387         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3388         Include dl-vdso.
3389         * sysdeps/unix/sysv/linux/mips/Versions: Add
3390         __vdso_clock_gettime.
3391         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3392         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3393         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3394         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3395         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3396         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3397         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3398         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3399         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3400
3401 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3402
3403         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3404         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3405         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3406         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3407         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3408         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3411         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3412         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3413         syscalls generation.
3414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3415         [__NR_pwrite64] (__NR_write): Remove define.
3416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3417         [__NR_pwrite64] (__NR_write): Remove define.
3418         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3419         Remove define.
3420         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3421         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3422         Remove define.
3423         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3424         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3425         Linux implementation as base.
3426         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3427
3428         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3429         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3430         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3431         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3434         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3435         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3436         syscall generation.
3437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3438         [__NR_pread64] (__NR_pread): Remove define.
3439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3440         [__NR_pread64] (__NR_pread): Likewise.
3441         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3442         define.
3443         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3444         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3445         Remove define.
3446         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3447         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3448         Linux implementation as base.
3449         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3450         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3451         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3452
3453         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3454         definition.
3455         (__ALIGNMENT_COUNT): Likewise.
3456         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3457         (__ALIGNMENT_COUNT): Likewise.
3458         (SYSCALL_LL): New define.
3459         (SYSCALL_LL64): Likewise.
3460         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3461         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3462         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3463         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3464
3465         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3466         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3467         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3468         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3469         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3470         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3471
3472 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3473
3474         [BZ #19865]
3475         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3476         original buffer before retry.
3477
3478 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3479
3480         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3481         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3482         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3483         GLRO(dl_auxv) list.
3484         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3485         including <ldsodefs.h>.
3486         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3487
3488 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3489
3490         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3491         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3492         $(CPPFLAGS).
3493
3494 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3495
3496         [BZ #17950]
3497         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3498         Add -mfpmath=387.
3499
3500 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3501
3502         * sysdeps/i386/configure.ac: Change == to = when calling test.
3503         * sysdeps/x86_64/configure.ac: Likewise.
3504         * sysdeps/i386/configure: Regenerated.
3505         * sysdeps/x86_64/configure: Likewise.
3506
3507 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3508
3509         [BZ #16137]
3510         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3511         * benchtests/bench-strcoll.c (input_files): Likewise.
3512         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3513         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3514         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3515
3516 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3517
3518         [BZ #19929]
3519         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3520         [__USE_XOPEN2K8 && !__USE_GNU].
3521         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3522         variable.
3523
3524         [BZ #19925]
3525         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3526         define if [!__USE_MISC && __USE_XOPEN2K].
3527         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3528         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3529         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3530         Likewise.
3531         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3532         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3533         variable.
3534         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3535
3536 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3537
3538         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3539         (sysdep_routines): Add new strspn targets.
3540         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3541         (__libc_ifunc_impl_list): Add strspn.
3542         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3543         New file.
3544         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3545         Likewise.
3546         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3547         Likewise.
3548         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3549         Likewise.
3550
3551 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3552
3553         * misc/hsearch_r.c: Include <limits.h>.
3554
3555 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3556
3557         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3558
3559 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3560
3561         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3562         (MEMCPY_SYMBOL): New.
3563         (MEMPCPY_SYMBOL): Likewise.
3564         (MEMMOVE_CHK_SYMBOL): Likewise.
3565         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3566         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3567         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3568         Provide alias for memcpy in libc.a and ld.so.
3569
3570 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3571
3572         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3573         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3574         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3575         Disabled fro now.
3576         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3577         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3578
3579 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3580
3581         * benchtests/Makefile (string-benchset): Add memcpy-large,
3582         memmove-large and memset-large.
3583         * benchtests/bench-memcpy-large.c: New file.
3584         * benchtests/bench-memmove-large.c: Likewise.
3585         * benchtests/bench-memmove-large.c: Likewise.
3586         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3587
3588 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3589
3590         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3591         32-bit displacement to avoid long nop between instructions.
3592
3593 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3594
3595         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3596         a comment on VMOVU and VMOVA.
3597
3598 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3599
3600         [BZ #19633]
3601         Use specified locale for number formatting in strfmon_l.
3602         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3603         (__nl_lookup_word): New inline functions.
3604         * include/printf.h (__print_fp_l): Declare.
3605         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3606         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3607         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3608         (___printf_fp): New function.
3609         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3610         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3611         * stdlib/tst-strfmon_l.c (do_test): New test.
3612         * stdlib/Makefile (tests): Add kt.
3613         (LOCALES): Build additional locales.
3614         (tst-strfmon_l.out): Require locales.
3615
3616 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3617
3618         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3619         if not in libc.
3620         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3621         Likewise.
3622         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3623         Likewise.
3624         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3625         Likewise.
3626
3627 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3628
3629         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3630         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3631         with unaligned_erms.
3632         (__memmove_erms): Skip if source == destination.
3633         (__memmove_unaligned_erms): Don't check source == destination
3634         first.
3635
3636 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3637
3638         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3639         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3640
3641 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3642
3643         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3644         * string/strspn.c (strspn): Likewise.
3645
3646 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3647
3648         * benchtests/bench-memset.c (do_test): Support 64-byte
3649         alignment.
3650         (test_main): Test 64-byte alignment.
3651
3652 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3653
3654         * benchtests/bench-memmove.c (test_main): Test 64-byte
3655         alignment.
3656
3657 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3658
3659         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3660
3661 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3662
3663         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3664         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3665         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3666
3667         * string/strpbrk.c (strpbrk): Rewrite function.
3668         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3669         (__strpbrk_c2): Likewise.
3670         (__strpbrk_c3): Likewise.
3671         * string/string-inlines.c
3672         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3673         Likewise.
3674         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3675         Likewise.
3676
3677         * string/strspn.c (strcspn): Rewrite function.
3678         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3679         (__strspn_c1): Remove inline function.
3680         (__strspn_c2): Likewise.
3681         (__strspn_c3): Likewise.
3682         * string/string-inlines.c
3683         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3684         compatibility symbol.
3685         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3686         Likewise.
3687         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3688         Likewise.
3689         * string/string-inlines.c: Include generic version.
3690
3691 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3692             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3693
3694         * string/Version (libc): Add GLIBC_2.24.
3695         * string/strcspn.c (strcspn): Rewrite function.
3696         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3697         (__strcspn_c1): Remove inline function.
3698         (__strcspn_c2): Likewise.
3699         (__strcspn_c3): Likewise.
3700         * string/string-inline.c
3701         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3702         compatibility symbol.
3703         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3704         Likewise.
3705         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3706         Likewise.
3707         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3708
3709 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3710
3711         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3712         Use ahi instead of aghi to adjust stack pointer.
3713
3714 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3715
3716         [BZ #19853]
3717         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3718         TEST to take significant digits as second parameter.
3719         [TEST]: Redefine in terms of TEST_N taking 30
3720         significant digits.
3721         (do_test): Add test case to demonstrate precision
3722         failure in the ldbl-128ibm printf.
3723         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3724         (__mpn_extract_long_double): Carry 7 extra intermediate
3725         bits of precision to aide computing difference when
3726         signs differ.
3727
3728 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3729
3730         [BZ #19881]
3731         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3732         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3733         memset-avx512-unaligned-erms.
3734         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3735         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3736         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3737         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3738         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3739         __memset_sse2_unaligned_erms, __memset_erms,
3740         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3741         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3742         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3743         file.
3744         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3745         Likewise.
3746         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3747         Likewise.
3748         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3749         Likewise.
3750
3751 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3752
3753         [BZ #19776]
3754         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3755         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3756         memmove-avx512-unaligned-erms.
3757         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3758         (__libc_ifunc_impl_list): Test
3759         __memmove_chk_avx512_unaligned_2,
3760         __memmove_chk_avx512_unaligned_erms,
3761         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3762         __memmove_chk_sse2_unaligned_2,
3763         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3764         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3765         __memmove_avx512_unaligned_erms, __memmove_erms,
3766         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3767         __memcpy_chk_avx512_unaligned_2,
3768         __memcpy_chk_avx512_unaligned_erms,
3769         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3770         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3771         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3772         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3773         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3774         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3775         __mempcpy_chk_avx512_unaligned_erms,
3776         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3777         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3778         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3779         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3780         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3781         __mempcpy_erms.
3782         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3783         file.
3784         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3785         Likwise.
3786         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3787         Likwise.
3788         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3789         Likwise.
3790
3791 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3792
3793         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3794         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3795         (La_s390_64_regs): Likewise.
3796         (La_s390_32_retval): Append vector register lrv_v24.
3797         (La_s390_64_retval): Likeweise.
3798         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3799         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3800         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3801         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3802
3803 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3804
3805         [BZ #19916]
3806         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3807         to create a non-vector/vector version for _dl_runtime_resolve and
3808         _dl_runtime_profile. Move implementation to ...
3809         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3810         (_dl_runtime_resolve) Save and restore fpr/vrs.
3811         (_dl_runtime_profile) Save and restore vrs and fix some issues
3812         if _dl_call_pltexit is called.
3813         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3814         Choose the correct resolver function if running on a machine with vx.
3815         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3816         to create a non-vector/vector version for _dl_runtime_resolve and
3817         _dl_runtime_profile. Move implementation to ...
3818         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3819         (_dl_runtime_resolve) Save and restore fpr/vrs.
3820         (_dl_runtime_profile) Save and restore vrs and fix some issues
3821         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3822         Choose the correct resolver function if running on a machine with vx.
3823
3824 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3825
3826         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3827
3828 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3829
3830         [BZ #19509]
3831         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3832         skip_map != NULL.
3833         * elf/tst-dlsym-error.c: New file.
3834         * elf/Makefile (tests): Add tst-dlsym-error.
3835         (tst-dlsym-error): Link against libdl.
3836
3837 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3838
3839         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3840         (__ASSUME_FUTIMESAT): Remove macro.
3841         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3842
3843 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3844
3845         [BZ #19879]
3846         CVE-2016-3075
3847         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3848         copy name.
3849
3850 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3851
3852         [BZ #19837]
3853         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3854         error if parse_line fails.
3855
3856 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3857
3858         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3859         (index_cpu_ERMS): Likewise.
3860         (reg_ERMS): Likewise.
3861
3862 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3863
3864         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3865         PER_LINUX_FDPIC): Add.
3866
3867 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3868
3869         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3870         memcpy-avx512-no-vzeroupper.
3871         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3872         to ...
3873         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3874         (MEMCPY): Don't define.
3875         (MEMCPY_CHK): Likewise.
3876         (MEMPCPY): Likewise.
3877         (MEMPCPY_CHK): Likewise.
3878         (MEMPCPY_CHK): Renamed to ...
3879         (__mempcpy_chk_avx512_no_vzeroupper): This.
3880         (MEMPCPY_CHK): Renamed to ...
3881         (__mempcpy_chk_avx512_no_vzeroupper): This.
3882         (MEMCPY_CHK): Renamed to ...
3883         (__memmove_chk_avx512_no_vzeroupper): This.
3884         (MEMCPY): Renamed to ...
3885         (__memmove_avx512_no_vzeroupper): This.
3886         (__memcpy_avx512_no_vzeroupper): New alias.
3887         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3888
3889 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3890
3891         [BZ #18858]
3892         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3893         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3894         and mempcpy-avx512-no-vzeroupper.
3895         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3896         New.
3897         (MEMPCPY): Likewise.
3898         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3899         (MEMPCPY_CHK): New.
3900         (MEMPCPY): Likewise.
3901         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3902         (MEMPCPY): Likewise.
3903         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3904         (MEMPCPY): Likewise.
3905         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3906         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3907         Likewise.
3908         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3909         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3910
3911 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3912              Amit Pawar  <Amit.Pawar@amd.com>
3913
3914         [BZ #19583]
3915         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3916         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3917         processors.  Set Fast_Copy_Backward for AMD Excavator
3918         processors.
3919         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3920         New.
3921         (index_arch_Fast_Unaligned_Copy): Likewise.
3922         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3923         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3924
3925 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3926
3927         [BZ #19791]
3928         * resolv/res_send.c (close_and_return_error): New function.
3929         (send_dg): Initialize *resplen2 after reopen failure.  Call
3930         close_and_return_error for error returns.  On error paths without
3931         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3932         successful return.
3933
3934 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3935
3936         [BZ# 19860]
3937         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3938         zero if the compiler does not provide the AVX512F bit.
3939
3940 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3941
3942         [BZ #19848]
3943         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3944         from 8 to 4.
3945         (__ieee754_powl): Compare integer exponent against 4 not 8.
3946         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3947         from 8 to 4.
3948         (__ieee754_powl): Compare integer exponent against 4 not 8.
3949         * math/auto-libm-test-in: Add more tests of pow.
3950         * math/auto-libm-test-out: Regenerated.
3951         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3953
3954 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3955
3956         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3957         Make code unconditional.
3958         [!__NR_utimensat]: Remove conditional code.
3959         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3960         Make code unconditional.
3961         [!__NR_utimensat]: Remove conditional code.
3962         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3963         Make code unconditional.
3964         [!__NR_utimensat]: Remove conditional code.
3965
3966 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3967
3968         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3969         Make code unconditional.
3970
3971 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3972
3973         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3974         call-clobbered %eax on retry path.
3975         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3976
3977 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3978
3979         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3980         Don't set %rcx twice before "rep movsb".
3981
3982 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3983
3984         [BZ #19583]
3985         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3986         inline.  Check family before setting family, model and
3987         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3988         bits here.
3989         (init_cpu_features): Replace HAS_CPU_FEATURE and
3990         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3991         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3992         for Intel processors with usable AVX2.  Call get_common_indeces
3993         for other processors with family == NULL.
3994         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3995         (CPU_FEATURES_ARCH_P): Likewise.
3996         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3997         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3998
3999 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4000
4001         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4002         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4003         $(shared-thread-library) instead of hardcoding the path to libpthread.
4004
4005 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4006
4007         * sysdeps/unix/sysv/linux/kernel-features.h
4008         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4009         * sysdeps/unix/sysv/linux/getdents.c
4010         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4011         [!have_no_getdents64_defined]: Likewise.
4012         (__GETDENTS): Remove __have_no_getdents64 conditional.
4013
4014 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4015
4016         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4017         Remove macro.
4018         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4019         <kernel-features.h>.
4020         (signalfd) [__NR_signalfd4]: Make code unconditional.
4021         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4022
4023 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4024
4025         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4026         style.
4027
4028 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4029
4030         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4031         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4032         __pthread_unwind.
4033         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4034         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4035         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4036         (__condvar_cleanup1): Likewise.
4037
4038 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4039
4040         [BZ #19822]
4041         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4042         move it to the final $@ location.
4043
4044 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4045
4046         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4047         access where posix_spawn success and pid argument is null.
4048         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4049         success case.
4050
4051 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4052
4053         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4054
4055         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4056
4057         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4058         and __fcntl.
4059         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4060         __fcntl only.
4061         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4062         adding attribute_hidden to __open and __fcntl.
4063
4064         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4065         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4066         depend on libc-modules.h,
4067         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4068
4069 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4070
4071         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4072         Remove macro.
4073         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4074         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4075         entry.
4076
4077         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4078         Remove macro.
4079         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4080         include <kernel-features.h>.
4081         [!__ASSUME_FALLOCATE]: Remove conditional code.
4082         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4083
4084 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4085
4086         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4087         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4088         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4089         (_ZGVdN4v_cos_avx2): Likewise.
4090         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4091         (_ZGVdN4v_cos): Likewise.
4092         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4093         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4094         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4095         (_ZGVdN4v_exp_avx2): Likewise.
4096         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4097         (_ZGVdN4v_exp): Likewise.
4098         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4099         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4100         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4101         (_ZGVdN4v_log_avx2): Likewise.
4102         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4103         (_ZGVdN4v_log): Likewise.
4104         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4105         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4106         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4107         (_ZGVdN4vv_pow_avx2): Likewise.
4108         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4109         (_ZGVdN4vv_pow): Likewise.
4110         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4111         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4112         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4113         (_ZGVdN4v_sin_avx2): Likewise.
4114         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4115         (_ZGVdN4v_sin): Likewise.
4116         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4117         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4118         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4119         (_ZGVdN4vvv_sincos_avx2): Likewise.
4120         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4121         (_ZGVdN4vvv_sincos): Likewise.
4122         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4123         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4124         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4125         (_ZGVbN4v_cosf_sse4): Likewise.
4126         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4127         (_ZGVdN8v_cosf_avx2): Likewise.
4128         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4129         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4130         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4131         (_ZGVbN4v_expf_sse4): Likewise.
4132         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4133         (_ZGVdN8v_expf_avx2): Likewise.
4134         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4135         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4136         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4137         (_ZGVbN4v_logf_sse4): Likewise.
4138         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4139         (_ZGVdN8v_logf_avx2): Likewise.
4140         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4141         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4142         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4143         (_ZGVbN4vv_powf_sse4): Likewise.
4144         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4145         (_ZGVdN8vv_powf_avx2): Likewise.
4146         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4147         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4148         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4149         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4150         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4151         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4152         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4153         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4154         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4155         (_ZGVbN4v_sinf_sse4): Likewise.
4156         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4157         (_ZGVdN8v_sinf_avx2): Likewise.
4158         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4159         Use JUMPTARGET to call callee.
4160         (WRAPPER_IMPL_SSE2_ff): Likewise.
4161         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4162         (WRAPPER_IMPL_AVX): Likewise.
4163         (WRAPPER_IMPL_AVX_ff): Likewise.
4164         (WRAPPER_IMPL_AVX_fFF): Likewise.
4165         (WRAPPER_IMPL_AVX512): Likewise.
4166         (WRAPPER_IMPL_AVX512_ff): Likewise.
4167         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4168         Likewise.
4169         (WRAPPER_IMPL_SSE2_ff): Likewise.
4170         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4171         (WRAPPER_IMPL_AVX): Likewise.
4172         (WRAPPER_IMPL_AVX_ff): Likewise.
4173         (WRAPPER_IMPL_AVX_fFF): Likewise.
4174         (WRAPPER_IMPL_AVX512): Likewise.
4175         (WRAPPER_IMPL_AVX512_ff): Likewise.
4176         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4177
4178 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4179
4180         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4181         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4182         qualifier.
4183         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4184         internal_function qualifiers.
4185
4186 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4187
4188         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4189         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4190         * math/atest-exp.c (exp_mpn): Mark chk unused.
4191         * math/atest-exp2.c (exp_mpn): Likwise.
4192         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4193         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4194
4195 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4196
4197         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4198         Remove macro.
4199         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4200         <kernel-features.h>.
4201         [__NR_ppoll]: Make code unconditional.
4202         [!__ASSUME_PPOLL]: Remove conditional code.
4203
4204         * sysdeps/unix/sysv/linux/kernel-features.h
4205         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4206         (__ASSUME_ACCEPT4): Likewise.
4207         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4208         Define.
4209         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4210         Likewise.
4211         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4212         Likewise.
4213         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4214         Likewise.
4215         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4216         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4217         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4218         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4219         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4220         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4221         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4222         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4223         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4224         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4225         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4226         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4227         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4228         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4229         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4230         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4231         Likewise.
4232         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4233         Likewise.
4234         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4235         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4236         0x040300].
4237         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4238         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4239         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4240         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4241         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4242         0x030300].
4243         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4244         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4245         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4246         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4247         0x040300].
4248         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4249         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4250         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4251         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4252         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4253         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4254         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4255         0x030300].
4256         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4257         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4258         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4259         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4260         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4261         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4262         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4263         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4264         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4265         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4266         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4267         0x040300].
4268         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4269         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4270         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4271         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4272         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4273         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4274         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4275         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4276         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4277         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4278         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4279         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4280         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4281         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4282         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4283         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4284         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4285         Likewise.
4286         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4287         Likewise.
4288
4289 2016-03-15  Andreas Schwab  <schwab@suse.de>
4290
4291         [BZ #19257]
4292         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4293         statp->_u._ext.nscount as loop count.
4294
4295 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4296
4297         * math/test-signgam-finite-c99.c: Also #undef
4298         __LIBC_INTERNAL_MATH_INLINES.
4299         * math/test-signgam-main.c: Likewise.
4300
4301 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4302
4303         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4304         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4305         (MADV_FREE): Likewise.
4306         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4307         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4308         EPOLLEXCLUSIVE.
4309
4310 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4311
4312         * timezone/README: Remove mention of checktab.awk. Mention wiki
4313         SharedSourceFiles.
4314
4315 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4316
4317         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4318         WUNTRACED.
4319
4320 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4321
4322         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4323         order to match the type of p when calling atomic_exchange_acq().
4324
4325 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4326
4327         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4328         cfi_offset calls.
4329         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4330         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4331         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4332         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4333         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4334
4335 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4336
4337         * timezone/checktab.awk: Removed.
4338
4339 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4340
4341         * manual/math.texi (Errors in Math Functions): Document relaxed
4342         accuracy goals for IBM long double.
4343         * math/libm-test.inc (test_exceptions): Always allow spurious
4344         "underflow" and "inexact" exceptions for IBM long double.
4345
4346 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4347
4348         [BZ #19762]
4349         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4350         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4351         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4352         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4353         (bit_arch_*): This for feature array.
4354         (bit_*): Renamed to ...
4355         (bit_cpu_*): This for cpu array.
4356         (index_*): Renamed to ...
4357         (index_arch_*): This for feature array.
4358         (index_*): Renamed to ...
4359         (index_cpu_*): This for cpu array.
4360         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4361         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4362         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4363         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4364         bit_##name with index_cpu_##name and bit_cpu_##name.
4365         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4366         bit_##name with index_arch_##name and bit_arch_##name.
4367
4368 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4369
4370         [BZ #19792]
4371         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4372         Terminate FDE before return label.
4373
4374 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4375
4376         [BZ #19790]
4377         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4378         (rintl): Define as macro.
4379         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4380         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4381         of fesetround.  Ensure results are evaluated before end of scope.
4382         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4383         USE_AS_NEARBYINTL and include s_rintl.c.
4384         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4385         Disable exception traps in new environment.
4386         (libc_feholdsetround_ppc_ctx): Likewise.
4387
4388 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4389
4390         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4391         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4392         (tst_audit10_aux) [__AVX512F__]: ... here.
4393
4394 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4395
4396         * include/sys/auxv.h: New file.
4397
4398 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4399
4400         [BZ #19759]
4401         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4402
4403 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4404
4405         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4406         operand modifier.
4407         (feclearexcept): Likewise.
4408
4409 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4410
4411         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4412         to reflect the entire 32-bit HWCAP.
4413         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4414         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4415
4416 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4417
4418         [BZ #19783]
4419         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4420         $(test-via-rtld-prefix).
4421         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4422
4423 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4424
4425         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4426         union wait.  Report any non-zero exit status as error.
4427
4428 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4429
4430         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4431         configured with --enable-hardcoded-path-in-tests.
4432
4433 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4434
4435         [BZ #19677]
4436         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4437         (__ieee754_remainderl): Put zero low parts in canonical form.
4438         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4439         file.  Based on
4440         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4441         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4442         with wrapper round test-fmodrem-ldbl-128ibm.c.
4443         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4444         file.
4445         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4446         Likewise.
4447         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4448         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4449
4450 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4451
4452         [BZ #19610]
4453         * elf/ldconfig.c (opt_link): Update comment.
4454         (options): Update help string for option -X.
4455         (search_dir): Unlink stale symbolic link only if updating symbolic
4456         links.
4457         * elf/tst-ldconfig-X.sh: New file.
4458         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4459         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4460
4461 2016-03-07  Andreas Schwab  <schwab@suse.de>
4462
4463         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4464         needed arguments.
4465
4466 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4467
4468         [BZ #15333]
4469         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4470         to lstat64.
4471
4472 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4473
4474         * libio/filedoalloc.c (isatty): Remove.
4475         (local_isatty): Add comment.  Call __isatty directly.
4476         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4477         * libio/wfiledoalloc.c (isatty): Remove.
4478         (_IO_wfile_doallocate): Update comment.
4479
4480 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4481
4482         [BZ #19269]
4483         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4484         tst-audit4-aux.o.
4485         (tst-audit10): Depend on tst-audit10-aux.o.
4486         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4487         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4488         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4489         instead of inline AVX code.
4490         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4491         instead of inline AVX512 code.
4492         * sysdeps/x86_64/tst-audit4-aux.c: New file
4493         * sysdeps/x86_64/tst-audit10-aux.c: New file
4494
4495         [BZ #19648]
4496         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4497
4498 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4499
4500         [BZ #14750]
4501         [BZ #10354]
4502         [BZ #18433]
4503         * include/sched.h (__clone): Add hidden prototype.
4504         (__clone2): Likewise.
4505         * include/unistd.h (__dup): Likewise.
4506         * posix/Makefile (tests): Add tst-spawn2.
4507         * posix/tst-spawn2.c: New file.
4508         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4509         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4510         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4511         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4512         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4513         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4514         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4515         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4516         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4517         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4518         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4520         Likewise.
4521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4522         Likewise.
4523         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4524         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4525         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4526         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4527         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4528         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4529         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4530         * sysdeps/unix/sysv/linux/nptl-signals.h
4531         (____nptl_is_internal_signal): New function.
4532         * sysdeps/unix/sysv/linux/spawni.c: New file.
4533
4534         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4535         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4536         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4537         * posix/tst-execvp2.c (do_test): Likewise.
4538         * posix/tst-execvp3.c (do_test): Likewise.
4539         * posix/tst-execvp4.c (do_test): Likewise.
4540         * posix/tst-execvpe1.c: New file.
4541         * posix/tst-execvpe2.c: Likewise.
4542         * posix/tst-execvpe3.c: Likewise.
4543         * posix/tst-execvpe4.c: Likewise.
4544         * posix/tst-execvpe5.c: Likewise.
4545         * posix/tst-execvpe6.c: Likewise.
4546
4547         [BZ #19534]
4548         * posix/execl.c (execl): Remove dynamic memory allocation.
4549         * posix/execle.c (execle): Likewise.
4550         * posix/execlp.c (execlp): Likewise.
4551
4552 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4553
4554         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4555         Replace .text with .text.avx512.
4556         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4557         Likewise.
4558
4559 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4560
4561         * sysdeps/generic/libnsl.abilist: New file.
4562         * sysdeps/generic/libutil.abilist: New file.
4563
4564 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4565
4566         [BZ #19762]
4567         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4568         HAS_ARCH_FEATURE with Fast_Rep_String.
4569         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4570         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4571         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4572         Likewise.
4573         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4574         Likewise.
4575         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4576         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4577         Likewise.
4578         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4579         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4580         Likewise.
4581
4582 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4583
4584         [BZ #19745]
4585         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4586         with *%rax in call.
4587
4588 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4589
4590         [BZ #19745]
4591         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4592         with *__libc_start_main@GOTPCREL(%rip) in call.
4593
4594 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4595
4596         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4597         inside conditional for nonempty $(CXX).
4598
4599         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4600         nonempty.
4601
4602         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4603         to test for empty $(CXX) rather than $(CXX) of "no".
4604
4605 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4606
4607         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4608
4609 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4610             H.J. Lu  <hongjiu.lu@intel.com>
4611
4612         [BZ #18880]
4613         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4614         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4615         enable __memcpy_ssse3_back.
4616
4617 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4618
4619         [BZ #19758]
4620         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4621         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4622
4623 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4624
4625         [BZ #19490]
4626         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4627         (__fentry__): Likewise.
4628
4629 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4630
4631         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4632         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4633
4634 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4635
4636         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4637         __mcount_internal directly.
4638         (C_LABEL(__fentry__)): Likewise.
4639         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4640         directly.
4641
4642 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4643
4644         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4645         (__start_context): Call __setcontext directly.
4646
4647 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4648
4649         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4650         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4651         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4652         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4653         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4654         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4655         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4656         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4657         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4658         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4659         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4660         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4661         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4662         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4663         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4664         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4665         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4666         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4667         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4668         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4669         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4670         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4671         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4672         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4673         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4674         Remove conditional code.
4675         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4676         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4677         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4678         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4679         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4680         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4681         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4682         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4683         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4684         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4685         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4686         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4687
4688 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4689
4690         * NEWS (2.23): Fix typo in bug 19048 text.
4691
4692 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4693
4694         [BZ #14259]
4695         * Makeconfig: Rename msgcatdir to localedir.
4696         Rename inst_msgcatdir to inst_localedir.
4697         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4698         * config.make.in: Add localedir.
4699         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4700         (ldd-rewrite): Likewise.
4701         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4702         (install-others): Use inst_localedir.
4703         (CPPFLAGS): Use localedir.
4704         * locale/Makefile (locale-CPPFLAGS): Likewise.
4705         * po/Makefile (mo-installed): Use inst_localedir.
4706
4707         [BZ #19575]
4708         * localedata/charmaps/GB18030: Update comments regarding PAU to
4709         non-PUA mappings.
4710
4711 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4712
4713         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4714         test for header.
4715         * sysdeps/unix/sysv/linux/configure: Regenerated.
4716         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4717         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4718         Remove conditional code.
4719         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4720
4721         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4722         Define to 3.2.0.
4723         (arch_minimum_kernel): Likewise.
4724         * sysdeps/unix/sysv/linux/configure: Regenerated.
4725         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4726         Define to 2.6.32.
4727         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4728         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4729         (arch_minimum_kernel): Define to 2.6.32.
4730         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4731         * README: Document Linux 3.2 requirement.
4732         * manual/install.texi (Linux): Document Linux 3.2 headers
4733         requirement.
4734         * INSTALL: Regenerated.
4735
4736 2016-02-24  Andreas Schwab  <schwab@suse.de>
4737
4738         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4739         if !NO_LONG_DOUBLE.
4740
4741 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4742
4743         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4744         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4745
4746 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4747
4748         [BZ #19512]
4749         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4750
4751 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4752
4753         * posix/tst-dir.c: Include libc-internal.h.
4754
4755 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4756
4757         [BZ #19056]
4758         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4759         * manual/filesys.texi (Reading/Closing Directory): Mention
4760         deprecaion.
4761         * posix/tst-dir.c (main): Disable deprecation warning in test.
4762
4763 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4764
4765         [BZ #19679]
4766         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4767         Renamed to ...
4768         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4769         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4770         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4771         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4772         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4773         * sysdeps/x86_64/dl-trampoline.h
4774         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4775         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4776
4777 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4778
4779         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4780
4781 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4782
4783         * elf/elf.h (R_386_GOT32X): New.
4784         (R_386_NUM): Update.
4785         (R_X86_64_GOTPCRELX: New.
4786         (R_X86_64_REX_GOTPCRELX): New.
4787         (R_X86_64_NUM): Update.
4788
4789 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4790
4791         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4792
4793 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4794
4795         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4796         assign attr->stackaddr to it, and adjust it down when
4797         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4798         [_STACK_GROWS_UP]: Delete assert.
4799         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4800         Implement stack grows up logic.
4801         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4802         stack grows up logic.
4803
4804 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4805
4806         * NEWS: Update with 2.24 template.
4807
4808 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4809
4810         [BZ #19678]
4811         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4812         Ensure +0.0 is returned when taking the next value below the least
4813         positive value.
4814
4815 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4816
4817         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4818         available.  Do not define NO_THREADS.
4819         * malloc/malloc.c: Do not check NO_THREADS.
4820         * malloc/arena.c: Likewise.
4821
4822 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4823
4824         * malloc/malloc.c (__libc_mallinfo): Update comment.
4825         (struct malloc_par): Remove max_total_mem member, it was always 0.
4826         (int_mallinfo): Store 0 into usmblks (no functional change).
4827         * malloc/hooks.c (struct malloc_state): Document that
4828         max_total_mem is always 0.
4829         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4830         always 0.
4831         * manual/memory.texi (Statistics of Malloc): Likewise.
4832
4833 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4834
4835         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4836         * malloc/arena.c (arena_max): Remove.
4837         (heap_trim, _int_new_arena): Do not update arena_max.
4838
4839 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4840
4841         * resolv/res_init.c (res_ninit): Update comment.
4842
4843 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4844
4845         [BZ #19505]
4846         * posix/spawn_int.h: Add headers and include guard.
4847         (__spawn_valid_fd): New function.
4848         * posix/spawn_faction_addopen.c
4849         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4850         * posix/spawn_faction_addclose.c
4851         (posix_spawn_file_actions_addclose): Likewise.
4852         * posix/spawn_faction_adddup2.c
4853         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4854         second file descriptor.
4855         * posix/spawn_valid_fd.c: New file.
4856         * posix/tst-posix_spawn-fd.c: New file.
4857         * posix/Makefile (routines): Add spawn_valid_fd.
4858         (tests): Add tst-posix_spawn-fd.
4859
4860 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4861
4862         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4863         (do_test): Limit the number of arenas, so that we can use fewer
4864         outer threads.  Limit timeout to 3 seconds, in preparation for a
4865         larger TIMEOUT value.
4866
4867 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4868
4869         [BZ #19674]
4870         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4871         sign in overflowing and underflowing results when overflow or
4872         underflow is detected early.  Include sign in result before rather
4873         than after scaling.
4874
4875         [BZ #19603]
4876         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4877         (__ieee754_remainderl): Adjust sign of integer version of low part
4878         when taking absolute value of high part.
4879         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4880         * math/libm-test.inc (remainder_test_data): Add another test.
4881         (remquo_test_data): Likewise.
4882
4883 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4884
4885         [BZ #19602]
4886         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4887         equal high parts and both low parts zero specially.
4888         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4889         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4890         Add test-fmodl-ldbl-128ibm.
4891
4892         [BZ #19595]
4893         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4894         common logic for all cases of shifting subnormal results.  Do not
4895         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4896         exponent to ldbl_insert_mantissa in subnormal case.
4897
4898         [BZ #19594]
4899         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4900         on high and low parts then adjust result and use
4901         ldbl_canonicalize_int if needed.
4902
4903         [BZ #19593]
4904         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4905         on high part and __floor or __ceil on low part then use
4906         ldbl_canonicalize_int if needed.
4907
4908         [BZ #19592]
4909         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4910         high and low parts then use ldbl_canonicalize_int if needed.
4911
4912         [BZ #17899]
4913         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4914         New function.
4915         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4916         on high and low parts then use ldbl_canonicalize_int if needed.
4917
4918 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4919
4920         * configure: Regenerated.
4921
4922         * po/libc.pot: Regenerated.
4923
4924         * po/be.po: Updated translation.
4925         * po/bg.po: Likewise.
4926         * po/ca.po: Likewise.
4927         * po/cs.po: Likewise.
4928         * po/da.po: Likewise.
4929         * po/el.po: Likewise.
4930         * po/eo.po: Likewise.
4931         * po/es.po: Likewise.
4932         * po/fi.po: Likewise.
4933         * po/fr.po: Likewise.
4934         * po/gl.po: Likewise.
4935         * po/hr.po: Likewise.
4936         * po/hu.po: Likewise.
4937         * po/ia.po: Likewise.
4938         * po/id.po: Likewise.
4939         * po/it.po: Likewise.
4940         * po/ja.po: Likewise.
4941         * po/lt.po: Likewise.
4942         * po/nb.po: Likewise.
4943         * po/nl.po: Likewise.
4944         * po/pt_BR.po: Likewise.
4945         * po/rw.po: Likewise.
4946         * po/sk.po: Likewise.
4947         * po/sl.po: Likewise.
4948         * po/sv.po: Likewise.
4949         * po/tr.po: Likewise.
4950         * po/zh_CN.po: Likewise.
4951         * po/zh_TW.po: Likewise.
4952
4953         * version.h (RELEAES): Set to "development".
4954         (VERSION): Set to 2.23.90.
4955
4956         * version.h (RELEASE): Set to "stable".
4957         (VERSION): Set to 2.23.
4958         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4959
4960         * NEWS: Updated fixed bugs.
4961
4962 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4963             Wilco Dijkstra  <wdijkstr@arm.com>
4964
4965         [BZ #19462]
4966         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4967         (_STRING_INLINE_unaligned): This.
4968         * include/string.h: Include <string_private.h>.
4969         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4970         _STRING_INLINE_unaligned.
4971         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4972         (_STRING_INLINE_unaligned): New.
4973         * sysdeps/aarch64/string_private.h: New file.
4974         * sysdeps/generic/string_private.h: Likewise.
4975         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4976         * sysdeps/s390/string_private.h: Likewise.
4977         * sysdeps/x86/string_private.h: Likewise.
4978         * sysdeps/m68k/m680x0/m68020/bits/string.h
4979         (_STRING_ARCH_unaligned): Renamed to ...
4980         (_STRING_INLINE_unaligned): This.
4981         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4982         to ...
4983         (_STRING_INLINE_unaligned): This.
4984         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4985         to ...
4986         (_STRING_INLINE_unaligned): This.
4987         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4988         to ...
4989         (_STRING_INLINE_unaligned): This.
4990
4991 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4992             H.J. Lu  <hongjiu.lu@intel.com>
4993
4994         [BZ #19590]
4995         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4996         relocation.
4997
4998 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4999
5000         [BZ #18665]
5001         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5002         *herrno_p.
5003         (gaih_getanswer): Document functional behviour. Return tryagain
5004         if any result is tryagain.
5005         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5006         when freed.
5007         * resolv/res_send.c: Add copyright text.
5008         (__libc_res_nsend): Document that MAXPACKET is expected.
5009         (send_vc): Document. Remove buffer reuse.
5010         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5011         size of the buffer. Add Dprint for truncated UDP buffer.
5012
5013 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5014
5015         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5016         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5017         * INSTALL: Regenerate.
5018
5019 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5020             Jonathan Wakely  <jwakely@redhat.com>
5021             Carlos O'Donell  <carlos@redhat.com>
5022
5023         [BZ 19439]
5024         * math/Makefile (tests): Add test-math-isinff.
5025         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5026         * math/bits/mathcalls.h [__USE_MISC]: Use
5027         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5028         functions not in C++11 and which don't conflict e.g. isinff,
5029         isinfl etc.
5030         * math/test-math-isinff.cc: New file.
5031
5032 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5033
5034         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5035
5036 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5037
5038         [BZ #19529]
5039         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5040
5041 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5042
5043         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5044
5045 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5046
5047         [BZ #19550]
5048         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5049         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5050         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5051         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5052         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5053         New syscall entry.
5054         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5055         New syscall entry.
5056         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5057         syscall entry.
5058
5059 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5060
5061         [BZ #18240]
5062         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5063         unsigned int wraparound.
5064
5065 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5066
5067         [BZ #18240]
5068         * misc/bug18240.c: New test.
5069         * misc/Makefile (tests): Add it.
5070
5071 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5072             Joseph Myers  <joseph@codesourcery.com>
5073
5074         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5075         load in branch delay slot when less than a word of input left.
5076
5077 2016-01-27  Andreas Schwab  <schwab@suse.de>
5078
5079         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5080         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5081         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5082         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5083
5084 2016-01-26  David S. Miller  <davem@davemloft.net>
5085
5086         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5087
5088 2016-01-25  David S. Miller  <davem@davemloft.net>
5089
5090         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5091         __sqrtl_finite.
5092         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5093         instead using versioned_symbol.
5094         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5095         of entries.
5096
5097         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5098         __sqrtl_finite to GLIBC_2.23
5099
5100 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5101
5102         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5103
5104 2016-01-25  Andreas Schwab  <schwab@suse.de>
5105
5106         [BZ #17514]
5107         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5108         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5109         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5110         * nptl/tst-mutex-errorcheck.c: New file.
5111
5112 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5113
5114         [BZ #18560]
5115         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5116         (IPCOP_semop): Likewise.
5117         (IPCOP_semget): Likewise.
5118         (IPCOP_semctl): Likewise.
5119         (IPCOP_msgsnd): Likewise.
5120         (IPCOP_msgrcv): Likewise.
5121         (IPCOP_msgget): Likewise.
5122         (IPCOP_msgctl): Likewise.
5123         (IPCOP_shmat): Likewise.
5124         (IPCOP_shmdt): Likewise.
5125         (IPCOP_shmget): Likewise.
5126         (IPCOP_shmctl): Likewise.
5127
5128 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5129
5130         * string/tst-endian.c: Include <libc-internal.h>.
5131         (do_test): Ignore tautological-compare warnings around
5132         "htobeXX (beXXtoh (i)) != i" and
5133         "htoleXX (leXXtoh (i)) != i" if-statements.
5134
5135 2016-01-24  David S. Miller  <davem@davemloft.net>
5136
5137         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5138         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5139         alias.
5140         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5141         __sqrtl_finite.
5142
5143         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5144
5145 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5146
5147         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5148         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5149         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5150
5151 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5152
5153         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5154         (thread_func): Use new function to simplify barrier check.
5155         (do_test): Use new function to simplify checking barrier exit
5156         code, and actually join the child thread.
5157
5158 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5159
5160         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5161         semicolon.
5162         (__libc_tend): Likewise.
5163         (__libc_tabort): Likewise.
5164
5165 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5166
5167         * sysdeps/nios2/libm-test-ulps: Update.
5168         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5169         (__gtsf2): Likewise.
5170         (__unorddf2): Likewise.
5171         (__unordsf2): Likewise.
5172         (__ledf2): Likewise.
5173
5174 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5175
5176         * nis/nis_table.c (__follow_path): Disable diagnostic for
5177         uninitialized variable that is a false positive for gcc 4.7.
5178         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5179
5180 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5181
5182         * sysdeps/nacl/lowlevellock-futex.h
5183         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5184         Always evaluate PRIVATE argument.
5185
5186 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5187
5188         [BZ #19490]
5189         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5190         (pthread_cond_broadcast): Use ENTRY/END
5191         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5192         (pthread_cond_signal): Likewise.
5193         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5194         Likewise.
5195         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5196         Likewise.
5197         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5198         Likewise.
5199
5200 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5201
5202         * sysdeps/ieee754/dbl-64/s_finite.c
5203         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5204         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5205         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5206         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5207         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5208
5209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5210         (__gtsf2): Add as optional for libc.so.
5211         (__unordsf2): Likewise.
5212         (__signbit): Remove for libc.so.
5213         (__signbitl): Likewise.
5214
5215 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5216
5217         * iconvdata/bug-iconv11.c (test_ibm93x):
5218         Use %zu printf format specifier for size_t argument.
5219
5220 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5221
5222         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5223         already-recorded ulps.
5224         * sysdeps/arm/libm-test-ulps: Regenerated.
5225         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5226         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5227         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5228
5229 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5230             Paul Pluzhnikov  <ppluzhnikov@google.com>
5231
5232         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5233         assembler not supporting AVX-512.
5234
5235 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5236
5237         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5238
5239 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5240
5241         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5242         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5243
5244         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5245
5246         * sysdeps/arm/libm-test-ulps: Regenerated.
5247
5248 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5249
5250         [BZ #19451]
5251         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5252
5253 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5254
5255         [BZ #19486]
5256         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5257         * sysdeps/generic/fix-fp-int-convert-overflow.h
5258         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5259         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5260         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5261         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5262         Likewise.
5263         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5264         Avoid conversions to long int where inexact exceptions
5265         could be raised.
5266         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5267         Likewise.
5268         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5269         Avoid conversions to long long int where inexact exceptions
5270         could be raised.
5271         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5272         Likewise.
5273
5274 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5275
5276         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5277         * configure: Regenerated.
5278
5279 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5280
5281         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5282
5283 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5284
5285         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5286         outside of comment.
5287
5288 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5289
5290         * nptl/tst-barrier1.c: Add description on first line.
5291         * nptl/tst-barrier2.c: Likewise.
5292         * nptl/tst-barrier3.c: Likewise.
5293         * nptl/tst-barrier4.c: Likewise.
5294         * nptl/tst-barrier5.c: Likewise.
5295
5296 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5297
5298         [BZ #18868]
5299         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5300
5301 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5302
5303         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5304         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5305         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5306         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5307         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5308         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5309         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5310         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5311         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5312         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5313         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5314
5315 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5316
5317         [BZ #13065]
5318         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5319         new implementation.
5320         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5321         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5322         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5323         (BARRIER_IN_THRESHOLD): New macro.
5324         * nptl/pthread_barrierattr_setpshared.c
5325         (pthread_barrierattr_setpshared): Clean up.
5326         * nptl/tst-barrier4.c: Correct comment.
5327         * nptl/tst-barrier5.c: New file.
5328         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5329         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5330         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5331         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5332         * nptl/lowlevelbarrier.sym: Remove.
5333         * nptl/DESIGN-barrier.txt: Remove.
5334         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5335         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5336         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5337         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5338         error.
5339         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5340         implementation.
5341
5342 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5343
5344         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5345         (do_child): Mask SIGRTMIN while thr is running.
5346
5347 2016-01-15  Martin Sebor  <msebor@redhat.com>
5348
5349         [BZ #19432]
5350         * iconvdata/Makefile: Add bug-iconv11.
5351         * iconvdata/bug-iconv11.c: New test.
5352         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5353         * iconvdata/ibm933.c: Same.
5354         * iconvdata/ibm935.c: Same.
5355         * iconvdata/ibm937.c: Same.
5356         * iconvdata/ibm939.c: Same.
5357
5358 2016-01-15  Martin Sebor  <msebor@redhat.com>
5359
5360         [BZ #19443]
5361         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5362         [DEBUG] (_ufc_set_bits): Declare used.
5363         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5364         [DEBUG] (print_all): Declare used.
5365         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5366         operands of the ternary ?: expression to target type.
5367         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5368         calling the undeclared abort.
5369         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5370
5371 2016-01-15  Martin Sebor  <msebor@redhat.com>
5372
5373         [BZ #18755]
5374         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5375         warnings.
5376         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5377         (__gai_create_helper_thread): Same.
5378         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5379         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5380         to suppress -Wmaybe-uninitialized warnings.
5381
5382 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5383
5384         [BZ #19465]
5385         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5386         inside if.
5387         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5388         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5389         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5390
5391 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5392
5393         [BZ #19466]
5394         * time/tst-mktime2.c (time_t_max): Removed.
5395         (time_t_min): Likewise.
5396         (TYPE_SIGNED): New.
5397         (TYPE_MINIMUM): Likewise.
5398         (TYPE_MAXIMUM): Likewise.
5399         (TIME_T_MIN): Likewise.
5400         (TIME_T_MAX): Likewise.
5401         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5402         and TIME_T_MIN.
5403         (do_test): Likewise.
5404
5405 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5406
5407         [BZ #19467]
5408         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5409         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5410
5411 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5412
5413         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5414
5415 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5416
5417         * benchtests/Makefile (PYTHON): Define.
5418         (bench-func): Use $(PYTHON) to run python scripts.
5419         ($(objpfx)bench-%.c): Likewise.
5420
5421 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5422
5423         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5424         leading slash when `file_name' is "/".
5425
5426 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5427
5428         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5429         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5430         Likewise.
5431         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5432         Likewise.
5433         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5434         Likewise.
5435         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5436         enum constant and macro.
5437         (PTRACE_SETSIGMASK): Likewise.
5438         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5439         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5440         (PTRACE_GETSIGMASK): Likewise.
5441         (PTRACE_SETSIGMASK): Likewise.
5442         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5443         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5444         Likewise.
5445         (PTRACE_SETSIGMASK): Likewise.
5446         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5447         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5448         (PTRACE_GETSIGMASK): Likewise.
5449         (PTRACE_SETSIGMASK): Likewise.
5450         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5451         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5452         Likewise.
5453         (PTRACE_SETSIGMASK): Likewise.
5454         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5455         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5456         Likewise.
5457         (PTRACE_SETSIGMASK): Likewise.
5458         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5459         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5460         Likewise.
5461         (PTRACE_SETSIGMASK): Likewise.
5462         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5463
5464 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5465             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5466
5467         [BZ #19439]
5468         * math/bits/mathcalls.h
5469         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5470         prototype.
5471         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5472
5473 2016-01-11  Andreas Schwab  <schwab@suse.de>
5474
5475         [BZ #19253]
5476         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5477         cache when TZDEFRULES was used.
5478         * time/tst-tzname.c: New file.
5479         * time/Makefile (test): Add tst-tzname.
5480         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5481         * timezone/Makefile (test-zones): Add $(posixrules-file).
5482         ($(testdata)/$(posixrules-file)): New rule.
5483
5484 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5485
5486         Fix doc quoting problems with Texinfo 5
5487         Without this change, in the info file output, Texinfo 5 quotes code
5488         in text with undirected single quotes 'like this' and generates
5489         code examples that with many PDF readers cannot be cut out of PDFs
5490         and pasted into code.
5491         * manual/libc.texinfo: Configure the libc manual like the GNU
5492         Emacs manual, by using @documentencoding and setting
5493         txicodequoteundirected and txicodequotebacktick.  This way,
5494         Texinfo 5 quotes code in text with directed single quotes ‘like
5495         this’ and produces examples that can be cut out of PDFs.  This
5496         change causes Texinfo 5 to generate info files that contain UTF-8
5497         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5498         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5499
5500 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5501
5502         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5503         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5504         barriers to their respective compiler built-ins.
5505         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5506         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5507         * sysdeps/powerpc/sysdep.h: Likewise.
5508         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5509         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5510         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5511
5512 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5513
5514         * scripts/config.guess: Revert previous shebang change.
5515         * scripts/config.sub: Likewise.
5516         * scripts/mkinstalldirs: Likewise.
5517
5518 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5519
5520         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5521         PPC_FEATURE2_HAS_IEEE128.
5522         * sysdeps/powerpc/dl-procinfo.c:
5523         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5524
5525 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5526
5527         [BZ #19415]
5528         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5529         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5530         (_dl_lookup_address): Rewrite using function resolver trampoline.
5531         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5532         two bits in address.
5533
5534 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5535
5536         * longlong.h: Change !__SHMEDIA__ to
5537         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5538         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5539
5540 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5541             Joseph Myers  <joseph@codesourcery.com>
5542             Mark Shinwell  <shinwell@codesourcery.com>
5543             Andrew Stubbs  <ams@codesourcery.com>
5544             Rich Felker <dalias@libc.org>
5545
5546         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5547
5548 2016-01-07  Richard Henderson  <rth@redhat.com>
5549
5550         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5551
5552 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5553
5554         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5555         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5556         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5557         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5558         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5559
5560 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5561             Joseph Myers  <joseph@codesourcery.com>
5562
5563         * timezone/private.h: Update from tzcode 2015g.
5564         * timezone/tzfile.h: Likewise.
5565         * timezone/tzselect.ksh: Likewise.
5566         * timezone/zdump.c: Likewise.
5567         * timezone/zic.c: Likewise.
5568         * timezone/ialloc.c: Remove file.
5569         * timezone/scheck.c: Likewise.
5570         * timezone/Makefile (extra-objs): Remove variable.
5571         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5572         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5573         -Wno-maybe-uninitialized.
5574         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5575         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5576         (CFLAGS-ialloc.c): Remove variable.
5577         (CFLAGS-scheck.c): Likewise.
5578         * timezone/README: Update list of files from tzcode.
5579
5580 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5581
5582         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5583         instead of __fxprintf when _LIBC is undefined.
5584
5585 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5586
5587         * catgets/test-gencat.sh: Remove space after shebang.
5588         * conform/GlibcConform.pm: Likewise.
5589         * conform/check-header-lists.sh: Likewise.
5590         * conform/conformtest.pl: Likewise.
5591         * conform/linknamespace.pl: Likewise.
5592         * conform/list-header-symbols.pl: Likewise.
5593         * debug/catchsegv.sh: Likewise.
5594         * elf/genrtldtbl.awk: Likewise.
5595         * elf/tst-pathopt.sh: Likewise.
5596         * elf/tst-rtld-load-self.sh: Likewise.
5597         * grp/tst_fgetgrent.sh: Likewise.
5598         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5599         * iconvdata/gen-8bit-gap.sh: Likewise.
5600         * iconvdata/gen-8bit.sh: Likewise.
5601         * iconvdata/run-iconv-test.sh: Likewise.
5602         * intl/tst-gettext.sh: Likewise.
5603         * intl/tst-gettext2.sh: Likewise.
5604         * intl/tst-gettext4.sh: Likewise.
5605         * intl/tst-gettext6.sh: Likewise.
5606         * intl/tst-translit.sh: Likewise.
5607         * io/ftwtest-sh: Likewise.
5608         * libio/test-freopen.sh: Likewise.
5609         * locale/gen-translit.pl: Likewise.
5610         * malloc/tst-mtrace.sh: Likewise.
5611         * manual/check-safety.sh: Likewise.
5612         * manual/libc-texinfo.sh: Likewise.
5613         * manual/tsort.awk: Likewise.
5614         * manual/xtract-typefun.awk: Likewise.
5615         * nptl/tst-cancel-wrappers.sh: Likewise.
5616         * nptl/tst-tls6.sh: Likewise.
5617         * posix/globtest.sh: Likewise.
5618         * posix/tst-getconf.sh: Likewise.
5619         * posix/wordexp-tst.sh: Likewise.
5620         * scripts/check-c++-types.sh: Likewise.
5621         * scripts/check-local-headers.sh: Likewise.
5622         * scripts/config.guess: Likewise.
5623         * scripts/config.sub: Likewise.
5624         * scripts/cpp: Likewise.
5625         * scripts/cross-test-ssh.sh: Likewise.
5626         * scripts/documented.sh: Likewise.
5627         * scripts/evaluate-test.sh: Likewise.
5628         * scripts/gen-libc-abis: Likewise.
5629         * scripts/gen-sorted.awk: Likewise.
5630         * scripts/list-fixed-bugs.py: Likewise.
5631         * scripts/merge-test-results.sh: Likewise.
5632         * scripts/mkinstalldirs: Likewise.
5633         * scripts/rellns-sh: Likewise.
5634         * scripts/test-installation.pl: Likewise.
5635         * scripts/update-copyrights: Likewise.
5636         * stdio-common/tst-printf.sh: Likewise.
5637         * stdio-common/tst-unbputc.sh: Likewise.
5638         * stdlib/tst-fmtmsg.sh: Likewise.
5639         * stdlib/tst-setcontext3.sh: Likewise.
5640         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5641         * sysdeps/unix/make-syscalls.sh: Likewise.
5642
5643 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5644
5645         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5646         asm stw with atomic_exchange_rel.  Add explanatory comment.
5647         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5648         Likewise.
5649
5650 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5651
5652         [BZ #19122]
5653         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5654         * sysdeps/generic/dl-unistd.h: New file.
5655         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5656
5657 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5658
5659          [BZ #19122]
5660          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5661          * sysdeps/generic/dl-mman.h: New file.
5662          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5663
5664 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5665
5666         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5667         trailing whitespace removed.
5668         * scripts/config.guess: Update to version 2016-01-01.
5669         * scripts/config.sub: Update to version 2016-01-01.
5670         * scripts/move-if-change: Update from gnulib.
5671
5672 2016-01-04  Anton Blanchard  <anton@samba.org>
5673
5674         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5675         for array indices.
5676         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5677
5678 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5679
5680         * NEWS: Update copyright dates.
5681         * catgets/gencat.c (print_version): Likewise.
5682         * csu/version.c (banner): Likewise.
5683         * debug/catchsegv.sh: Likewise.
5684         * debug/pcprofiledump.c (print_version): Likewise.
5685         * debug/xtrace.sh (do_version): Likewise.
5686         * elf/ldconfig.c (print_version): Likewise.
5687         * elf/ldd.bash.in: Likewise.
5688         * elf/pldd.c (print_version): Likewise.
5689         * elf/sotruss.sh: Likewise.
5690         * elf/sprof.c (print_version): Likewise.
5691         * iconv/iconv_prog.c (print_version): Likewise.
5692         * iconv/iconvconfig.c (print_version): Likewise.
5693         * locale/programs/locale.c (print_version): Likewise.
5694         * locale/programs/localedef.c (print_version): Likewise.
5695         * login/programs/pt_chown.c (print_version): Likewise.
5696         * malloc/memusage.sh (do_version): Likewise.
5697         * malloc/memusagestat.c (print_version): Likewise.
5698         * malloc/mtrace.pl: Likewise.
5699         * manual/libc.texinfo: Likewise.
5700         * nptl/version.c (banner): Likewise.
5701         * nscd/nscd.c (print_version): Likewise.
5702         * nss/getent.c (print_version): Likewise.
5703         * nss/makedb.c (print_version): Likewise.
5704         * posix/getconf.c (main): Likewise.
5705         * scripts/test-installation.pl: Likewise.
5706         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5707
5708         * All files with FSF copyright notices: Update copyright dates
5709         using scripts/update-copyrights.
5710         * intl/plural.c: Regenerated.
5711         * locale/programs/charmap-kw.h: Likewise.
5712         * locale/programs/locfile-kw.h: Likewise.
5713
5714 2016-01-02  Helge Deller  <deller@gmx.de>
5715
5716         [BZ #19285]
5717         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5718         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5719         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5720         (MADV_xxK_PAGES): Remove.
5721
5722 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5723
5724         [BZ #15421]
5725         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5726         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5727         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5728         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5729
5730 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5731
5732         [BZ #19408]
5733         * sysdeps/unix/sysv/linux/personality.c: New file.
5734         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5735         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5736         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5737         (sysdep_routines): Add personality.
5738         (tests): Add tst-personality.
5739         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5740         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5741         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5742         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5743         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5744         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5745         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5746         Likewise.
5747         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5748         Likewise.
5749         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5750         Likewise.
5751         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5752         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5753         Likewise.
5754
5755 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5756
5757         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5758         (PATH_ARM_SYSTYPE): Remove.
5759         (PATH_CPUINFO): Likewise.
5760         (IO_BASE_FOOTBRIDGE): Likewise.
5761         (IO_SHIFT_FOOTBRIDGE): Likewise.
5762         (struct platform): Likewise.
5763         (init_iosys): Remove compatibility code for 2.4 kernels.
5764         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5765
5766 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5767
5768         * malloc/tst-malloc-thread-fail.c: New file.
5769         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5770         (tst-malloc-thread-fail): Link against libpthread.
5771
5772 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5773
5774         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5775         (get_parser): New function.
5776         (main): New function.
5777
5778 2015-12-29  Rob Wu  <rob@robwu.nl>
5779
5780         [BZ #19369]
5781         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5782
5783 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5784
5785         [BZ #19270]
5786         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5787
5788 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5789
5790         [BZ #15421]
5791         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5792
5793 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5794
5795         [BZ #13690]
5796         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5797         after releasing it.
5798         (__lll_robust_unlock): Likewise.
5799         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5800         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5801         (lll_robust_unlock): Likewise.
5802         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5803         Prevent warnings in callers.
5804
5805 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5806
5807         * malloc/arena.c (list_lock): Update comment.
5808
5809 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5810
5811         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5812         __parse_hwcap_and_convert_at_platform to libc.a.
5813
5814 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5815
5816         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5817         platform and feature support for POWER9.
5818         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5819         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5820         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5821         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5822         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5823         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5824         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5825         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5826
5827 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5828
5829         Harmonize generic stdio-lock support with nptl
5830
5831         This fixes build when _IO_funlockfile is a macro, fixes build where
5832         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5833         stack unwind.
5834
5835         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5836         _IO_release_lock ): Use cleanup attribute on new
5837         _IO_acquire_lock_file variable instead of assuming that
5838         _IO_release_lock will be called.
5839         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5840         _IO_acquire_lock_needs_exceptions_enabled.
5841         (_IO_acquire_lock_clear_flags2): New macro.
5842
5843 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5844
5845         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5846
5847 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5848
5849         [BZ #19182]
5850         * malloc/arena.c (list_lock): Document lock ordering requirements.
5851         (free_list_lock): New lock.
5852         (ptmalloc_lock_all): Comment on free_list_lock.
5853         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5854         (detach_arena): Update comment.  free_list_lock is now needed.
5855         (_int_new_arena): Use free_list_lock around detach_arena call.
5856         Acquire arena lock after list_lock.  Add comment, including FIXME
5857         about incorrect synchronization.
5858         (get_free_list): Switch to free_list_lock.
5859         (reused_arena): Acquire free_list_lock around detach_arena call
5860         and attached threads counter update.  Add two FIXMEs about
5861         incorrect synchronization.
5862         (arena_thread_freeres): Switch to free_list_lock.
5863         * malloc/malloc.c (struct malloc_state): Update comments to
5864         mention free_list_lock.
5865
5866 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5867
5868         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5869         Remove functions.
5870         (sloww, sloww1): Accept argument to offset quadrant.
5871         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5872         quadrant.
5873         (__sin, __cos): Consolidate common code into new functions.
5874         (reduce_sincos_1, do_sincos_1): New functions.
5875         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5876
5877         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5878         code to new functions.
5879         (reduce_sincos_2, do_sincos_2): New functions.
5880         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5881
5882         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5883         common code for sincos.
5884         (__cos) [!IN_SINCOS]: Likewise.
5885         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5886         New function.
5887         (__sincos): Use it.
5888
5889 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5890
5891         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5892         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5893         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5894
5895 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5896
5897         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5898         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5899         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5900         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5901         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5902         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5903         index_Prefer_No_VZEROUPPER): New feature.
5904         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5905         Prefer_No_VZEROUPPER for Knights Landing.
5906
5907 015-12-18  Torvald Riegel  <triegel@redhat.com>
5908
5909         * math/atest-exp2.c (mp_exp_m1): Remove.
5910
5911 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5912
5913         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5914         syscalls.
5915         (__SYSCALL0): New macro.
5916         (__SYSCALL1): Likewise.
5917         (__SYSCALL2): Likewise.
5918         (__SYSCALL3): Likewise.
5919         (__SYSCALL4): Likewise.
5920         (__SYSCALL5): Likewise.
5921         (__SYSCALL6): Likewise.
5922         (__SYSCALL_CONCAT_X): Likewise.
5923         (__SYSCALL_CONCAT): Likewise.
5924         (__SYSCALL_DIST): Likewise.
5925         (__SYSCALL_CALL): Likewise.
5926
5927 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5928
5929         [BZ #19363]
5930         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5931
5932 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5933
5934         [BZ #19375]
5935         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5936         negative subnormals.
5937
5938 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5939
5940         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5941         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5942         (INTERNAL_SYSCALL_NCS): Use it.
5943         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5944
5945 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5946
5947         [BZ #19243]
5948         * malloc/arena.c (get_free_list): Remove assert and adjust
5949         reference count handling.  Add comment about reused_arena
5950         interaction.
5951         (reused_arena): Add comments abount get_free_list interaction.
5952         * malloc/tst-malloc-thread-exit.c: New file.
5953         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5954         (tst-malloc-thread-exit): Link against libpthread.
5955
5956 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5957
5958         [BZ #19367]
5959         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5960         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5961         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5962         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5963         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5964
5965 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5966
5967         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5968         Silvermont optimizations for Knights Landing.
5969
5970 2015-12-15  Andreas Schwab  <schwab@suse.de>
5971
5972         [BZ #17197]
5973         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5974         immediately after emitting SI.
5975         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5976         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5977         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5978         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5979         * iconvdata/bug-iconv10.c: New file.
5980         * iconvdata/Makefile (tests): Add bug-iconv10.
5981         ($(objpfx)bug-iconv10.out): New rule.
5982
5983 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5984
5985         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5986         aliasing violation.
5987
5988 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5989
5990         [BZ #18472]
5991         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5992         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5993         conditionals for them.
5994         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5995         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5996         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5997         sys/kdaemon.h.
5998         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5999         compat-only syscall, obsoleted in glibc 2.23.
6000         (create_module): Likewise.
6001         (get_kernel_syms): Likewise.
6002         (query_module): Likewise.
6003         (uselib): Likewise.
6004         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6005
6006 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6007
6008         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6009         <linux/version.h>.
6010         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6011         conditional code.
6012         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6013         and ioshift_name initialization.
6014
6015 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6016
6017         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6018         Fix indentation.
6019
6020 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6021
6022         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6023
6024 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6025
6026         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6027
6028 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6029             Jakub Wilk  <jwilk@debian.org>
6030
6031         [BZ #19347]
6032         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6033         to change the group of the device to the tty group.
6034
6035 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6036
6037         Split large string section; add truncation advice
6038         * manual/examples/strncat.c: Remove.
6039         This example was misleading, as the code would have undefined
6040         behavior if "hello" was longer than SIZE.  Anyway, the manual
6041         shouldn't encourage strncpy+strncat for this sort of thing.
6042         * manual/string.texi (Copying Strings and Arrays): Split into
6043         three sections Copying Strings and Arrays, Concatenating Strings,
6044         and Truncating Strings, as this section was way too long.  All
6045         cross-referenced changed.  Add advice about string-truncation
6046         functions.  Remove misleading strncat example.
6047
6048 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6049
6050         * manual/nss.texi (NSS Modules Interface): Document
6051         NSS_STATUS_NOTFOUND and SUCCESS.
6052
6053 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6054
6055         [BZ 18568]
6056         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6057         201505L, for Unicode 8.
6058
6059 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6060
6061         * locale/C-translit.h: Regenerate.
6062
6063 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6064
6065         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6066         and U+0153.
6067
6068 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6069
6070         [BZ #19351]
6071         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6072         expanding log(1+z), compare z rather than its square with epsilon
6073         to determine when to avoid evaluating the expansion.
6074
6075         [BZ #19350]
6076         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6077         Increase overflow threshold.
6078
6079         [BZ #19349]
6080         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6081         when small.
6082
6083         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6084         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6085         New macro.
6086         [__LINUX_KERNEL_VERSION >= 0x040300]
6087         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6088         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6089         Likewise.
6090         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6091         Likewise.
6092         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6093         Likewise.
6094         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6095         Likewise.
6096         [__LINUX_KERNEL_VERSION >= 0x040300]
6097         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6098         [__LINUX_KERNEL_VERSION >= 0x040300]
6099         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6100         [__LINUX_KERNEL_VERSION >= 0x040300]
6101         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6102         [__LINUX_KERNEL_VERSION >= 0x040300]
6103         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6104         [__LINUX_KERNEL_VERSION >= 0x040300]
6105         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6106         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6107         Likewise.
6108         [__LINUX_KERNEL_VERSION >= 0x040300]
6109         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6110         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6111         Likewise.
6112         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6113         Likewise.
6114         [__LINUX_KERNEL_VERSION >= 0x040300]
6115         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6116         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6117         Likewise.
6118         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6119         Likewise.
6120         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6121         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6122         Likewise.
6123         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6124         Likewise.
6125         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6126         Likewise.
6127         [__LINUX_KERNEL_VERSION >= 0x040300]
6128         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6129         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6130         Likewise.
6131         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6132         Likewise.
6133         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6134         Likewise.
6135         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6136         Likewise.
6137         [__LINUX_KERNEL_VERSION >= 0x040300]
6138         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6139         [__LINUX_KERNEL_VERSION >= 0x040300]
6140         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6141         [__LINUX_KERNEL_VERSION >= 0x040300]
6142         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6143         [__LINUX_KERNEL_VERSION >= 0x040300]
6144         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6145         [__LINUX_KERNEL_VERSION >= 0x040300]
6146         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6147         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6148         Likewise.
6149         [__LINUX_KERNEL_VERSION >= 0x040300]
6150         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6151         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6152         Likewise.
6153         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6154         Likewise.
6155         [__LINUX_KERNEL_VERSION >= 0x040300]
6156         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6157         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6158         Likewise.
6159         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6160         Likewise.
6161         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6162         (__ASSUME_SOCKET_SYSCALL): Likewise.
6163         (__ASSUME_BIND_SYSCALL): Likewise.
6164         (__ASSUME_CONNECT_SYSCALL): Likewise.
6165         (__ASSUME_LISTEN_SYSCALL): Likewise.
6166         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6167         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6168         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6169         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6170         (__ASSUME_SEND_SYSCALL): Likewise.
6171         (__ASSUME_SENDTO_SYSCALL): Likewise.
6172         (__ASSUME_RECV_SYSCALL): Likewise.
6173         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6174         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6175         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6176         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6177         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6178         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6179         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6180         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6181         Likewise.
6182         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6183         Likewise.
6184         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6185         Likewise.
6186         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6187         Likewise.
6188         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6189         Likewise.
6190         [__LINUX_KERNEL_VERSION >= 0x020625]
6191         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6192         [__LINUX_KERNEL_VERSION >= 0x020625]
6193         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6194         [__LINUX_KERNEL_VERSION >= 0x020625]
6195         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6196         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6197         Likewise.
6198         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6199         Likewise.
6200         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6201         Likewise.
6202         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6203         Likewise.
6204         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6205         Likewise.
6206         [__LINUX_KERNEL_VERSION >= 0x020625]
6207         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6208         [__LINUX_KERNEL_VERSION >= 0x020625]
6209         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6210         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6211         Likewise.
6212         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6213         Likewise.
6214
6215 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6216
6217         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6218         record the current if the current ABI and CPU support the FP64
6219         extension.
6220         (has-modd-spreg): Define to record the current if the current ABI and
6221         CPU support 32-bit floating point values in odd FPU registers.
6222         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6223         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6224         $(has-modd-spreg) equals yes.
6225         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6226         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6227         $(has-modd-spreg) equal yes.
6228
6229 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6230
6231         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6232         basename.
6233
6234 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6235
6236         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6237         (bench-string): ... here.
6238         (bench): Add bench-string.
6239         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6240         to *-benchset to reflect what they are.
6241         (benchset): Adjust.
6242
6243         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6244         cos-inputs.
6245
6246 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6247
6248         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6249         __attribute__ ((__simd__)) for vector math function declarations.
6250
6251 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6252
6253         Fix typo in strncat, wcsncat manual entries
6254         * manual/string.texi (Copying and Concatenation): Fix typos in
6255         sample implementations of strncat and wcsncat, by having them use
6256         the old value of the destination length, not the new one.
6257
6258 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6259
6260         [BZ #16961]
6261         [BZ #16962]
6262         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6263         string on the stack for strtod.
6264         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6265         a string on the stack for strtof.
6266         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6267         constructing a string on the stack for strtold.
6268         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6269         __strtold_nan to GLIBC_PRIVATE.
6270         * math/test-nan-overflow.c: New file.
6271         * math/test-nan-payload.c: Likewise.
6272         * math/Makefile (tests): Add test-nan-overflow and
6273         test-nan-payload.
6274
6275 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6276
6277         Consistency about byte vs character in string.texi
6278         * manual/string.texi (String and Array Utilities):
6279         Distinguish more carefully among bytes, multibyte characters,
6280         and wide characters.  Use "byte" when talking about C 'char',
6281         to distinguish it more clearly from multibyte characters.
6282         Say "wide character" or "multibyte character" instead of
6283         "character", when a wide or multibyte character is intended.
6284         Similarly for "multibyte string" versus "string".
6285         Define these terms more carefully.
6286
6287 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6288
6289         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6290         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6291         Likewise.
6292         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6293         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6294         * sysdeps/sh/math_private.h: New file.
6295         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6296         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6297         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6298         long double function name.
6299         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6300         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6301         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6302         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6303         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6304         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6305         Remove __finitel, __isinfl, and __isnanl.
6306         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6307         Likewise.
6308         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6309         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6310         Remove __finitel.
6311         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6312         Likewise.
6313         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6314
6315 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6316
6317         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6318         installed libmvec_nonshared.a.
6319
6320 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6321
6322         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6323         (sysdep_routines): Likewise.
6324         (sysdep-rtld-routines): Likewise.
6325         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6326         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6327         * sysdeps/powerpc/Versions: Added new
6328         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6329         * sysdeps/powerpc/hwcapinfo.c: New file.
6330         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6331         and parse hwcap, hwcap2 and platform number information.
6332         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6333         to store HWCAP+HWCAP2 and platform number.
6334         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6335         for HWCAP+HWCAP2 and platform number in the TCB.
6336         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6337         the HWCAP, HWCAP2 and platform number in the TCB.
6338         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6339         (TLS_INIT_TP): Included calls to add the hwcap and
6340         at_platform values in the TCB in TP initialization.
6341         (TLS_DEFINE_INIT_TP): Likewise.
6342         (THREAD_GET_HWCAP): New macro.
6343         (THREAD_SET_HWCAP): Likewise.
6344         (THREAD_GET_AT_PLATFORM): Likewise.
6345         (THREAD_SET_AT_PLATFORM): Likewise.
6346         * sysdeps/powerpc/powerpc32/dl-machine.h:
6347         (dl_platform_init): New function that calls
6348         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6349         powerpc32.
6350         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6351         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6352         this functionality, static linking case.
6353         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6354         linking case.
6355         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6356         __parse_hwcap_and_convert_at_platform for the static linking case.
6357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6358         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6359         ABI list for GLIBC 2.23.
6360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6361         Likewise.
6362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6363         Likewise.
6364
6365 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6366
6367         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6368         * configure: Regenerate.
6369         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6370         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6371
6372 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6373
6374         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6375         * iconvdata/ibm933.c: Likewise.
6376         * iconvdata/ibm935.c: Likewise.
6377         * iconvdata/ibm937.c: Likewise.
6378         * iconvdata/ibm939.c: Likewise.
6379
6380 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6381
6382         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6383         pthread_join.
6384         * nptl/tst-cancel21.c (tf): Likewise.
6385
6386 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6387
6388         [BZ #19313]
6389         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6390         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6391         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6392         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6393         Likewise.
6394         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6395         Likewise.
6396         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6397         Likewise.
6398         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6399         Likewise.
6400         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6401         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6402         unsigned long int with __CPU_MASK_TYPE.
6403
6404 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6405
6406         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6407
6408 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6409
6410         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6411         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6412         t512.x.
6413         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6414
6415 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6416
6417         [BZ #19214]
6418         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6419         argument to return extended model.  Update family and model
6420         with extended family and model when family == 0x0f.
6421         (init_cpu_features): Updated.
6422
6423 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6424
6425         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6426         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6427
6428         * sysdeps/mach/hurd/mmap64.c: New file.
6429
6430 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6431
6432         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6433         rights for its main user thread in NEWTASK.
6434
6435 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6436
6437         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6438         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6439
6440 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6441
6442         [BZ #14259]
6443         * Makeconfig: Rename localedir to complocaledir.
6444         Rename inst_localedir to inst_complocaledir.
6445         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6446         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6447         * configure.ac: Use libc_cv_complocaledir.
6448         * configure: Regenerate.
6449         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6450         -DCOMPLOCALEDIR.
6451         * locale/findlocale.c: Use COMPLOCALEDIR.
6452         * locale/loadarchive.c: Likewise.
6453         * locale/programs/locale.c: Likewise.
6454         * locale/programs/localedef.c: Likewise.
6455         * locale/programs/locarchive.c: Likewise.
6456         * localedata/Makefile: Use inst_complocaledir.
6457         * sysdeps/gnu/configure: Regenerate.
6458         * sysdeps/hppa/configure: Regenerate.
6459         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6460         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6462         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6463         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6464         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6465         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6466
6467 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6468
6469         [BZ #19058]
6470         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6471         AS_NEEDED.
6472         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6473         workaround.
6474         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6475         libmvec-static-only-routines): Added new file.
6476         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6477
6478 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6479
6480         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6481         of interrupted RPC instead of restoring it.
6482
6483         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6484         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6485         libc_hidden_def.
6486         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6487         into initialized data instead of common. Define rtld_hidden_data_def.
6488         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6489         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6490         libc_hidden_def.
6491         (if_freenameindex): Add libc_hidden_weak.
6492         (if_nameindex): Add libc_hidden_weak.
6493         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6494         __open64.
6495         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6496         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6497         * sysdeps/mach/nanosleep.c: Include <time.h>
6498         (__nanosleep): Rename to __libc_nanosleep.
6499         (__nanosleep): Add weak_alias.
6500         (nanosleep): Update alias.
6501
6502 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6503
6504         * stdlib/strtod_nan.c: New file.
6505         * stdlib/strtod_nan_double.h: Likewise.
6506         * stdlib/strtod_nan_float.h: Likewise.
6507         * stdlib/strtod_nan_main.c: Likewise.
6508         * stdlib/strtod_nan_narrow.h: Likewise.
6509         * stdlib/strtod_nan_wide.h: Likewise.
6510         * stdlib/strtof_nan.c: Likewise.
6511         * stdlib/strtold_nan.c: Likewise.
6512         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6513         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6514         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6515         * wcsmbs/wcstod_nan.c: Likewise.
6516         * wcsmbs/wcstof_nan.c: Likewise.
6517         * wcsmbs/wcstold_nan.c: Likewise.
6518         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6519         strtold_nan.
6520         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6521         wcstof_nan.
6522         * include/stdlib.h (__strtof_nan): Declare and use
6523         libc_hidden_proto.
6524         (__strtod_nan): Likewise.
6525         (__strtold_nan): Likewise.
6526         (__wcstof_nan): Likewise.
6527         (__wcstod_nan): Likewise.
6528         (__wcstold_nan): Likewise.
6529         * include/wchar.h (____wcstoull_l_internal): Declare.
6530         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6531         (____strtoull_l_internal): Remove declaration.
6532         (STRTOF_NAN): Define macro.
6533         (SET_MANTISSA): Remove macro.
6534         (STRTOULL): Likewise.
6535         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6536         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6537         (STRTOF_NAN): Define macro.
6538         (SET_MANTISSA): Remove macro.
6539         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6540         (SET_MANTISSA): Remove macro.
6541         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6542         macro.
6543         (SET_MANTISSA): Remove macro.
6544         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6545         macro.
6546         (SET_MANTISSA): Remove macro.
6547         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6548         (SET_MANTISSA): Remove macro.
6549         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6550         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6551         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6552
6553         [BZ #19266]
6554         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6555         upper case and lower case letters inside NAN(), not using TOLOWER.
6556         * stdlib/tst-strtod-nan-locale-main.c: New file.
6557         * stdlib/tst-strtod-nan-locale.c: Likewise.
6558         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6559         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6560         Depend on $(gen-locales).
6561         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6562         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6563         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6564         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6565         Depend on $(gen-locales).
6566         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6567
6568 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6569
6570         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6571
6572         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6573         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6574         __finitel, __isinfl, and __isnanl.
6575         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6576         Likewise.
6577         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6578         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6579         __finitel.
6580         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6581         Likewise.
6582         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6583
6584 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6585
6586         * malloc/memusage.c (me): Remove redundant getenv call.
6587
6588 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6589
6590         [BZ #19143]
6591         [BZ #19164]
6592         * nptl/check-cpuset.h: Remove.
6593         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6594         Remove CPU set size check.
6595         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6596         Likewise.
6597         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6598         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6599         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6600         (__pthread_setaffinity_new): Remove CPU set size check.
6601         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6602         (__kernel_cpumask_size): Remove.
6603         (__sched_setaffinity_new): Remove CPU set size check.
6604         * manual/threads.texi (Default Thread Attributes): Remove stale
6605         reference to check_cpuset_attr, determine_cpumask_size in comment.
6606         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6607         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6608         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6609         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6610         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6611         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6612         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6613         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6614         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6615         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6616         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6617         skeleton test file.
6618         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6619         tst-affinity-pid.
6620
6621 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6622
6623         * scripts/update-abilist.sh: New file.
6624         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6625         * Makerules (update-all-abi-%, update-all-abi)
6626         (subdir_update-all-abi): New targets.
6627         * elf/Makefile (update-all-abi): New target.
6628
6629 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6630
6631         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6632         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6633         (__libc_lock_define_initialized): Use it.
6634         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6635         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6636         * malloc/malloc.c (main_arena): Likewise.
6637         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6638         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6639
6640 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6641
6642         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6643         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6644         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6645         (PTRACE_O_MASK): Update value.
6646         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6647         New value in enum __ptrace_setoptions.
6648         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6649         (PTRACE_O_MASK): Update value.
6650         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6651         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6652         (PTRACE_O_MASK): Update value.
6653         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6654         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6655         (PTRACE_O_MASK): Update value.
6656         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6657         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6658         (PTRACE_O_MASK): Update value.
6659         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6660         New value in enum __ptrace_setoptions.
6661         (PTRACE_O_MASK): Update value.
6662         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6663         New value in enum __ptrace_setoptions.
6664         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6665         (PTRACE_O_MASK): Update value.
6666
6667         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6668         New macro.
6669         (PACKET_AUXDATA): Likewise.
6670         (PACKET_ORIGDEV): Likewise.
6671         (PACKET_VERSION): Likewise.
6672         (PACKET_HDRLEN): Likewise.
6673         (PACKET_RESERVE): Likewise.
6674         (PACKET_TX_RING): Likewise.
6675         (PACKET_LOSS): Likewise.
6676         (PACKET_VNET_HDR): Likewise.
6677         (PACKET_TX_TIMESTAMP): Likewise.
6678         (PACKET_TIMESTAMP): Likewise.
6679         (PACKET_FANOUT): Likewise.
6680         (PACKET_TX_HAS_OFF): Likewise.
6681         (PACKET_QDISC_BYPASS): Likewise.
6682         (PACKET_ROLLOVER_STATS): Likewise.
6683         (PACKET_FANOUT_DATA): Likewise.
6684         (PACKET_MR_UNICAST): Likewise.
6685
6686         [BZ #19242]
6687         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6688         (TOUPPER): Likewise.
6689         * stdlib/tst-strtol-locale-main.c: New file.
6690         * stdlib/tst-strtol-locale.c: Likewise.
6691         * stdlib/Makefile (tests): Add tst-strtol-locale.
6692         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6693         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6694         Depend on $(gen-locales).
6695         * wcsmbs/tst-wcstol-locale.c: New file.
6696         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6697         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6698         tr_TR.ISO-8859-9.
6699         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6700         Depend on $(gen-locales).
6701
6702 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6703
6704         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6705         __glibc_likely instead of __builtin_expect.  After falling back to
6706         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6707         system interface to register the code pages as occupied.
6708
6709 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6710
6711         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6712         [!ARM_MATH_PRIVATE_H].
6713         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6714         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6715         [!HPPA_MATH_PRIVATE_H].
6716         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6717         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6718         to [!I386_MATH_PRIVATE_H].
6719         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6720         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6721         Change guard to [!M68K_MATH_PRIVATE_H].
6722         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6723         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6724         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6725         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6726         macro.
6727         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6728         [!MIPS_MATH_PRIVATE_H].
6729         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6730         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6731         [!NIO2_MATH_PRIVATE_H].
6732         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6733         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6734         [!TILE_MATH_PRIVATE_H].
6735         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6736
6737         [BZ #15421]
6738         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6739         initialize with 0 and define as weak alias of __signgam.
6740         * include/math.h [!_ISOMAC] (__signgam): Declare.
6741         * math/Makefile (libm-calls): Add w_lgamma_compat.
6742         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6743         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6744         test-signgam-ullong-init.
6745         (tests-static): Add test-signgam-uchar-static,
6746         test-signgam-uchar-init-static, test-signgam-uint-static,
6747         test-signgam-uint-init-static, test-signgam-ullong-static and
6748         test-signgam-ullong-init-static.
6749         (CFLAGS-test-signgam-uchar.c): New variable.
6750         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6751         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6752         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6753         (CFLAGS-test-signgam-uint.c): Likewise.
6754         (CFLAGS-test-signgam-uint-init.c): Likewise.
6755         (CFLAGS-test-signgam-uint-static.c): Likewise.
6756         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6757         (CFLAGS-test-signgam-ullong.c): Likewise.
6758         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6759         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6760         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6761         * math/Versions (libm): Add GLIBC_2.23.
6762         * math/lgamma-compat.h: New file.
6763         * math/test-signgam-main.c: Likewise.
6764         * math/test-signgam-uchar-init-static.c: Likewise.
6765         * math/test-signgam-uchar-init.c: Likewise.
6766         * math/test-signgam-uchar-static.c: Likewise.
6767         * math/test-signgam-uchar.c: Likewise.
6768         * math/test-signgam-uint-init-static.c: Likewise.
6769         * math/test-signgam-uint-init.c: Likewise.
6770         * math/test-signgam-uint-static.c: Likewise.
6771         * math/test-signgam-uint.c: Likewise.
6772         * math/test-signgam-ullong-init-static.c: Likewise.
6773         * math/test-signgam-ullong-init.c: Likewise.
6774         * math/test-signgam-ullong-static.c: Likewise.
6775         * math/test-signgam-ullong.c: Likewise.
6776         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6777         wrapper of w_lgamma_main.c.
6778         * math/w_lgamma_compat.c: New file.
6779         * math/w_lgamma_compatf.c: Likewise.
6780         * math/w_lgamma_compatl.c: Likewise.
6781         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6782         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6783         defining compatibility symbols.
6784         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6785         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6786         wrapper of w_lgammaf_main.c.
6787         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6788         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6789         defining compatibility symbols.
6790         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6791         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6792         wrapper of w_lgammal_main.c.
6793         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6794         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6795         defining compatibility symbols.
6796         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6797         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6798         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6799         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6800         <lgamma-compat.h>.
6801         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6802         (__ieee754_gamma): Define as alias.
6803         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6804         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6805         <lgamma-compat.h>.
6806         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6807         (__ieee754_gammaf): Define as alias.
6808         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6809         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6810         <lgamma-compat.h>.
6811         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6812         (__ieee754_gammal): Define as alias.
6813         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6814         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6815         <math/w_lgamma_compat.c>.
6816         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6817         Define as alias of __lgamma_compat and use in defining lgammal.
6818         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6819         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6820         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6821         (USE_AS_COMPAT): New macro.
6822         (LGAMMA_OLD_VER): Undefine and redefine.
6823         (lgammal): Do not define here.
6824         (gammal): Only define here if [GAMMA_ALIAS].
6825         * conform/linknamespace.pl (@whitelist): Remove signgam.
6826         * sysdeps/nacl/libm.abilist: Update.
6827         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6828         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6829         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6830         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6831         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6832         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6833         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6834         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6835         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6836         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6837         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6838         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6840         Likewise.
6841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6842         Likewise.
6843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6844         Likewise.
6845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6846         Likewise.
6847         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6848         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6849         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6850         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6851         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6852         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6853         Likewise.
6854         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6855         Likewise.
6856         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6857         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6858         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6859
6860 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6861
6862         [BZ #16364]
6863         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6864         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6865
6866 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6867
6868         * sysdeps/s390/fpu/bits/mathinline.h:
6869         Use __asm__ [__volatile__] instead of asm [volatile].
6870         * sysdeps/s390/abort-instr.h: Likewise.
6871         * sysdeps/s390/atomic-machine.h: Likewise.
6872         * sysdeps/s390/bits/string.h: Likewise.
6873         * sysdeps/s390/dl-tls.h: Likewise.
6874         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6875         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6876         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6877         * sysdeps/s390/fpu/fesetround.c: Likewise.
6878         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6879         * sysdeps/s390/fpu/s_fma.c: Likewise.
6880         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6881         * sysdeps/s390/memusage.h: Likewise.
6882         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6883         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6884         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6885         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6886         * sysdeps/s390/nptl/tls.h: Likewise.
6887         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6888         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6889         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6890         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6891         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6892         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6893         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6894         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6895         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6896         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6897         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6898         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6899         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6900         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6901         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6902         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6903         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6904         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6905         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6906         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6907         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6908         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6909         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6910
6911 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6912             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6913
6914         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6915         Add lwarx hint, and use macro for acquire instruction.
6916         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6917         Likewise.
6918         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6919         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6920         update to use new atomic macros.
6921
6922 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6923
6924         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6925         (__lll_trylock_elision): Fix setting of adapt_count.
6926         * sysdeps/unix/sysv/linux/powerpc/htm.h
6927         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6928         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6929         (_ABORT_SYSCALL): Renumber, and clarify definition.
6930         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6931
6932 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6933
6934         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6935         after system headers to prevent MIN/MAX redefinition.  Define
6936         HAVE_ALLOCA to preserve builtin alloca usage.
6937
6938 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6939
6940         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6941         static and don't set or restore rounding.
6942         (__cos)[IN_SINCOS]: Likewise.
6943         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6944         (__sincos): Set and restore rounding mode.  Remove check for infinite
6945         or NaN input.
6946
6947         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6948
6949         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6950         as used.
6951
6952 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6953
6954         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6955
6956 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6957
6958         * config.make.in (have-glob-dat-reloc): New.
6959         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6960         target supports GLOB_DAT relocaton. AC_SUBST.
6961         * configure: Regenerated.
6962         * elf/Makefile (tests): Add tst-prelink.
6963         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6964         (tst-prelink-ENV): New.
6965         ($(objpfx)tst-prelink-conflict.out): Likewise.
6966         ($(objpfx)tst-prelink-cmp.out): Likewise.
6967         * sysdeps/x86/tst-prelink.c: Moved to ...
6968         * elf/tst-prelink.c: Here.
6969         * sysdeps/x86/tst-prelink.exp: Moved to ...
6970         * elf/tst-prelink.exp: Here.
6971         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6972         (tst-prelink-ENV): Removed.
6973         ($(objpfx)tst-prelink-conflict.out): Likewise.
6974         ($(objpfx)tst-prelink-cmp.out): Likewise.
6975         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6976
6977 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6978
6979         [BZ #14551]
6980         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6981         (__mpn_construct_long_double): If high part overflows to infinity,
6982         set errno and recompute overflowed result of the correct sign.
6983         * sysdeps/ieee754/ldbl-128ibm/Makefile
6984         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6985         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6986         $(libm).
6987         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6988
6989 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6990
6991         [BZ #15479]
6992         [BZ #19238]
6993         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6994         floating-point state after first operation on input.  Restore full
6995         state rather than just rounding mode.
6996         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6997         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6998         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6999
7000         [BZ #19235]
7001         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7002         add 0.5 to integer arguments.
7003         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7004         Likewise.
7005         (.LC2): New object.
7006
7007 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7008
7009         * scripts/pylintrc (reports): Set to no.
7010
7011 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7012
7013         * elf/dl-load.c (open_verify): Take new argument FD.
7014         Skip __open call if passed FD is not -1.
7015         (_dl_map_object, open_path): Update callers.
7016         * elf/dl-sysdep-open.h: New file.
7017         * elf/dl-load.c: Include it.
7018         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7019         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7020         * sysdeps/nacl/dl-sysdep-open.h: New file.
7021         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7022         from libc to rtld.
7023
7024 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7025
7026         [BZ #19228]
7027         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7028         and restore full floating-point state.
7029         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7030         Likewise.
7031         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7032         Likewise.
7033         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7034         Likewise.
7035         * math/test-nearbyint-except-2.c: New file.
7036         * math/Makefile (tests): Add test-nearbyint-except-2.
7037
7038 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7039
7040         [BZ #19178]
7041         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7042         (tst-prelink-ENV): New.
7043         ($(objpfx)tst-prelink-conflict.out): Likewise.
7044         ($(objpfx)tst-prelink-cmp.out): Likewise.
7045         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7046         * sysdeps/x86/tst-prelink.c: New file.
7047         * sysdeps/x86/tst-prelink.exp: Likewise.
7048
7049 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7050
7051         * math/auto-libm-test-in: Add another test of pow.
7052         * math/auto-libm-test-out: Regenerated.
7053         * math/libm-test.inc (pow_test_data): Add another test.
7054
7055 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7056
7057         [BZ #19219]
7058         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7059         weak_alias to nearbyintl.
7060
7061 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7062
7063         * sysdeps/aarch64/bits/string.h: New file.
7064         (_STRING_ARCH_unaligned): Define.
7065
7066 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7067
7068         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7069         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7070         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7071         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7073
7074 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7075
7076         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7077         for original name of the DSO.  Add it to the name list of the DSO
7078         if it is actually given.
7079         (_dl_map_object): Keep track of whether an audit module rewrote
7080         the file name.  If yes, pass the original name to
7081         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7082         debugging is enabled, log the change of the file name.
7083         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7084         _dl_map_object_from_fd.
7085         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7086         * elf/tst-audit11.c: New file
7087         * elf/tst-auditmod11.c: New file.
7088         * elf/tst-audit11mod1.c: New file.
7089         * elf/tst-audit11mod2.c: New file.
7090         * elf/tst-audit11mod2.map: New file.
7091         * elf/tst-audit12.c: New file
7092         * elf/tst-auditmod12.c: New file.
7093         * elf/tst-audit12mod1.c: New file.
7094         * elf/tst-audit12mod2.c: New file.
7095         * elf/tst-audit12mod2.map: New file.
7096         * elf/tst-audit12mod3.c: New file.
7097
7098 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7099
7100         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7101         Don't create weak aliases,
7102         because versioned symbols are created later.
7103         * sysdeps/s390/s390-32/setjmp.S
7104         (setjmp, _setjmp): Remove weak and rename to an unique name
7105         in SHARED case due to existing versioned symbols.
7106         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7107         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7108         (getcontext): Create weak alias only in non SHARED case.
7109         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7110
7111 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7112
7113         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7114         (__ASSUME_*_SYSCALL) Define new macros.
7115         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7116         Remove socketcall syscalls.
7117         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7118         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7119         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7120         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7121         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7122         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7123
7124 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7125
7126         [BZ #12926]
7127         Terminate process on invalid netlink response.
7128         * sysdeps/unix/sysv/linux/netlinkaccess.h
7129         (__netlink_assert_response): Declare.
7130         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7131         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7132         (sysdep_routines): Add netlink_assert_response.
7133         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7134         __netlink_assert_response.
7135         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7136         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7137         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7138         __netlink_assert_response.
7139
7140 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7141
7142         [BZ #19178]
7143         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7144         (RTYPE_CLASS_PLT): Likewise.
7145         (RTYPE_CLASS_COPY): Likewise.
7146         (RTYPE_CLASS_TLS): Likewise.
7147         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7148         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7149         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7150         DL_DEBUG_PRELINK.
7151
7152 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7153
7154         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7155         calls with argument -0.5.
7156         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7157
7158         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7159         (libc_cv_z_nodlopen): Likewise.
7160         (libc_cv_z_initfirst): Likewise.
7161         * configure: Regenerated.
7162
7163 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7164
7165         Simplify abilist format to be line-based.
7166         * scripts/abilist.awk: Collect descriptors in the descs variable.
7167         (emit): Write descs variable and sort it
7168         externally, with sort.
7169         * sysdeps/**/*.abilist: Convert to new format.
7170
7171 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7172
7173         [BZ #11460]
7174         * io/Makefile (routines): Add fts64.
7175         (tests): Add tst-fts and tst-fts-lfs.
7176         (CFLAGS-fts64.c): New.
7177         * io/Versions (GLIBC_2.23): New.
7178         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7179         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7180         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7181         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7182         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7183         (FTSENT64): Likewise.
7184         (fts64_children): Likewise.
7185         (fts64_close): Likewise.
7186         (fts64_open): Likewise.
7187         (fts64_read): Likewise.
7188         (fts64_set): Likewise.
7189         * io/fts64.c: New file.
7190         * io/tst-fts.c: New test.
7191         * io/tst-fts-lfs.c: Likewise.
7192         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7193         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7194         fts64_set.
7195         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7196         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7197         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7198         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7199         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7200         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7201         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7202         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7203         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7204         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7205         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7206         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7207         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7209         Likewise.
7210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7211         Likewise.
7212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7214         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7215         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7216         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7217         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7218         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7219         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7220         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7221         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7222         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7223         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7224         * sysdeps/wordsize-64/fts.c: New file.
7225         * sysdeps/wordsize-64/fts64.c: Likewise.
7226         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7227         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7228         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7229         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7230
7231 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7232
7233         * math/libm-test.inc (NON_FINITE): New macro.
7234         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7235         * math/gen-libm-test.pl (show_exceptions): Add argument
7236         $non_finite.
7237         (parse_args): Update call to show_exceptions.
7238         * math/test-math-finite.h: New file.
7239         * math/test-math-no-finite.h: Likewise.
7240         * math/test-double-finite.c: Likewise.
7241         * math/test-float-finite.c: Likewise.
7242         * math/test-ldouble-finite.c: Likewise.
7243         * math/test-double.c: Include "test-math-no-finite.h".
7244         * math/test-float.c: Include "test-math-no-finite.h".
7245         * math/test-ldouble.c: Include "test-math-no-finite.h".
7246         * math/test-math-inline.h (TEST_FINITE): New macro.
7247         * math/test-math-vector.h (TEST_FINITE): Likewise.
7248         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7249         (libm-tests): Add test-float-finite and test-double-finite.
7250         ($(objpfx)test-float-finite.o): New dependency on
7251         $(objpfx)libm-test.stmp.
7252         ($(objpfx)test-double-finite.o): Likewise.
7253         ($(objpfx)test-ldouble-finite.o): Likewise.
7254         (libm-test-no-inline-cflags): New variable.
7255         (libm-test-finite-cflags): Likewise.
7256         (CFLAGS-test-float-finite.c): Likewise.
7257         (CFLAGS-test-double-finite.c): Likewise.
7258         (CFLAGS-test-ldouble-finite.c): Likewise.
7259         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7260         (CFLAGS-test-double.c): Likewise.
7261         (CFLAGS-test-ldouble.c): Likewise.
7262
7263 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7264
7265         * io/fcntl.c (__fcntl): Add ... to prototype.
7266         * misc/ioctl.c (__ioctl): Likewise.
7267         * misc/syscall.c (syscall): Likewise.
7268
7269 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7270
7271         * scripts/list-fixed-bugs.py: New file.
7272
7273         [BZ #19213]
7274         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7275         returned for argument 1.
7276         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7277         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7278         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7279         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7280         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7281         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7282
7283         [BZ #19211]
7284         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7285         __USE_XOPEN], not if [!__USE_ISOC99].
7286         (lgammaf): Likewise.
7287         (lgammal): Likewise.
7288         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7289         (gammaf): Likewise.
7290         (gammal): Likewise.
7291         * math/test-signgam-finite-c11.c: New file.
7292         * math/test-signgam-finite-c99.c: Likewise.
7293         * math/test-signgam-finite.c: Likewise.
7294         * math/Makefile (tests): Add test-signgam-finite,
7295         test-signgam-finite-c99 and test-signgam-finite-c11.
7296         (CFLAGS-test-signgam-finite.c): New variable.
7297         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7298         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7299
7300         [BZ #19212]
7301         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7302         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7303         500].
7304         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7305         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7306         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7307         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7308         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7309         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7310         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7311         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7312         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7313         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7314
7315         [BZ #19209]
7316         * math/bits/math-finite.h (ldexp): Remove declaration.
7317         (ldexpf): Likewise.
7318         (ldexpl): Likewise.
7319
7320         [BZ #19205]
7321         * math/bits/math-finite.h (acosf): Condition declaration on
7322         [__USE_ISOC99].
7323         (acosl): Likewise.
7324         (acoshf): Likewise.
7325         (acoshl): Likewise.
7326         (asinf): Likewise.
7327         (asinl): Likewise.
7328         (atan2f): Likewise.
7329         (atan2l): Likewise.
7330         (atanhf): Likewise.
7331         (atanhl): Likewise.
7332         (coshf): Likewise.
7333         (coshl): Likewise.
7334         (expf): Likewise.
7335         (expl): Likewise.
7336         (fmodf): Likewise.
7337         (fmodl): Likewise.
7338         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7339         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7340         (j0l): Likewise.
7341         (y0f): Likewise.
7342         (y0l): Likewise.
7343         (j1f): Likewise.
7344         (j1l): Likewise.
7345         (y1f): Likewise.
7346         (y1l): Likewise.
7347         (jnf): Likewise.
7348         (jnl): Likewise.
7349         (ynf): Likewise.
7350         (ynl): Likewise.
7351         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7352         (lgammal_r): Likewise.
7353         (__lgamma_r_finite): New declaration.
7354         (__lgammaf_r_finite): Likewise.
7355         (__lgammal_r_finite): Likewise.
7356         (lgamma): Use __lgamma_r_finite.
7357         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7358         __lgammaf_r_finite.
7359         (lgammal): Condition definition on [__USE_ISOC99].  Use
7360         __lgammal_r_finite.
7361         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7362         __lgamma_r_finite.
7363         (gammaf): Condition definition on [__USE_ISOC99].  Use
7364         __lgammaf_r_finite.
7365         (gammal): Condition definition on [__USE_ISOC99].  Use
7366         __lgammal_r_finite.
7367         (logf): Condition declaration on [__USE_ISOC99].
7368         (logl): Likewise.
7369         (log10f): Likewise.
7370         (log10l): Likewise.
7371         (ldexpf): Likewise.
7372         (ldexpl): Likewise.
7373         (powf): Likewise.
7374         (powl): Likewise.
7375         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7376         __USE_ISOC99].
7377         (remainderf): Condition declaration on [__USE_ISOC99].
7378         (remainderl): Likewise.
7379         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7380         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7381         (scalbl): Likewise.
7382         (sinhf): Condition declaration on [__USE_ISOC99].
7383         (sinhl): Likewise.
7384         (sqrtf): Likewise.
7385         (sqrtl): Likewise.
7386
7387 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7388
7389         * sysdeps/arm/atomic-machine.h
7390         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7391         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7392         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7393         Remove conditional code.
7394         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7395         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7396         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7397         Change conditional to [__ASSEMBLER__].
7398         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7399         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7400         [!__ASSEMBLER__].
7401         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7402         code.
7403         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7404         conditional macro definitions.
7405         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7406         (__arch_compare_and_exchange_val_16_acq): Likewise.
7407         (__arch_compare_and_exchange_val_32_acq): Likewise.
7408         (atomic_exchange_and_add): Likewise.
7409         (atomic_add): Likewise.
7410         (atomic_add_negative): Likewise.
7411         (atomic_add_zero): Likewise.
7412         (atomic_bit_set): Likewise.
7413         (atomic_bit_test_set): Likewise.
7414         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7415         code unconditional.
7416         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7417
7418         * math/test-math-errno.h: New file.
7419         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7420         empty.
7421         (TEST_ERRNO): New macro.
7422         (TEST_EXCEPTIONS): Likewise.
7423         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7424         (TEST_EXCEPTIONS): Likewise.
7425         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7426         * math/test-double.c: Include "test-math-errno.h".
7427         * math/test-float.c: Likewise.
7428         * math/test-ldouble.c: Likewise.
7429         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7430         code unconditional.
7431         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7432         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7433         unconditional.
7434         (test_errno): Only run code if TEST_ERRNO.
7435         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7436
7437 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7438
7439         * nptl/tst-once5.cc: Remove attribution.
7440
7441 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7442
7443         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7444         sqrt, tan, tanh, y0, y1 and yn.
7445         * math/auto-libm-test-out: Regenerated.
7446         * math/libm-test.inc (scalb_test_data): Add more tests.
7447         (scalbn_test_data): Likewise.
7448         (scalbln_test_data): Likewise.
7449         (signbit_test_data): Likewise.
7450         (sin_test_data): Likewise.
7451         (sincos_test_data): Likewise.
7452         (sinh_test_data): Likewise.
7453         (sqrt_test_data): Likewise.
7454         (tan_test_data): Likewise.
7455         (tanh_test_data): Likewise.
7456         (tgamma_test_data): Likewise.
7457         (y0_test_data): Likewise.
7458         (y1_test_data): Likewise.
7459         (yn_test_data): Likewise.
7460         (significand_test_data): Likewise.
7461         * sysdeps/i386/fpu/libm-test-ulps: Update.
7462
7463 2015-11-03  David Kastrup  <dak@gnu.org>
7464
7465         [BZ #18604]
7466         * assert/assert.h (assert): Don't macro-expand failed assertion
7467         expression in error message.
7468         * malloc/malloc.c (assert): Likewise.
7469
7470 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7471
7472         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7473         test.
7474         * configure: Regenerated.
7475
7476 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7477
7478         * math/libm-test.inc (modf_test_data): Add more tests.
7479         (nearbyint_test_data): Likewise.
7480         (nextafter_test_data): Likewise.
7481         (nexttoward_test_data): Likewise.
7482         (pow_test_data): Likewise.
7483         (remainder_test_data): Likewise.
7484         (remquo_test_data): Likewise.
7485         (rint_test_data): Likewise.
7486
7487         [BZ #19201]
7488         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7489         Check for zero remainder in case of large exponents and ensure
7490         correct sign of result in that case.
7491         * math/libm-test.inc (remainder_test_data): Add more tests.
7492
7493         [BZ #6799]
7494         * math/s_nextafter.c: Include <errno.h>.
7495         (__nextafter): Set errno on overflow and underflow.
7496         * math/s_nexttowardf.c: Include <errno.h>.
7497         (__nexttowardf): Set errno on overflow and underflow.
7498         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7499         (__nextafterl): Set errno on overflow and underflow.
7500         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7501         (__nexttoward): Set errno on overflow and underflow.
7502         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7503         (__nexttowardf): Set errno on overflow and underflow.
7504         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7505         (__nextafterf): Set errno on overflow and underflow.
7506         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7507         (__nextafterl): Set errno on overflow and underflow.
7508         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7509         (__nexttoward): Set errno on overflow and underflow.
7510         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7511         (__nexttowardf): Set errno on overflow and underflow.
7512         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7513         (__nextafterl): Set errno on overflow and underflow.
7514         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7515         (__nexttoward): Set errno on overflow and underflow.
7516         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7517         (__nexttowardf): Set errno on overflow and underflow.
7518         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7519         (__nexttoward): Set errno on overflow and underflow.
7520         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7521         (__nexttowardf): Set errno on overflow and underflow.
7522         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7523         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7524         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7525         (__nextafterl): Set errno on overflow and underflow.
7526         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7527         setting to be missing on overflow.  Add more tests.
7528         (nexttoward_test_data): Likewise.
7529
7530         * configure.ac (libc_cv_initfini_array): Remove configure test.
7531         * configure: Regenerated.
7532
7533 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7534
7535         [BZ #19189]
7536         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7537         non-finite argument handle arguments with negative sign.
7538
7539         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7540         result from infinite argument.
7541         (j1_test_data): Likewise.
7542         (jn_test_data): Likewise.
7543         (y0_test_data): Likewise.
7544         (y1_test_data): Likewise.
7545         (yn_test_data): Likewise.
7546
7547         [BZ #16171]
7548         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7549         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7550         * math/w_remainderf.c (dremf): Define as weak alias of
7551         __remainderf.
7552         * math/w_remainderl.c (dreml): Define as weak alias of
7553         __remainderl.
7554         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7555         __remainder.
7556         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7557         __remainderf.
7558         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7559         __remainderl.
7560         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7561         weak alias of remainderl.
7562         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7563         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7564         alias of __remainder.
7565         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7566         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7567         strong alias of __remainderl.
7568         (dreml): Use long_double_symbol.
7569         * math/Makefile (libm-calls): Remove w_drem.
7570         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7571         (CFLAGS-nldbl-drem.c): Remove variable.
7572         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7573         * math/w_drem.c: Remove file.
7574         * math/w_dremf.c: Likewise.
7575         * math/w_dreml.c: Likewise.
7576         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7577         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7578         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7579
7580         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7581         * sysdeps/i386/configure: Regenerated.
7582         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7583         * sysdeps/x86_64/configure: Regenerated.
7584
7585         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7586         test.
7587         (libc_cv_visibility_attribute): Likewise.
7588         (libc_cv_protected_data): Test unconditionally.
7589         (libc_cv_broken_visibility_attribute): Remove configure test.
7590         (libc_cv_have_sdata_section): Test unconditionally.
7591         * configure: Regenerated.
7592
7593         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7594         * include/scratch_buffer.h: Include <stddef.h> instead of
7595         <libc-internal.h>.
7596         (struct scratch_buffer): Use max_align_t instead of
7597         libc_max_align_t.
7598
7599 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7600
7601         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7602         instead of extend_alloca.  Change control flow to avoid a goto.
7603         Remove assert which is trivially always true.
7604
7605 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7606
7607         [BZ #16068]
7608         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7609         (FE_ALL_EXCEPT_X86): New macro.
7610         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7611         FE_ALL_EXCEPT.  Ensure precision control is included in
7612         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7613         handle "denormal operand exception" and clear FZ and DAZ bits.
7614         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7615         (FE_ALL_EXCEPT_X86): New macro.
7616         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7617         FE_ALL_EXCEPT.  Ensure precision control is included in
7618         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7619         handle "denormal operand exception" and clear FZ and DAZ bits.
7620         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7621         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7622         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7623         test-fenv-x87 and test-fenv-sse-2.
7624         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7625
7626         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7627         * math/test-double.h (BUILD_COMPLEX): New macro.
7628         * math/test-float.h (BUILD_COMPLEX): Likewise.
7629         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7630
7631         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7632         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7633         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7634         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7635         instead of DBL_DENORM_MIN in comment.
7636         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7637         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7638         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7639         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7640         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7641         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7642
7643 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7644
7645         [BZ# 19048]
7646         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7647         attached_threads member.
7648         (main_arena): Initialize attached_threads.
7649         * malloc/arena.c (list_lock): Update comment.
7650         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7651         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7652         (deattach_arena): New function.
7653         (_int_new_arena): Initialize arena reference count and deattach
7654         replaced arena.
7655         (get_free_list, reused_arena): Update reference count and deattach
7656         replaced arena.
7657         (arena_thread_freeres): Update arena reference count and only put
7658         unreferenced arenas on the free list.
7659
7660 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7661
7662         [BZ #19181]
7663         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7664         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7665         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7666         * math/test-fenv-clear-main.c: New file.
7667         * math/test-fenv-clear.c: Likewise.
7668         * math/Makefile (tests): Add test-fenv-clear.
7669         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7670         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7671         test-fenv-clear-sse.
7672         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7673
7674         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7675         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7676         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7677
7678 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7679
7680         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7681         static libc.
7682
7683 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7684
7685         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7686         test.
7687         * sysdeps/i386/configure: Regenerated.
7688         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7689         test.
7690         * sysdeps/x86_64/configure: Regenerated.
7691         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7692         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7693         memset-avx2 unconditionally instead of conditionally on
7694         [$(config-cflags-avx2) = yes].
7695         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7696         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7697         unconditional.
7698         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7699         * sysdeps/x86_64/multiarch/memset_chk.S
7700         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7701         to [IS_IN (libc) && SHARED].
7702
7703 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7704
7705         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7706         configure test.
7707         * sysdeps/arm/configure: Regenerated.
7708         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7709         Define variable if not already defined.
7710
7711         [BZ #17404]
7712         * sysdeps/mips/atomic-machine.h
7713         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7714         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7715         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7716
7717         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7718         unconditional.
7719         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7720         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7721         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7722         unconditional.
7723         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7724         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7725         unconditional.
7726         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7727         * stdlib/setenv.c
7728         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7729         code unconditional.
7730         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7731         Remove conditional code.
7732         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7733         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7734         unconditional.
7735         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7736         code.
7737         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7738         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7739         unconditional.
7740         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7741         code.
7742         * sysdeps/ieee754/ldbl-128/k_tanl.c
7743         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7744         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7745         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7746         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7747         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7748         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7749         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7750         unconditional.
7751         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7752         code.
7753         * sysdeps/ieee754/ldbl-96/k_tanl.c
7754         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7755         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7756
7757         * nptl/tst-initializers1-c11.c: New file.
7758         * nptl/tst-initializers1-gnu11.c: Likewise.
7759         * nptl/Makefile (tests): Add these new tests.
7760         (CFLAGS-tst-initializers1-c11.c): New variable.
7761         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7762
7763         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7764         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7765         instead of -std=gnu99.
7766         * configure.ac (systemtap): Test with -std=gnu11 instead of
7767         -std=gnu99.
7768         * configure: Regenerated.
7769         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7770         in compilation command in comment.
7771
7772         * sysdeps/nptl/configure.ac: Remove file.
7773         * sysdeps/nptl/configure: Remove generated file.
7774         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7775         * configure: Regenerated.
7776         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7777         * config.make.in (have-forced-unwind): Remove variable.
7778         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7779         unconditional.
7780         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7781         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7782         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7783         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7784         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7785         unconditional.
7786
7787 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7788
7789         [BZ #19174]
7790         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7791         .skip_lock_out_of_tbegin_retries.
7792         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7793         (__lll_lock_elision): Likewise, and respect a value of
7794         try_tbegin <= 0.
7795
7796 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7797
7798         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7799         statement.
7800
7801 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7802
7803         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7804         variable.
7805         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7806         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7807
7808         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7809         of -std=c1x -D_ISOC11_SOURCE.
7810
7811         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7812         * configure: Regenerated.
7813         * manual/install.texi (Tools for Compilation): Document
7814         requirement for GCC 4.7 or later.
7815         * INSTALL: Regenerated.
7816
7817 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7818
7819         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7820         on CNT to a conditional jump to 'puntdata'.
7821
7822 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7823
7824         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7825         (libc_cv_gcc_tls_model_attr): Likewise.
7826         * configure: Regenerated.
7827
7828         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7829         * configure: Regenerated.
7830         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7831
7832 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7833
7834         * configure.ac (old_glibc_headers): Remove configure test.
7835         * configure: Regenerated.
7836         * config.make.in (old-glibc-headers): Remove variable.
7837         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7838         (install): Remove dependency on remove-old-headers.
7839         (headers2_0): Remove variable.
7840         (remove-old-headers): Remove rule.
7841
7842         * configure.ac (libc_cv_dot_text): Remove configure test.
7843         (libc_cv_asm_set_directive): Use .text instead of
7844         ${libc_cv_dot_text} in configure test.
7845         * configure: Regenerated.
7846
7847 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7848
7849         [BZ #19168]
7850         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7851
7852 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7853
7854         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7855         not support static linking.
7856         * configure: Regenerate.
7857
7858 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7859
7860         * math/libm-test.inc (check_float_internal): Do not special-case
7861         errors up to 0.5 ulp.
7862
7863         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7864         log2.
7865         * math/auto-libm-test-out: Regenerated.
7866         * math/libm-test.inc (MAX_EXP): New macro.
7867         (ilogb_test_data): Add more tests.
7868         (isfinite_test_data): Likewise.
7869         (isgreater_test_data): Likewise.
7870         (isgreaterequal_test_data): Likewise.
7871         (isinf_test_data): Likewise.
7872         (isless_test_data): Likewise.
7873         (islessequal_test_data): Likewise.
7874         (islessgreater_test_data): Likewise.
7875         (isnan_test_data): Likewise.
7876         (isnormal_test_data): Likewise.
7877         (issignaling_test_data): Likewise.
7878         (isunordered_test_data): Likewise.
7879         (j0_test_data): Likewise.
7880         (j1_test_data): Likewise.
7881         (jn_test_data): Likewise.
7882         (lgamma_test_data): Likewise.
7883         (log_test_data): Likewise.
7884         (log10_test_data): Likewise.
7885         (log1p_test_data): Likewise.
7886         (log2_test_data): Likewise.
7887         (logb_test_data): Likewise.
7888         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7889
7890         [BZ #18611]
7891         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7892         avoid excess range and precision on underflow.
7893         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7894         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7895         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7896         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7897         underflow.
7898         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7899         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7900         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7901         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7902         * math/auto-libm-test-in: Do not allow missing errno setting for
7903         tests of j1 and jn.
7904         * math/auto-libm-test-out: Regenerated.
7905
7906 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7907
7908         [BZ #15491]
7909         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7910         floating-point environment instead of clearing all exceptions.
7911         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7912         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7913         merging in "invalid" exceptions from frndint.
7914         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7915         * math/test-nearbyint-except.c: New file.
7916         * math/Makefile (tests): Add test-nearbyint-except.
7917
7918 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7919
7920         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7921
7922         * sysdeps/tile/libm-test-ulps: Regenerated.
7923
7924 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7925
7926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7927         (__NR_sync_file_range2): Assume it is always defined.
7928         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7929         (__NR_sync_file_range): Assume it is always defined.
7930
7931 2015-10-22  Andreas Schwab  <schwab@suse.de>
7932
7933         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7934         INTERNAL_SYSCALL_ERRNO.
7935         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7936         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7937         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7938         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7939         Likewise.
7940         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7941
7942 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7943
7944         * io/tst-fcntl.c (fd): New static variable.
7945         (do_prepare): Open temporary file here....
7946         (do_test): ...not here.
7947
7948         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7949
7950 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7951
7952         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7953         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7954         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7955         Moved before "#ifdef __ASSEMBLER__".
7956
7957 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7958
7959         [BZ #19156]
7960         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7961         arguments very close to 0.
7962
7963 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7964
7965         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7966         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7967
7968 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7969
7970         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7971         New.  Defined for GCC 5 and above when not compiling for
7972         profiling.
7973         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7974
7975         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7976         Renamed to ...
7977         (CFLAGS-epoll_pwait.o): This.
7978         (CFLAGS-mmap.c): Renamed to ...
7979         (CFLAGS-mmap.o): This.
7980         (CFLAGS-mmap64.c): Renamed to ...
7981         (CFLAGS-mmap64.o): This.
7982         (CFLAGS-epoll_pwait.os): New.
7983         (CFLAGS-mmap.os): Likewise.
7984         (CFLAGS-mmap64.os): Likewise.
7985         (CFLAGS-semtimedop.os): Likewise.
7986         (CFLAGS-semtimedop.c): Renamed to ...
7987         (CFLAGS-semtimedop.o): This.
7988
7989 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7990
7991         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7992         warning message.
7993
7994 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7995
7996         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7997         * Makefile ($(objpfx)c++-types-check.out): Filter out
7998         $(+gccwarn-c) instead of -Wstrict-prototypes.
7999
8000         * io/fts.c (fts_open): Convert to prototype-style function
8001         definition.
8002         * malloc/mcheck.c (mcheck): Likewise.
8003         (mcheck_pedantic): Likewise.
8004         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8005         internal_function.
8006         (re_search_internal): Likewise.
8007         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8008         prototype-style function definition.
8009         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8010         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8011         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8012         (xdr_utmpptr): Likewise.
8013         (xdr_utmparr): Likewise.
8014         (xdr_utmpidle): Likewise.
8015         (xdr_utmpidleptr): Likewise.
8016         (xdr_utmpidlearr): Likewise.
8017
8018         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8019         log, log10 and log2.
8020         * math/auto-libm-test-out: Regenerated.
8021         * math/libm-test.inc (fmod_test_data): Add more tests.
8022         (fpclassify_test_data): Likewise.
8023         (frexp_test_data): Likewise.
8024         (hypot_test_data): Likewise.
8025         (ilogb_test_data): Likewise.
8026
8027 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8028
8029         * debug/fortify_fail.c (__fortify_fail): Convert to
8030         prototype-style function definition.  Use internal_function.
8031         * libio/genops.c (save_for_backup): Convert to prototype-style
8032         function definition.
8033         * libio/wgenops.c (save_for_wbackup): Likewise.
8034         * login/grantpt.c (grantpt): Likewise.
8035         * login/ptsname.c (ptsname): Likewise.
8036         (__ptsname_r): Likewise.
8037         * login/unlockpt.c (unlockpt): Likewise.
8038         * mach/msgserver.c (__mach_msg_server): Likewise.
8039         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8040         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8041         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8042         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8043         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8044         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8045         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8046         Likewise.
8047         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8048         internal_function.
8049         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8050         prototype-style function definition.
8051         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8052         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8053         (__pthread_create_2_0): Likewise.
8054         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8055         * nptl/register-atfork.c (__register_atfork): Likewise.
8056         * posix/glob.c (glob): Likewise.
8057         * posix/regcomp.c (re_comp): Likewise.
8058         * posix/regexec.c (re_exec): Likewise.
8059         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8060         [!__STDC__]: Remove conditional code.
8061         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8062         [!__STDC__]: Remove conditional code.
8063         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8064         [!__STDC__]: Remove conditional code.
8065         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8066         [!__STDC__]: Remove conditional code.
8067         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8068         [!__STDC__]: Remove conditional code.
8069         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8070         [!__STDC__]: Remove conditional code.
8071         * stdlib/mul.c [__STDC__]: Make code unconditional.
8072         [!__STDC__]: Remove conditional code.
8073         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8074         [!__STDC__]: Remove conditional code.
8075         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8076         [!__STDC__]: Remove conditional code.
8077         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8078         function definition.
8079         (STRTOF): Likewise.
8080         * stdlib/strtod_l.c (__STRTOF): Likewise.
8081         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8082         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8083         (__strtol_l): Likewise.
8084         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8085         [!__STDC__]: Remove conditional code.
8086         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8087         definition.
8088         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8089         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8090         type.
8091         (__strcasecmp): Convert to prototype-style function definition.
8092         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8093         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8094         type.
8095         (__strncasecmp): Convert to prototype-style function definition.
8096         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8097         * sunrpc/xdr.c (xdr_union): Likewise.
8098         * sunrpc/xdr_array.c (xdr_array): Likewise.
8099         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8100         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8101         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8102         Likewise.
8103         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8104         Likewise.
8105         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8106         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8107         Likewise.
8108         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8109         (LOCALE_PARAM_PROTO): Likewise.
8110         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8111         argument type.
8112         (ut_argument_spec): Remove macro.
8113         (ut_argument_spec_iso): Rename to ut_argument_spec.
8114         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8115         prototype-style function definition.
8116         (memcpy_uppcase): Likewise.
8117         (__strftime_internal): Likewise.
8118         (my_strftime): Likewise.
8119         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8120         (LOCALE_PARAM_DECL): Likewise.
8121         [_LIBC] (LOCALE_PARAM): Include argument type.
8122         (__strptime_internal): Convert to prototype-style function
8123         definition.
8124         (strptime): Likewise.
8125         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8126         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8127         type.
8128         (__wcscasecmp): Convert to prototype-style function definition.
8129         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8130         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8131         type.
8132         (__wcsncasecmp): Convert to prototype-style function definition.
8133
8134         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8135         function definition.
8136         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8137         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8138         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8139         * elf/dl-minimal.c (_itoa): Likewise.
8140         * hurd/hurdmalloc.c (malloc): Likewise.
8141         (free): Likewise.
8142         (realloc): Likewise.
8143         * inet/inet6_option.c (inet6_option_space): Likewise.
8144         (inet6_option_init): Likewise.
8145         (inet6_option_append): Likewise.
8146         (inet6_option_alloc): Likewise.
8147         (inet6_option_next): Likewise.
8148         (inet6_option_find): Likewise.
8149         * io/ftw.c (FTW_NAME): Likewise.
8150         (NFTW_NAME): Likewise.
8151         (NFTW_NEW_NAME): Likewise.
8152         (NFTW_OLD_NAME): Likewise.
8153         * libio/iofwide.c (_IO_fwide): Likewise.
8154         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8155         (_IO_str_init_static): Likewise.
8156         (_IO_str_init_readonly): Likewise.
8157         (_IO_str_overflow): Likewise.
8158         (_IO_str_underflow): Likewise.
8159         (_IO_str_count): Likewise.
8160         (_IO_str_seekoff): Likewise.
8161         (_IO_str_pbackfail): Likewise.
8162         (_IO_str_finish): Likewise.
8163         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8164         (_IO_wstr_overflow): Likewise.
8165         (_IO_wstr_underflow): Likewise.
8166         (_IO_wstr_count): Likewise.
8167         (_IO_wstr_seekoff): Likewise.
8168         (_IO_wstr_pbackfail): Likewise.
8169         (_IO_wstr_finish): Likewise.
8170         * locale/programs/localedef.c (normalize_codeset): Likewise.
8171         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8172         (add_locales_to_archive): Likewise.
8173         (delete_locales_from_archive): Likewise.
8174         * malloc/malloc.c (__libc_mallinfo): Likewise.
8175         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8176         * misc/tsearch.c (__tfind): Likewise.
8177         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8178         * nptl/pthread_attr_getdetachstate.c
8179         (__pthread_attr_getdetachstate): Likewise.
8180         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8181         Likewise.
8182         * nptl/pthread_attr_getinheritsched.c
8183         (__pthread_attr_getinheritsched): Likewise.
8184         * nptl/pthread_attr_getschedparam.c
8185         (__pthread_attr_getschedparam): Likewise.
8186         * nptl/pthread_attr_getschedpolicy.c
8187         (__pthread_attr_getschedpolicy): Likewise.
8188         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8189         Likewise.
8190         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8191         Likewise.
8192         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8193         Likewise.
8194         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8195         Likewise.
8196         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8197         (__pthread_attr_init_2_0): Likewise.
8198         * nptl/pthread_attr_setdetachstate.c
8199         (__pthread_attr_setdetachstate): Likewise.
8200         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8201         Likewise.
8202         * nptl/pthread_attr_setinheritsched.c
8203         (__pthread_attr_setinheritsched): Likewise.
8204         * nptl/pthread_attr_setschedparam.c
8205         (__pthread_attr_setschedparam): Likewise.
8206         * nptl/pthread_attr_setschedpolicy.c
8207         (__pthread_attr_setschedpolicy): Likewise.
8208         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8209         Likewise.
8210         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8211         Likewise.
8212         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8213         Likewise.
8214         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8215         Likewise.
8216         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8217         Likewise.
8218         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8219         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8220         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8221         use internal_function.
8222         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8223         prototype-style function definition.
8224         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8225         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8226         internal_function.
8227         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8228         Convert to prototype-style function definition.
8229         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8230         Likewise.
8231         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8232         Likewise.
8233         (__pthread_mutex_unlock): Likewise.
8234         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8235         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8236         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8237         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8238         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8239         * nss/makedb.c (process_input): Likewise.
8240         * posix/fnmatch.c (__strchrnul): Likewise.
8241         (__wcschrnul): Likewise.
8242         (fnmatch): Likewise.
8243         * posix/fnmatch_loop.c (FCT): Likewise.
8244         * posix/glob.c (globfree): Likewise.
8245         (__glob_pattern_type): Likewise.
8246         (__glob_pattern_p): Likewise.
8247         * posix/regcomp.c (re_compile_pattern): Likewise.
8248         (re_set_syntax): Likewise.
8249         (re_compile_fastmap): Likewise.
8250         (regcomp): Likewise.
8251         (regerror): Likewise.
8252         (regfree): Likewise.
8253         * posix/regexec.c (regexec): Likewise.
8254         (re_match): Likewise.
8255         (re_search): Likewise.
8256         (re_match_2): Likewise.
8257         (re_search_2): Likewise.
8258         (re_search_stub): Likewise.  Use internal_function
8259         (re_copy_regs): Likewise.
8260         (re_set_registers): Convert to prototype-style function
8261         definition.
8262         (prune_impossible_nodes): Likewise.  Use internal_function.
8263         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8264         prototype-style function definition.
8265         (inet_net_pton_ipv4): Likewise.
8266         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8267         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8268         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8269         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8270         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8271         Make variadic.
8272         * time/strptime_l.c (localtime_r): Convert to prototype-style
8273         function definition.
8274         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8275         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8276         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8277         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8278
8279         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8280         definition.
8281         (_ufc_doit_r): Likewise.
8282         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8283         (_ufc_output_conversion_r): Likewise.
8284         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8285         * inet/rcmd.c (rcmd_af): Likewise.
8286         (rcmd): Likewise.
8287         (ruserok_af): Likewise.
8288         (ruserok): Likewise.
8289         (ruserok2_sa): Likewise.
8290         (ruserok_sa): Likewise.
8291         (iruserok_af): Likewise.
8292         (iruserok): Likewise.
8293         (__ivaliduser): Likewise.
8294         (__validuser2_sa): Likewise.
8295         * inet/rexec.c (rexec_af): Likewise.
8296         (rexec): Likewise.
8297         * inet/ruserpass.c (ruserpass): Likewise.
8298         * locale/programs/xmalloc.c (xcalloc): Likewise.
8299         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8300         * math/w_drem.c (__drem): Likewise.
8301         * math/w_dremf.c (__dremf): Likewise.
8302         * math/w_dreml.c (__dreml): Likewise.
8303         * misc/daemon.c (daemon): Likewise.
8304         * resolv/res_debug.c (p_fqnname): Likewise.
8305         * stdlib/div.c (div): Likewise.
8306         * string/memcmp.c (memcmp_bytes): Likewise.
8307         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8308         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8309
8310         * crypt/cert.c (main): Convert to prototype-style function
8311         definition.
8312         * io/pipe.c (__pipe): Likewise.
8313         * io/pipe2.c (__pipe2): Likewise.
8314         * misc/futimesat.c (futimesat): Likewise.
8315         * misc/utimes.c (__utimes): Likewise.
8316         * posix/execve.c (__execve): Likewise.
8317         * posix/execvp.c (execvp): Likewise.
8318         * posix/execvpe.c (__execvpe): Likewise.
8319         * posix/fexecve.c (fexecve): Likewise.
8320         * socket/socketpair.c (socketpair): Likewise.
8321         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8322         * stdlib/erand48.c (erand48): Likewise.
8323         * stdlib/erand48_r.c (__erand48_r): Likewise.
8324         * stdlib/jrand48.c (jrand48): Likewise.
8325         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8326         * stdlib/lcong48.c (lcong48): Likewise.
8327         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8328         * stdlib/nrand48.c (nrand48): Likewise.
8329         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8330         * stdlib/seed48.c (seed48): Likewise.
8331         * stdlib/seed48_r.c (__seed48_r): Likewise.
8332         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8333         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8334         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8335
8336 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8337
8338         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8339         * configure: Regenerated.
8340         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8341         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8342         unconditional.
8343         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8344         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8345         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8346         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8347         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8348         unconditional.
8349         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8350
8351         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8352         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8353
8354         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8355         function definition.
8356         * crypt/crypt_util.c (__encrypt_r): Likewise.
8357         * libio/genops.c (_IO_no_init): Likewise.
8358         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8359         (_IO_old_fopencookie): Likewise.
8360         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8361         * libio/iogetline.c (_IO_getline): Likewise.
8362         (_IO_getline_info): Likewise.
8363         * libio/iogetwline.c (_IO_getwline): Likewise.
8364         (_IO_getwline_info): Likewise.
8365         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8366         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8367         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8368         (find_entry): Likewise.
8369         (iterate_table): Likewise.
8370         (lookup): Likewise.
8371         * login/forkpty.c (forkpty): Likewise.
8372         * misc/hsearch_r.c (__hsearch_r): Likewise.
8373         * misc/select.c (__select): Likewise.
8374         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8375         Likewise.
8376         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8377         Likewise.
8378         * nptl/old_pthread_cond_timedwait.c
8379         (__pthread_cond_timedwait_2_0): Likewise.
8380         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8381         * nptl/pthread_barrierattr_getpshared.c
8382         (pthread_barrierattr_getpshared): Likewise.
8383         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8384         Likewise.
8385         * nptl/pthread_mutex_setprioceiling.c
8386         (pthread_mutex_setprioceiling): Likewise.
8387         * nptl/pthread_mutexattr_getprioceiling.c
8388         (pthread_mutexattr_getprioceiling): Likewise.
8389         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8390         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8391         Likewise.
8392         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8393         Likewise.
8394         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8395         Likewise.
8396         * socket/recvfrom.c (__recvfrom): Likewise.
8397         * socket/sendto.c (__sendto): Likewise.
8398         * socket/setsockopt.c (__setsockopt): Likewise.
8399         * stdio-common/_itoa.c (_itoa): Likewise.
8400         * stdio-common/_itowa.c (_itowa): Likewise.
8401         * stdio-common/reg-printf.c (__register_printf_specifier):
8402         Likewise.
8403         (__register_printf_function): Likewise.
8404         * stdio-common/tempname.c (__path_search): Likewise.
8405         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8406         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8407         * stdlib/random_r.c (__initstate_r): Likewise.
8408         * stdlib/setenv.c (__add_to_environ): Likewise.
8409         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8410         * streams/getpmsg.c (getpmsg): Likewise.
8411         * streams/putmsg.c (putmsg): Likewise.
8412         * streams/putpmsg.c (putpmsg): Likewise.
8413         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8414         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8415         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8416         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8417         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8418         * sunrpc/svc_udp.c (cache_get): Likewise.
8419         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8420         * sysdeps/mach/hurd/getcwd.c
8421         (__canonicalize_directory_name_internal): Likewise.
8422         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8423         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8424         * sysdeps/mach/hurd/select.c (__select): Likewise.
8425         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8426         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8427         * sysdeps/sparc/nptl/pthread_barrier_init.c
8428         (__pthread_barrier_init): Likewise.
8429         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8430         (__pthread_cond_timedwait): Likewise.
8431         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8432         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8433         Likewise.
8434         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8435         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8436         Likewise.
8437         * sysvipc/semtimedop.c (semtimedop): Likewise.
8438         * time/setitimer.c (__setitimer): Likewise.
8439         * time/strftime_l.c (emacs_strftime): Likewise.
8440
8441 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8442
8443         * config.make.in (have-ssp): Delete.
8444         (stack-protector): New variable.
8445         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8446         cache test for -fstack-protector-strong.  Export stack_protector to
8447         the best ssp flag.
8448         * configure: Regenerated.
8449         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8450         * nscd/Makefile (CFLAGS-nscd): Likewise.
8451         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8452
8453 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8454
8455         [BZ #19122]
8456         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8457         attribute_hidden.
8458
8459 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8460
8461         [BZ #18743]
8462         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8463         code to...
8464         (ELIDE_LOCK): ...here.
8465         (__get_new_count): New function with part of the code from
8466         __elide_lock that updates the value of adapt_count after a
8467         transaction abort.
8468         (__elided_trylock): Moved this code to...
8469         (ELIDE_TRYLOCK): ...here.
8470
8471 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8472
8473         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8474         * configure: Regenerate.
8475         * INSTALL: Regenerate.
8476         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8477         and tweak grammar.
8478
8479 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8480
8481         * login/programs/pt_chown.c: Include signal.h
8482         (main): Clear any signal mask from the parent process.
8483
8484 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8485
8486         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8487         * configure: Regenerated.
8488         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8489         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8490         $(gnu89-inline-CFLAGS).
8491
8492         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8493         test.
8494         (libc_cv_asm_weakext_directive): Likewise.
8495         * configure: Regenerated.
8496         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8497         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8498         * include/libc-symbols.h
8499         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8500         #error.
8501         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8502         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8503
8504         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8505         prototype-style function definition.
8506         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8507         * sysdeps/i386/ffs.c (__ffs): Likewise.
8508         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8509         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8510         Likewise.
8511         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8512         Likewise.
8513         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8514         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8515         Likewise.
8516         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8517         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8518         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8519         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8520         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8521         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8522         * sysdeps/mach/hurd/access.c (__access): Likewise.
8523         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8524         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8525         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8526         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8527         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8528         (cthread_getspecific): Likewise.
8529         (cthread_setspecific): Likewise.
8530         (__libc_getspecific): Likewise.
8531         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8532         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8533         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8534         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8535         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8536         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8537         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8538         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8539         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8540         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8541         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8542         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8543         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8544         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8545         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8546         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8547         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8548         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8549         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8550         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8551         * sysdeps/mach/hurd/link.c (__link): Likewise.
8552         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8553         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8554         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8555         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8556         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8557         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8558         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8559         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8560         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8561         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8562         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8563         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8564         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8565         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8566         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8567         * sysdeps/mach/hurd/send.c (__send): Likewise.
8568         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8569         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8570         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8571         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8572         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8573         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8574         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8575         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8576         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8577         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8578         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8579         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8580         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8581         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8582         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8583         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8584         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8585         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8586         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8587         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8588         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8589         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8590         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8591         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8592         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8593         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8594         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8595         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8596         * sysdeps/posix/alarm.c (alarm): Likewise.
8597         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8598         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8599         * sysdeps/posix/dup.c (__dup): Likewise.
8600         * sysdeps/posix/dup2.c (__dup2): Likewise.
8601         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8602         (main): Likewise.
8603         * sysdeps/posix/flock.c (__flock): Likewise.
8604         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8605         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8606         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8607         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8608         * sysdeps/posix/isatty.c (__isatty): Likewise.
8609         * sysdeps/posix/killpg.c (killpg): Likewise.
8610         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8611         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8612         * sysdeps/posix/raise.c (raise): Likewise.
8613         * sysdeps/posix/remove.c (remove): Likewise.
8614         * sysdeps/posix/rename.c (rename): Likewise.
8615         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8616         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8617         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8618         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8619         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8620         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8621         * sysdeps/posix/sigset.c (sigset): Likewise.
8622         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8623         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8624         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8625         * sysdeps/posix/time.c (time): Likewise.
8626         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8627         (ttyname): Likewise.
8628         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8629         * sysdeps/posix/utime.c (utime): Likewise.
8630         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8631         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8632         Likewise.
8633         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8634         (pthread_spin_trylock): Likewise.
8635         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8636         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8637         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8638         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8639         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8640         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8641         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8642         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8643         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8644         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8645         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8646         * sysdeps/s390/ffs.c (__ffs): Likewise.
8647         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8648         Likewise.
8649         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8650         Likewise.
8651         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8652         Likewise.
8653         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8654         (pthread_barrier_destroy): Likewise.
8655         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8656         (__pthread_barrier_wait): Likewise.
8657         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8658         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8659         (__pthread_barrier_wait): Likewise.
8660         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8661         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8662         (memcmp_not_common_alignment): Likewise.
8663         (MEMCMP): Likewise.
8664         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8665         (_wordcopy_fwd_dest_aligned): Likewise.
8666         (_wordcopy_bwd_aligned): Likewise.
8667         (_wordcopy_bwd_dest_aligned): Likewise.
8668         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8669         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8670         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8671         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8672         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8673         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8674         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8675         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8676         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8677         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8678         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8679         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8680         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8681         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8682         * sysdeps/unix/stime.c (stime): Likewise.
8683         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8684         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8685         Likewise.  Use internal_function.
8686         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8687         Convert to prototype-style function definition.
8688         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8689         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8690         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8691         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8692         Likewise.  Use internal_function.
8693         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8694         prototype-style function definition
8695         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8696         Likewise.
8697         (__getlogin_r): Likewise.
8698         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8699         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8700         (__pthread_cond_broadcast): Likewise.
8701         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8702         (__pthread_cond_destroy): Likewise.
8703         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8704         (__pthread_cond_init): Likewise.
8705         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8706         (__pthread_cond_signal): Likewise.
8707         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8708         (__pthread_cond_wait): Likewise.
8709         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8710         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8711         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8712         Likewise.
8713         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8714         Likewise.
8715         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8716         Likewise.
8717         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8718         Likewise.
8719         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8721         (__ftruncate64): Likewise.
8722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8723         (truncate64): Likewise.
8724         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8725         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8726         (pthread_getcpuclockid): Likewise.
8727         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8728         Likewise.
8729         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8730         Likewise.
8731         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8732         Likewise.
8733         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8734         Likewise.
8735         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8736         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8737         (__libc_sigaction): Likewise.
8738         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8739         Likewise.
8740         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8741         (__sigprocmask): Likewise.
8742         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8743         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8744         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8745         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8746         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8747         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8748         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8749         Likewise.
8750         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8751         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8752         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8753         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8754         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8755         Likewise.
8756         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8757         (__sigprocmask): Likewise.
8758         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8759         (cfgetispeed): Likewise.
8760         (cfsetospeed): Likewise.
8761         (cfsetispeed): Likewise.
8762         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8763         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8764         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8765         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8766         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8767         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8768         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8769         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8770         Likewise.
8771         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8772         Likewise.
8773         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8774         Likewise.
8775         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8776         Likewise.
8777         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8778
8779 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8780
8781         sunrpc: Rewrite with explicit TLS access using __thread.
8782         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8783         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8784         directly.
8785         (__rpc_thread_variables): Access thread_rpc_vars directly.
8786         Eliminate redundant assignment of the tvp variable.
8787
8788 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8789
8790         malloc: Rewrite with explicit TLS access using __thread.
8791         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8792         (tsd_setspecific, tsd_getspecific): Remove.
8793         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8794         (tsd_setspecific, tsd_getspecific): Likewise.
8795         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8796         (tsd_setspecific, tsd_getspecific): Likewise.
8797         * malloc/arena.c (thread_arena): New TLS variable.
8798         (arena_key): Remove variable.
8799         (arena_get): Use thread_arena.
8800         (arena_lookup): Remove macro.
8801         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8802         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8803         (_int_new_arena, get_free_list, reused_arena)
8804         (arena_thread_freeres): Use thread_arena.
8805         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8806         tsd_getspecific, tsd_setspecific from safety annotations.
8807         (Allocating Cleared Space): Remove arena_lookup from safety
8808         annotations.
8809
8810 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8811
8812         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8813         struct scratch_buffer instead of extend_alloca.
8814
8815 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8816
8817         * sysdeps/unix/sysv/linux/kernel-features.h
8818         (__ASSUME_SOCK_CLOEXEC): Remove.
8819         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8820         (__have_paccept): Remove unused macro.
8821         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8822         * misc/syslog.c (openlog_internal): Remove fallback code for
8823         !__ASSUME_SOCK_CLOEXEC.
8824         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8825         missing SOCK_CLOEXEC.
8826         * nscd/connections.c (have_sock_cloexec): Remove definition.
8827         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8828         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8829         !__ASSUME_SOCK_CLOEXEC.
8830         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8831         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8832         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8833         definition.
8834         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8835         code for !__ASSUME_SOCK_CLOEXEC.
8836
8837 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8838
8839         [BZ #18982]
8840         * manual/stdio.texi (Variable Arguments Output): Add portability
8841         note, explaining that vfprintf clobbers the va_list pointer.
8842
8843 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8844
8845         * math/libm-test.inc (fabs_test_data): Add more tests.
8846         (fdim_test_data): Likewise.
8847         (fma_test_data): Likewise.
8848         (fmax_test_data): Likewise.
8849         (fmin_test_data): Likewise.
8850         (fmod_test_data): Likewise.
8851
8852 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8853
8854         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8855         data.
8856
8857 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8858
8859         * math/libm-test.inc (ceil_test_data): Add more tests and more
8860         expectations for "inexact".
8861         (floor_test_data): Add more tests.
8862         (round_test_data): Likewise.
8863         (trunc_test_data): Likewise.
8864
8865         * crypt/cert.c (good_bye): Convert to prototype-style function
8866         definition.
8867         (get8): Likewise.
8868         (put8): Likewise.
8869         * crypt/crypt-entry.c (crypt): Likewise.
8870         (__fcrypt): Likewise.
8871         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8872         (_ufc_set_bits): Likewise.
8873         (_ufc_clearmem): Likewise.
8874         (__init_des_r): Likewise.
8875         (shuffle_sb): Likewise.
8876         (shuffle_sb): Likewise.
8877         (_ufc_setup_salt_r): Likewise.
8878         (_ufc_mk_keytab_r): Likewise.
8879         (_ufc_dofinalperm_r): Likewise.
8880         (encrypt): Likewise.
8881         (__setkey_r): Likewise.
8882         (setkey): Likewise.
8883         * crypt/md5.c (md5_init_ctx): Likewise.
8884         (md5_read_ctx): Likewise.
8885         (md5_finish_ctx): Likewise.
8886         (md5_stream): Likewise.
8887         (md5_buffer): Likewise.
8888         (md5_process_bytes): Likewise.
8889         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8890         (__sha256_finish_ctx): Likewise.
8891         (__sha256_process_bytes): Likewise.
8892         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8893         (__sha512_finish_ctx): Likewise.
8894         (__sha512_process_bytes): Likewise.
8895         * ctype/isctype.c (__isctype): Likewise.
8896         * debug/backtrace.c (__backtrace): Likewise.
8897         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8898         * debug/fgets_chk.c (__fgets_chk): Likewise.
8899         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8900         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8901         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8902         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8903         * debug/memset_chk.c (__memset_chk): Likewise.
8904         * debug/strcat_chk.c (__strcat_chk): Likewise.
8905         * debug/strncat_chk.c (__strncat_chk): Likewise.
8906         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8907         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8908         * dirent/dirfd.c (dirfd): Likewise.
8909         * dirent/getdents.c (__getdirentries): Likewise.
8910         * dirent/getdents64.c (getdirentries64): Likewise.
8911         * dirent/rewinddir.c (__rewinddir): Likewise.
8912         * dirent/seekdir.c (seekdir): Likewise.
8913         * dirent/telldir.c (telldir): Likewise.
8914         * elf/sln.c (makesymlinks): Likewise.
8915         (makesymlink): Likewise.
8916         * gmon/gmon.c (__moncontrol): Likewise.
8917         (__monstartup): Likewise.
8918         (write_hist): Likewise.
8919         (write_call_graph): Likewise.
8920         (write_bb_counts): Likewise.
8921         * grp/setgroups.c (setgroups): Likewise.
8922         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8923         * inet/inet_net.c (inet_network): Likewise.
8924         * inet/inet_netof.c (inet_netof): Likewise.
8925         * inet/rcmd.c (rresvport_af): Likewise.
8926         (rresvport): Likewise.
8927         * io/access.c (__access): Likewise.
8928         * io/chdir.c (__chdir): Likewise.
8929         * io/chmod.c (__chmod): Likewise.
8930         * io/chown.c (__chown): Likewise.
8931         * io/close.c (__close): Likewise.
8932         * io/creat.c (creat): Likewise.
8933         * io/creat64.c (creat64): Likewise.
8934         * io/dup.c (__dup): Likewise.
8935         * io/dup2.c (__dup2): Likewise.
8936         * io/dup3.c (__dup3): Likewise.
8937         * io/euidaccess.c (__euidaccess): Likewise.
8938         * io/faccessat.c (faccessat): Likewise.
8939         * io/fchmod.c (__fchmod): Likewise.
8940         * io/fchmodat.c (fchmodat): Likewise.
8941         * io/fchown.c (__fchown): Likewise.
8942         * io/fchownat.c (fchownat): Likewise.
8943         * io/fcntl.c (__fcntl): Likewise.
8944         * io/flock.c (__flock): Likewise.
8945         * io/fts.c (fts_load): Likewise.
8946         (fts_close): Likewise.
8947         (fts_read): Likewise.
8948         (fts_set): Likewise.
8949         (fts_children): Likewise.
8950         (fts_build): Likewise.
8951         (fts_stat): Likewise.
8952         (fts_sort): Likewise.
8953         (fts_alloc): Likewise.
8954         (fts_lfree): Likewise.
8955         (fts_palloc): Likewise.
8956         (fts_padjust): Likewise.
8957         (fts_maxarglen): Likewise.
8958         (fts_safe_changedir): Likewise.
8959         * io/getwd.c (getwd): Likewise.
8960         * io/isatty.c (__isatty): Likewise.
8961         * io/lchown.c (__lchown): Likewise.
8962         * io/link.c (__link): Likewise.
8963         * io/linkat.c (linkat): Likewise.
8964         * io/lseek.c (__libc_lseek): Likewise.
8965         * io/mkdir.c (__mkdir): Likewise.
8966         * io/mkdirat.c (mkdirat): Likewise.
8967         * io/mkfifo.c (mkfifo): Likewise.
8968         * io/mkfifoat.c (mkfifoat): Likewise.
8969         * io/open.c (__libc_open): Likewise.
8970         * io/open64.c (__libc_open64): Likewise.
8971         * io/readlink.c (__readlink): Likewise.
8972         * io/readlinkat.c (readlinkat): Likewise.
8973         * io/rmdir.c (__rmdir): Likewise.
8974         * io/symlink.c (__symlink): Likewise.
8975         * io/symlinkat.c (symlinkat): Likewise.
8976         * io/ttyname.c (ttyname): Likewise.
8977         * io/ttyname_r.c (__ttyname_r): Likewise.
8978         * io/umask.c (__umask): Likewise.
8979         * io/unlink.c (__unlink): Likewise.
8980         * io/unlinkat.c (unlinkat): Likewise.
8981         * io/utime.c (utime): Likewise.
8982         * libio/clearerr.c (clearerr): Likewise.
8983         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8984         * libio/feof.c (_IO_feof): Likewise.
8985         * libio/feof_u.c (feof_unlocked): Likewise.
8986         * libio/ferror.c (_IO_ferror): Likewise.
8987         * libio/ferror_u.c (ferror_unlocked): Likewise.
8988         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8989         * libio/fileno.c (__fileno): Likewise.
8990         * libio/fputc.c (fputc): Likewise.
8991         * libio/fputc_u.c (fputc_unlocked): Likewise.
8992         * libio/fputwc.c (fputwc): Likewise.
8993         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8994         * libio/freopen.c (freopen): Likewise.
8995         * libio/freopen64.c (freopen64): Likewise.
8996         * libio/fseek.c (fseek): Likewise.
8997         * libio/fseeko.c (fseeko): Likewise.
8998         * libio/fseeko64.c (fseeko64): Likewise.
8999         * libio/ftello.c (__ftello): Likewise.
9000         * libio/ftello64.c (ftello64): Likewise.
9001         * libio/fwide.c (fwide): Likewise.
9002         * libio/genops.c (_IO_un_link): Likewise.
9003         (_IO_link_in): Likewise.
9004         (_IO_least_marker): Likewise.
9005         (_IO_switch_to_main_get_area): Likewise.
9006         (_IO_switch_to_backup_area): Likewise.
9007         (_IO_switch_to_get_mode): Likewise.
9008         (_IO_free_backup_area): Likewise.
9009         (_IO_switch_to_put_mode): Likewise.
9010         (__overflow): Likewise.
9011         (__underflow): Likewise.
9012         (__uflow): Likewise.
9013         (_IO_setb): Likewise.
9014         (_IO_doallocbuf): Likewise.
9015         (_IO_default_underflow): Likewise.
9016         (_IO_default_uflow): Likewise.
9017         (_IO_default_xsputn): Likewise.
9018         (_IO_sgetn): Likewise.
9019         (_IO_default_xsgetn): Likewise.
9020         (_IO_sync): Likewise.
9021         (_IO_default_setbuf): Likewise.
9022         (_IO_default_seekpos): Likewise.
9023         (_IO_default_doallocate): Likewise.
9024         (_IO_init): Likewise.
9025         (_IO_old_init): Likewise.
9026         (_IO_default_sync): Likewise.
9027         (_IO_default_finish): Likewise.
9028         (_IO_default_seekoff): Likewise.
9029         (_IO_sputbackc): Likewise.
9030         (_IO_sungetc): Likewise.
9031         (_IO_set_column): Likewise.
9032         (_IO_set_column): Likewise.
9033         (_IO_adjust_column): Likewise.
9034         (_IO_get_column): Likewise.
9035         (_IO_init_marker): Likewise.
9036         (_IO_remove_marker): Likewise.
9037         (_IO_marker_difference): Likewise.
9038         (_IO_marker_delta): Likewise.
9039         (_IO_seekmark): Likewise.
9040         (_IO_unsave_markers): Likewise.
9041         (_IO_nobackup_pbackfail): Likewise.
9042         (_IO_default_pbackfail): Likewise.
9043         (_IO_default_seek): Likewise.
9044         (_IO_default_stat): Likewise.
9045         (_IO_default_read): Likewise.
9046         (_IO_default_write): Likewise.
9047         (_IO_default_showmanyc): Likewise.
9048         (_IO_default_imbue): Likewise.
9049         (_IO_iter_next): Likewise.
9050         (_IO_iter_file): Likewise.
9051         * libio/getc.c (_IO_getc): Likewise.
9052         * libio/getwc.c (_IO_getwc): Likewise.
9053         * libio/iofclose.c (_IO_new_fclose): Likewise.
9054         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9055         * libio/iofflush.c (_IO_fflush): Likewise.
9056         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9057         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9058         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9059         * libio/iofgets.c (_IO_fgets): Likewise.
9060         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9061         * libio/iofgetws.c (fgetws): Likewise.
9062         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9063         * libio/iofopen64.c (_IO_fopen64): Likewise.
9064         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9065         (_IO_cookie_write): Likewise.
9066         (_IO_cookie_seek): Likewise.
9067         (_IO_cookie_close): Likewise.
9068         (_IO_cookie_seekoff): Likewise.
9069         (_IO_old_cookie_seek): Likewise.
9070         * libio/iofputs.c (_IO_fputs): Likewise.
9071         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9072         * libio/iofputws.c (fputws): Likewise.
9073         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9074         * libio/iofread.c (_IO_fread): Likewise.
9075         * libio/iofread_u.c (__fread_unlocked): Likewise.
9076         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9077         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9078         * libio/ioftell.c (_IO_ftell): Likewise.
9079         * libio/iofwrite.c (_IO_fwrite): Likewise.
9080         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9081         * libio/iogets.c (_IO_gets): Likewise.
9082         * libio/iopadn.c (_IO_padn): Likewise.
9083         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9084         (_IO_new_popen): Likewise.
9085         (_IO_new_proc_close): Likewise.
9086         * libio/ioputs.c (_IO_puts): Likewise.
9087         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9088         (_IO_seekoff): Likewise.
9089         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9090         (_IO_seekpos): Likewise.
9091         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9092         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9093         * libio/ioungetc.c (_IO_ungetc): Likewise.
9094         * libio/ioungetwc.c (ungetwc): Likewise.
9095         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9096         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9097         * libio/iowpadn.c (_IO_wpadn): Likewise.
9098         * libio/libc_fatal.c (__libc_fatal): Likewise.
9099         * libio/memstream.c (__open_memstream): Likewise.
9100         (_IO_mem_sync): Likewise.
9101         (_IO_mem_finish): Likewise.
9102         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9103         (_IO_old_file_close_it): Likewise.
9104         (_IO_old_file_finish): Likewise.
9105         (_IO_old_file_fopen): Likewise.
9106         (_IO_old_file_attach): Likewise.
9107         (_IO_old_file_setbuf): Likewise.
9108         (_IO_old_do_write): Likewise.
9109         (old_do_write): Likewise.
9110         (_IO_old_file_underflow): Likewise.
9111         (_IO_old_file_overflow): Likewise.
9112         (_IO_old_file_sync): Likewise.
9113         (_IO_old_file_seekoff): Likewise.
9114         (_IO_old_file_write): Likewise.
9115         (_IO_old_file_xsputn): Likewise.
9116         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9117         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9118         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9119         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9120         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9121         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9122         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9123         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9124         (_IO_old_popen): Likewise.
9125         (_IO_old_proc_close): Likewise.
9126         * libio/oldpclose.c (__old_pclose): Likewise.
9127         * libio/pclose.c (__new_pclose): Likewise.
9128         * libio/peekc.c (_IO_peekc_locked): Likewise.
9129         * libio/putc.c (_IO_putc): Likewise.
9130         * libio/putc_u.c (putc_unlocked): Likewise.
9131         * libio/putchar.c (putchar): Likewise.
9132         * libio/putchar_u.c (putchar_unlocked): Likewise.
9133         * libio/putwc.c (putwc): Likewise.
9134         * libio/putwc_u.c (putwc_unlocked): Likewise.
9135         * libio/putwchar.c (putwchar): Likewise.
9136         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9137         * libio/rewind.c (rewind): Likewise.
9138         * libio/setbuf.c (setbuf): Likewise.
9139         * libio/setlinebuf.c (setlinebuf): Likewise.
9140         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9141         * libio/vscanf.c (_IO_vscanf): Likewise.
9142         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9143         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9144         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9145         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9146         (_IO_switch_to_main_wget_area): Likewise.
9147         (_IO_switch_to_wbackup_area): Likewise.
9148         (_IO_wsetb): Likewise.
9149         (_IO_wdefault_pbackfail): Likewise.
9150         (_IO_wdefault_finish): Likewise.
9151         (_IO_wdefault_uflow): Likewise.
9152         (__woverflow): Likewise.
9153         (__wuflow): Likewise.
9154         (__wunderflow): Likewise.
9155         (_IO_wdefault_xsputn): Likewise.
9156         (_IO_wdefault_xsgetn): Likewise.
9157         (_IO_wdoallocbuf): Likewise.
9158         (_IO_wdefault_doallocate): Likewise.
9159         (_IO_switch_to_wget_mode): Likewise.
9160         (_IO_free_wbackup_area): Likewise.
9161         (_IO_switch_to_wput_mode): Likewise.
9162         (_IO_sputbackwc): Likewise.
9163         (_IO_sungetwc): Likewise.
9164         (_IO_adjust_wcolumn): Likewise.
9165         (_IO_init_wmarker): Likewise.
9166         (_IO_wmarker_delta): Likewise.
9167         (_IO_seekwmark): Likewise.
9168         (_IO_unsave_wmarkers): Likewise.
9169         * libio/wmemstream.c (open_wmemstream): Likewise.
9170         (_IO_wmem_sync): Likewise.
9171         (_IO_wmem_finish): Likewise.
9172         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9173         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9174         * locale/programs/simple-hash.c (init_hash): Likewise.
9175         (delete_hash): Likewise.
9176         (insert_entry): Likewise.
9177         (set_entry): Likewise.
9178         (next_prime): Likewise.
9179         (is_prime): Likewise.
9180         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9181         (xmalloc): Likewise.
9182         (xrealloc): Likewise.
9183         * locale/programs/xstrdup.c (xstrdup): Likewise.
9184         * localedata/collate-test.c (xstrcoll): Likewise.
9185         * localedata/xfrm-test.c (xstrcmp): Likewise.
9186         * login/getlogin_r.c (__getlogin_r): Likewise.
9187         * login/getpt.c (__posix_openpt): Likewise.
9188         * login/login_tty.c (login_tty): Likewise.
9189         * login/setlogin.c (setlogin): Likewise.
9190         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9191         (mach_msg_destroy_port): Likewise.
9192         (mach_msg_destroy_memory): Likewise.
9193         * malloc/mcheck.c (flood): Likewise.
9194         * misc/acct.c (acct): Likewise.
9195         * misc/brk.c (__brk): Likewise.
9196         * misc/chflags.c (chflags): Likewise.
9197         * misc/chroot.c (chroot): Likewise.
9198         * misc/fchflags.c (fchflags): Likewise.
9199         * misc/fstab.c (getfsspec): Likewise.
9200         (getfsfile): Likewise.
9201         * misc/fsync.c (fsync): Likewise.
9202         * misc/ftruncate.c (__ftruncate): Likewise.
9203         * misc/ftruncate64.c (__ftruncate64): Likewise.
9204         * misc/getdomain.c (getdomainname): Likewise.
9205         (getdomainname): Likewise.
9206         * misc/gethostname.c (__gethostname): Likewise.
9207         * misc/getpass.c (getpass): Likewise.
9208         * misc/getttyent.c (skip): Likewise.
9209         (value): Likewise.
9210         * misc/gtty.c (gtty): Likewise.
9211         * misc/hsearch.c (hsearch): Likewise.
9212         (hcreate): Likewise.
9213         * misc/hsearch_r.c (__hcreate_r): Likewise.
9214         (__hdestroy_r): Likewise.
9215         * misc/ioctl.c (__ioctl): Likewise.
9216         * misc/mkdtemp.c (mkdtemp): Likewise.
9217         * misc/mkostemp.c (mkostemp): Likewise.
9218         * misc/mkostemp64.c (mkostemp64): Likewise.
9219         * misc/mkostemps.c (mkostemps): Likewise.
9220         * misc/mkostemps64.c (mkostemps64): Likewise.
9221         * misc/mkstemp.c (mkstemp): Likewise.
9222         * misc/mkstemp64.c (mkstemp64): Likewise.
9223         * misc/mkstemps.c (mkstemps): Likewise.
9224         * misc/mkstemps64.c (mkstemps64): Likewise.
9225         * misc/mktemp.c (__mktemp): Likewise.
9226         * misc/preadv.c (preadv): Likewise.
9227         * misc/preadv64.c (preadv64): Likewise.
9228         * misc/pwritev.c (pwritev): Likewise.
9229         * misc/pwritev64.c (pwritev64): Likewise.
9230         * misc/readv.c (__readv): Likewise.
9231         * misc/revoke.c (revoke): Likewise.
9232         * misc/setdomain.c (setdomainname): Likewise.
9233         * misc/setegid.c (setegid): Likewise.
9234         * misc/seteuid.c (seteuid): Likewise.
9235         * misc/sethostid.c (sethostid): Likewise.
9236         * misc/sethostname.c (sethostname): Likewise.
9237         * misc/setregid.c (__setregid): Likewise.
9238         * misc/setreuid.c (__setreuid): Likewise.
9239         * misc/sstk.c (sstk): Likewise.
9240         * misc/stty.c (stty): Likewise.
9241         * misc/syscall.c (syscall): Likewise.
9242         * misc/syslog.c (setlogmask): Likewise.
9243         * misc/truncate.c (__truncate): Likewise.
9244         * misc/truncate64.c (truncate64): Likewise.
9245         * misc/ualarm.c (ualarm): Likewise.
9246         * misc/usleep.c (usleep): Likewise.
9247         * misc/ustat.c (ustat): Likewise.
9248         * misc/writev.c (__writev): Likewise.
9249         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9250         * nptl/old_pthread_cond_broadcast.c
9251         (__pthread_cond_broadcast_2_0): Likewise.
9252         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9253         Likewise.
9254         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9255         Likewise.
9256         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9257         Likewise.
9258         * nptl/pt-raise.c (raise): Likewise.
9259         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9260         Likewise.
9261         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9262         * nptl/pthread_barrierattr_destroy.c
9263         (pthread_barrierattr_destroy): Likewise.
9264         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9265         Likewise.
9266         * nptl/pthread_barrierattr_setpshared.c
9267         (pthread_barrierattr_setpshared): Likewise.
9268         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9269         Likewise.
9270         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9271         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9272         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9273         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9274         Likewise.
9275         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9276         Likewise.
9277         * nptl/pthread_condattr_getpshared.c
9278         (pthread_condattr_getpshared): Likewise.
9279         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9280         Likewise.
9281         * nptl/pthread_condattr_setpshared.c
9282         (pthread_condattr_setpshared): Likewise.
9283         * nptl/pthread_detach.c (pthread_detach): Likewise.
9284         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9285         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9286         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9287         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9288         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9289         Likewise.
9290         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9291         Likewise.
9292         * nptl/pthread_mutex_getprioceiling.c
9293         (pthread_mutex_getprioceiling): Likewise.
9294         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9295         Likewise.
9296         * nptl/pthread_mutexattr_getprotocol.c
9297         (pthread_mutexattr_getprotocol): Likewise.
9298         * nptl/pthread_mutexattr_getpshared.c
9299         (pthread_mutexattr_getpshared): Likewise.
9300         * nptl/pthread_mutexattr_getrobust.c
9301         (pthread_mutexattr_getrobust): Likewise.
9302         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9303         Likewise.
9304         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9305         Likewise.
9306         * nptl/pthread_mutexattr_setprioceiling.c
9307         (pthread_mutexattr_setprioceiling): Likewise.
9308         * nptl/pthread_mutexattr_setprotocol.c
9309         (pthread_mutexattr_setprotocol): Likewise.
9310         * nptl/pthread_mutexattr_setpshared.c
9311         (pthread_mutexattr_setpshared): Likewise.
9312         * nptl/pthread_mutexattr_setrobust.c
9313         (pthread_mutexattr_setrobust): Likewise.
9314         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9315         Likewise.
9316         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9317         Likewise.
9318         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9319         Likewise.
9320         * nptl/pthread_rwlockattr_getkind_np.c
9321         (pthread_rwlockattr_getkind_np): Likewise.
9322         * nptl/pthread_rwlockattr_getpshared.c
9323         (pthread_rwlockattr_getpshared): Likewise.
9324         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9325         Likewise.
9326         * nptl/pthread_rwlockattr_setkind_np.c
9327         (pthread_rwlockattr_setkind_np): Likewise.
9328         * nptl/pthread_rwlockattr_setpshared.c
9329         (pthread_rwlockattr_setpshared): Likewise.
9330         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9331         Likewise.
9332         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9333         Likewise.
9334         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9335         Likewise.
9336         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9337         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9338         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9339         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9340         * nptl/sem_close.c (sem_close): Likewise.
9341         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9342         * nptl/sem_init.c (__old_sem_init): Likewise.
9343         * nptl/sigaction.c (__sigaction): Likewise.
9344         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9345         * posix/_exit.c (_exit): Likewise.
9346         * posix/alarm.c (alarm): Likewise.
9347         * posix/confstr.c (confstr): Likewise.
9348         * posix/fpathconf.c (__fpathconf): Likewise.
9349         * posix/getgroups.c (__getgroups): Likewise.
9350         * posix/getpgid.c (__getpgid): Likewise.
9351         * posix/group_member.c (__group_member): Likewise.
9352         * posix/pathconf.c (__pathconf): Likewise.
9353         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9354         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9355         * posix/setgid.c (__setgid): Likewise.
9356         * posix/setpgid.c (__setpgid): Likewise.
9357         * posix/setuid.c (__setuid): Likewise.
9358         * posix/sleep.c (__sleep): Likewise.
9359         * posix/sysconf.c (__sysconf): Likewise.
9360         * posix/times.c (__times): Likewise.
9361         * posix/uname.c (__uname): Likewise.
9362         * posix/waitid.c (__waitid): Likewise.
9363         * pwd/getpw.c (__getpw): Likewise.
9364         * resolv/base64.c (b64_pton): Likewise.
9365         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9366         * resolv/gethnamaddr.c (Dprintf): Likewise.
9367         (gethostbyname): Likewise.
9368         (gethostbyname2): Likewise.
9369         (gethostbyaddr): Likewise.
9370         (_sethtent): Likewise.
9371         (_gethtbyname): Likewise.
9372         (_gethtbyname2): Likewise.
9373         (_gethtbyaddr): Likewise.
9374         (map_v4v6_address): Likewise.
9375         (map_v4v6_hostent): Likewise.
9376         (addrsort): Likewise.
9377         (ht_sethostent): Likewise.
9378         (ht_gethostbyname): Likewise.
9379         (ht_gethostbyaddr): Likewise.
9380         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9381         (inet_net_ntop_ipv4): Likewise.
9382         * resolv/inet_neta.c (inet_neta): Likewise.
9383         * resolv/inet_ntop.c (inet_ntop): Likewise.
9384         (inet_ntop4): Likewise.
9385         (inet_ntop6): Likewise.
9386         * resolv/inet_pton.c (__inet_pton): Likewise.
9387         (inet_pton4): Likewise.
9388         (inet_pton6): Likewise.
9389         * resolv/res_debug.c (loc_aton): Likewise.
9390         (loc_ntoa): Likewise.
9391         * resource/getpriority.c (__getpriority): Likewise.
9392         * resource/getrusage.c (__getrusage): Likewise.
9393         * resource/nice.c (nice): Likewise.
9394         * resource/setpriority.c (__setpriority): Likewise.
9395         * resource/setrlimit64.c (setrlimit64): Likewise.
9396         * resource/vlimit.c (vlimit): Likewise.
9397         * resource/vtimes.c (vtimes): Likewise.
9398         * rt/aio_error.c (aio_error): Likewise.
9399         * rt/aio_return.c (aio_return): Likewise.
9400         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9401         * signal/kill.c (__kill): Likewise.
9402         * signal/killpg.c (killpg): Likewise.
9403         * signal/raise.c (raise): Likewise.
9404         * signal/sigaction.c (__sigaction): Likewise.
9405         * signal/sigaddset.c (sigaddset): Likewise.
9406         * signal/sigaltstack.c (sigaltstack): Likewise.
9407         * signal/sigandset.c (sigandset): Likewise.
9408         * signal/sigblock.c (__sigblock): Likewise.
9409         * signal/sigdelset.c (sigdelset): Likewise.
9410         * signal/sigempty.c (sigemptyset): Likewise.
9411         * signal/sigfillset.c (sigfillset): Likewise.
9412         * signal/sighold.c (sighold): Likewise.
9413         * signal/sigignore.c (sigignore): Likewise.
9414         * signal/sigintr.c (siginterrupt): Likewise.
9415         * signal/sigisempty.c (sigisemptyset): Likewise.
9416         * signal/sigismem.c (sigismember): Likewise.
9417         * signal/signal.c (signal): Likewise.
9418         * signal/sigorset.c (sigorset): Likewise.
9419         * signal/sigpause.c (__sigpause): Likewise.
9420         * signal/sigpending.c (sigpending): Likewise.
9421         * signal/sigprocmask.c (__sigprocmask): Likewise.
9422         * signal/sigrelse.c (sigrelse): Likewise.
9423         * signal/sigreturn.c (__sigreturn): Likewise.
9424         * signal/sigset.c (sigset): Likewise.
9425         * signal/sigsetmask.c (__sigsetmask): Likewise.
9426         * signal/sigstack.c (sigstack): Likewise.
9427         * signal/sigsuspend.c (__sigsuspend): Likewise.
9428         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9429         * signal/sysv_signal.c (__sysv_signal): Likewise.
9430         * socket/accept.c (accept): Likewise.
9431         * socket/accept4.c (__libc_accept4): Likewise.
9432         * socket/bind.c (__bind): Likewise.
9433         * socket/connect.c (__connect): Likewise.
9434         * socket/getpeername.c (getpeername): Likewise.
9435         * socket/getsockname.c (__getsockname): Likewise.
9436         * socket/getsockopt.c (getsockopt): Likewise.
9437         * socket/listen.c (__listen): Likewise.
9438         * socket/recv.c (__recv): Likewise.
9439         * socket/recvmsg.c (__recvmsg): Likewise.
9440         * socket/send.c (__send): Likewise.
9441         * socket/sendmsg.c (__sendmsg): Likewise.
9442         * socket/shutdown.c (shutdown): Likewise.
9443         * socket/sockatmark.c (sockatmark): Likewise.
9444         * socket/socket.c (__socket): Likewise.
9445         * stdio-common/ctermid.c (ctermid): Likewise.
9446         * stdio-common/cuserid.c (cuserid): Likewise.
9447         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9448         * stdio-common/remove.c (remove): Likewise.
9449         * stdio-common/rename.c (rename): Likewise.
9450         * stdio-common/renameat.c (renameat): Likewise.
9451         * stdio-common/tempname.c (__gen_tempname): Likewise.
9452         * stdio-common/xbug.c (InitBuffer): Likewise.
9453         (AppendToBuffer): Likewise.
9454         (ReadFile): Likewise.
9455         * stdlib/a64l.c (a64l): Likewise.
9456         * stdlib/drand48_r.c (drand48_r): Likewise.
9457         * stdlib/getcontext.c (getcontext): Likewise.
9458         * stdlib/getenv.c (getenv): Likewise.
9459         * stdlib/l64a.c (l64a): Likewise.
9460         * stdlib/llabs.c (llabs): Likewise.
9461         * stdlib/lldiv.c (lldiv): Likewise.
9462         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9463         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9464         * stdlib/putenv.c (putenv): Likewise.
9465         * stdlib/random.c (__srandom): Likewise.
9466         (__initstate): Likewise.
9467         (__setstate): Likewise.
9468         * stdlib/random_r.c (__srandom_r): Likewise.
9469         (__setstate_r): Likewise.
9470         (__random_r): Likewise.
9471         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9472         * stdlib/setcontext.c (setcontext): Likewise.
9473         * stdlib/setenv.c (setenv): Likewise.
9474         (unsetenv): Likewise.
9475         * stdlib/srand48.c (srand48): Likewise.
9476         * stdlib/srand48_r.c (__srand48_r): Likewise.
9477         * stdlib/swapcontext.c (swapcontext): Likewise.
9478         * stdlib/system.c (__libc_system): Likewise.
9479         * stdlib/tst-strtod.c (expand): Likewise.
9480         * stdlib/tst-strtol.c (expand): Likewise.
9481         * stdlib/tst-strtoll.c (expand): Likewise.
9482         * streams/fattach.c (fattach): Likewise.
9483         * streams/fdetach.c (fdetach): Likewise.
9484         * streams/getmsg.c (getmsg): Likewise.
9485         * streams/isastream.c (isastream): Likewise.
9486         * string/ffs.c (__ffs): Likewise.
9487         * string/ffsll.c (ffsll): Likewise.
9488         * string/memcmp.c (memcmp_common_alignment): Likewise.
9489         (memcmp_not_common_alignment): Likewise.
9490         (MEMCMP): Likewise.
9491         * string/memcpy.c (memcpy): Likewise.
9492         * string/memmove.c (MEMMOVE): Likewise.
9493         * string/memset.c (memset): Likewise.
9494         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9495         * string/strchrnul.c (STRCHRNUL): Likewise.
9496         * string/strerror.c (strerror): Likewise.
9497         * string/strndup.c (__strndup): Likewise.
9498         * string/strverscmp.c (__strverscmp): Likewise.
9499         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9500         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9501         (clnttcp_freeres): Likewise.
9502         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9503         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9504         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9505         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9506         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9507         (xdr_callhdr): Likewise.
9508         * sunrpc/rpcinfo.c (udpping): Likewise.
9509         (tcpping): Likewise.
9510         (pstatus): Likewise.
9511         (pmapdump): Likewise.
9512         (brdcst): Likewise.
9513         (deletereg): Likewise.
9514         (getprognum): Likewise.
9515         (getvers): Likewise.
9516         (get_inet_address): Likewise.
9517         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9518         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9519         (svcudp_stat): Likewise.
9520         (svcudp_recv): Likewise.
9521         (svcudp_reply): Likewise.
9522         (svcudp_getargs): Likewise.
9523         (svcudp_freeargs): Likewise.
9524         (svcudp_destroy): Likewise.
9525         * sunrpc/xdr.c (xdr_bytes): Likewise.
9526         (xdr_netobj): Likewise.
9527         (xdr_string): Likewise.
9528         (xdr_wrapstring): Likewise.
9529         * sunrpc/xdr_float.c (xdr_float): Likewise.
9530         (xdr_double): Likewise.
9531         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9532         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9533         * sysvipc/ftok.c (ftok): Likewise.
9534         * sysvipc/msgctl.c (msgctl): Likewise.
9535         * sysvipc/msgget.c (msgget): Likewise.
9536         * sysvipc/msgrcv.c (msgrcv): Likewise.
9537         * sysvipc/msgsnd.c (msgsnd): Likewise.
9538         * sysvipc/semget.c (semget): Likewise.
9539         * sysvipc/semop.c (semop): Likewise.
9540         * sysvipc/shmat.c (shmat): Likewise.
9541         * sysvipc/shmctl.c (shmctl): Likewise.
9542         * sysvipc/shmdt.c (shmdt): Likewise.
9543         * sysvipc/shmget.c (shmget): Likewise.
9544         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9545         * termios/speed.c (cfgetospeed): Likewise.
9546         (cfgetispeed): Likewise.
9547         (cfsetospeed): Likewise.
9548         (cfsetispeed): Likewise.
9549         * termios/tcflow.c (tcflow): Likewise.
9550         * termios/tcflush.c (tcflush): Likewise.
9551         * termios/tcgetattr.c (__tcgetattr): Likewise.
9552         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9553         * termios/tcgetsid.c (tcgetsid): Likewise.
9554         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9555         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9556         * time/adjtime.c (__adjtime): Likewise.
9557         * time/dysize.c (dysize): Likewise.
9558         * time/ftime.c (ftime): Likewise.
9559         * time/getitimer.c (__getitimer): Likewise.
9560         * time/gettimeofday.c (__gettimeofday): Likewise.
9561         * time/gmtime.c (__gmtime_r): Likewise.
9562         (gmtime): Likewise.
9563         * time/localtime.c (__localtime_r): Likewise.
9564         (localtime): Likewise.
9565         * time/offtime.c (__offtime): Likewise.
9566         * time/settimeofday.c (__settimeofday): Likewise.
9567         * time/stime.c (stime): Likewise.
9568         * time/strftime_l.c (tm_diff): Likewise.
9569         (iso_week_days): Likewise.
9570         * time/strptime.c (strptime): Likewise.
9571         * time/time.c (time): Likewise.
9572         * time/timespec_get.c (timespec_get): Likewise.
9573         * time/tzset.c (tzset_internal): Likewise.
9574         (compute_change): Likewise.
9575         (__tz_compute): Likewise.
9576         * wcsmbs/btowc.c (__btowc): Likewise.
9577         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9578         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9579         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9580         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9581         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9582         * wcsmbs/wcscat.c (__wcscat): Likewise.
9583         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9584         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9585         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9586         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9587         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9588         * wcsmbs/wcslen.c (__wcslen): Likewise.
9589         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9590         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9591         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9592         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9593         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9594         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9595         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9596         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9597         * wcsmbs/wcstok.c (wcstok): Likewise.
9598         * wcsmbs/wctob.c (wctob): Likewise.
9599         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9600         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9601         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9602         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9603         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9604         * wcsmbs/wmemset.c (__wmemset): Likewise.
9605         * wctype/wcfuncs.c (__towlower): Likewise.
9606         (__towupper): Likewise.
9607
9608         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9609         (lll_unlock_elision): Add adapt_count parameter.
9610
9611 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9612
9613         * sysdeps/nptl/configure.ac: Do not give errors based on the
9614         results of top-level configure tests.
9615         * sysdeps/nptl/configure: Regenerated.
9616
9617         * configure.ac (libc_cv_Bgroup): Remove configure test.
9618         * configure: Regenerated.
9619         * config.make.in (have-Bgroup): Remove variable.
9620
9621         * configure.ac (sizeof_long_double): Remove configure test.
9622         * configure: Regenerated.
9623         * config.make.in (sizeof-long-double): Remove variable.
9624
9625         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9626         * configure: Regenerated.
9627         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9628         variable.
9629         (exceptions): Likewise.
9630         * sysdeps/arm/configure: Regenerated.
9631         * config.make.in (exceptions): Remove variable.
9632         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9633         $(exceptions).
9634         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9635         (CFLAGS-vdprintf_chk.c): Likewise.
9636         (CFLAGS-printf_chk.c): Likewise.
9637         (CFLAGS-fprintf_chk.c): Likewise.
9638         (CFLAGS-vprintf_chk.c): Likewise.
9639         (CFLAGS-vfprintf_chk.c): Likewise.
9640         (CFLAGS-gets_chk.c): Likewise.
9641         (CFLAGS-fgets_chk.c): Likewise.
9642         (CFLAGS-fgets_u_chk.c): Likewise.
9643         (CFLAGS-fread_chk.c): Likewise.
9644         (CFLAGS-fread_u_chk.c): Likewise.
9645         (CFLAGS-wprintf_chk.c): Likewise.
9646         (CFLAGS-fwprintf_chk.c): Likewise.
9647         (CFLAGS-vwprintf_chk.c): Likewise.
9648         (CFLAGS-vfwprintf_chk.c): Likewise.
9649         (CFLAGS-fgetws_chk.c): Likewise.
9650         (CFLAGS-fgetws_u_chk.c): Likewise.
9651         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9652         (CFLAGS-fputc.c): Likewise.
9653         (CFLAGS-fputwc.c): Likewise.
9654         (CFLAGS-freopen64.c): Likewise.
9655         (CFLAGS-freopen.c): Likewise.
9656         (CFLAGS-fseek.c): Likewise.
9657         (CFLAGS-fseeko64.c): Likewise.
9658         (CFLAGS-fseeko.c): Likewise.
9659         (CFLAGS-ftello64.c): Likewise.
9660         (CFLAGS-ftello.c): Likewise.
9661         (CFLAGS-fwide.c): Likewise.
9662         (CFLAGS-genops.c): Likewise.
9663         (CFLAGS-getc.c): Likewise.
9664         (CFLAGS-getchar.c): Likewise.
9665         (CFLAGS-getwc.c): Likewise.
9666         (CFLAGS-getwchar.c): Likewise.
9667         (CFLAGS-iofclose.c): Likewise.
9668         (CFLAGS-iofflush.c): Likewise.
9669         (CFLAGS-iofgetpos64.c): Likewise.
9670         (CFLAGS-iofgetpos.c): Likewise.
9671         (CFLAGS-iofgets.c): Likewise.
9672         (CFLAGS-iofgetws.c): Likewise.
9673         (CFLAGS-iofputs.c): Likewise.
9674         (CFLAGS-iofputws.c): Likewise.
9675         (CFLAGS-iofread.c): Likewise.
9676         (CFLAGS-iofsetpos64.c): Likewise.
9677         (CFLAGS-iofsetpos.c): Likewise.
9678         (CFLAGS-ioftell.c): Likewise.
9679         (CFLAGS-iofwrite.c): Likewise.
9680         (CFLAGS-iogetdelim.c): Likewise.
9681         (CFLAGS-iogetline.c): Likewise.
9682         (CFLAGS-iogets.c): Likewise.
9683         (CFLAGS-iogetwline.c): Likewise.
9684         (CFLAGS-ioputs.c): Likewise.
9685         (CFLAGS-ioseekoff.c): Likewise.
9686         (CFLAGS-ioseekpos.c): Likewise.
9687         (CFLAGS-iosetbuffer.c): Likewise.
9688         (CFLAGS-iosetvbuf.c): Likewise.
9689         (CFLAGS-ioungetc.c): Likewise.
9690         (CFLAGS-ioungetwc.c): Likewise.
9691         (CFLAGS-oldfileops.c): Likewise.
9692         (CFLAGS-oldiofclose.c): Likewise.
9693         (CFLAGS-oldiofgetpos64.c): Likewise.
9694         (CFLAGS-oldiofgetpos.c): Likewise.
9695         (CFLAGS-oldiofsetpos64.c): Likewise.
9696         (CFLAGS-oldiofsetpos.c): Likewise.
9697         (CFLAGS-peekc.c): Likewise.
9698         (CFLAGS-putc.c): Likewise.
9699         (CFLAGS-putchar.c): Likewise.
9700         (CFLAGS-putwc.c): Likewise.
9701         (CFLAGS-putwchar.c): Likewise.
9702         (CFLAGS-rewind.c): Likewise.
9703         (CFLAGS-wfileops.c): Likewise.
9704         (CFLAGS-wgenops.c): Likewise.
9705         (CFLAGS-oldiofopen.c): Likewise.
9706         (CFLAGS-iofopen.c): Likewise.
9707         (CFLAGS-iofopen64.c): Likewise.
9708         (CFLAGS-oldtmpfile.c): Likewise.
9709         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9710         (CFLAGS-fprintf.c): Likewise.
9711         (CFLAGS-printf.c): Likewise.
9712         (CFLAGS-vfwprintf.c): Likewise.
9713         (CFLAGS-vfscanf.c): Likewise.
9714         (CFLAGS-vfwscanf.c): Likewise.
9715         (CFLAGS-fscanf.c): Likewise.
9716         (CFLAGS-scanf.c): Likewise.
9717         (CFLAGS-isoc99_vfscanf.c): Likewise.
9718         (CFLAGS-isoc99_vscanf.c): Likewise.
9719         (CFLAGS-isoc99_fscanf.c): Likewise.
9720         (CFLAGS-isoc99_scanf.c): Likewise.
9721         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9722         (CFLAGS-isoc99_fwscanf.c): Likewise.
9723         (CFLAGS-isoc99_vwscanf.c): Likewise.
9724         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9725
9726         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9727         after mkstemp64.
9728         * login/tst-utmp.c (do_prepare): Likewise.
9729         * rt/tst-aio.c (do_prepare): Likewise.
9730         * rt/tst-aio64.c (do_prepare): Likewise.
9731
9732 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9733
9734         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9735         (__lll_lock_elision): Remove adapt_count decrement...
9736         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9737         (__lll_trylock_elision): Likewise.
9738         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9739         (__lll_unlock_elision): ... to here. And utilize
9740         new adapt_count parameter.
9741         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9742         (__lll_unlock_elision): Update to include adapt_count
9743         parameter.
9744         (lll_unlock_elision): Pass pointer to adapt_count
9745         variable.
9746
9747 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9748
9749         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9750         Add elision adapt_count parameter to list of arguments.
9751         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9752         (lll_unlock_elision): Update with new parameter list
9753         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9754         (lll_unlock_elision): Likewise.
9755         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9756         (lll_unlock_elision): Likewise.
9757
9758 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9759
9760         [BZ #19122]
9761         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9762         attribute_hidden.
9763
9764         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9765         attribute_hidden.
9766         [IS_IN (rtld)] (__strdup): Likewise.
9767         [IS_IN (rtld)] (__strerror_r): Likewise.
9768         [IS_IN (rtld)] (__strsep_g): Likewise.
9769         [IS_IN (rtld)] (memchr): Likewise.
9770         [IS_IN (rtld)] (memcmp): Likewise.
9771         [IS_IN (rtld)] (memcpy): Likewise.
9772         [IS_IN (rtld)] (memmove): Likewise.
9773         [IS_IN (rtld)] (memset): Likewise.
9774         [IS_IN (rtld)] (rawmemchr): Likewise.
9775         [IS_IN (rtld)] (stpcpy): Likewise.
9776         [IS_IN (rtld)] (strchr): Likewise.
9777         [IS_IN (rtld)] (strcmp): Likewise.
9778         [IS_IN (rtld)] (strlen): Likewise.
9779         [IS_IN (rtld)] (strnlen): Likewise.
9780         [IS_IN (rtld)] (strsep): Likewise.
9781
9782         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9783         attribute_hidden.
9784         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9785
9786         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9787         attribute_hidden.
9788         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9789
9790         * include/setjmp.h (__longjmp): Add attribute_hidden.
9791         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9792
9793         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9794         Add attribute_hidden.
9795
9796         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9797         [IS_IN (rtld)] (__open): Likewise.
9798         [IS_IN (rtld)] (__fcntl): Likewise.
9799
9800         * include/dirent.h (__opendirat): Add attribute_hidden.
9801         (__getdents): Likewise.
9802         (__getdents64): Likewise.
9803         (__alloc_dir): Likewise.
9804         [IS_IN (rtld)] (__closedir): Likewise.
9805         [IS_IN (rtld)] (__fdopendir): Likewise.
9806         [IS_IN (rtld)] (__readdir): Likewise.
9807         [IS_IN (rtld)] (__readdir64): Likewise.
9808         [IS_IN (rtld)] (__rewinddir): Likewise.
9809
9810         * include/dlfcn.h (_dl_catch_error): Moved to ...
9811         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9812         attribute_hidden.
9813
9814         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9815         (_itoa_word): Likewise.
9816
9817         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9818         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9819         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9820         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9821         (_dl_higher_prime_number): Likewise.
9822         (_dl_debug_printf_c): Likewise.
9823         (_dl_signal_cerror): Likewise.
9824         (_dl_receive_error): Likewise.
9825         (_dl_reloc_bad_type): Likewise.
9826         (_dl_resolve_conflicts): Likewise.
9827         (_dl_check_all_versions): Likewise.
9828         (_dl_check_map_versions): Likewise.
9829         (_dl_sort_fini): Likewise.
9830         (_dl_debug_initialize): Likewise.
9831         (_dl_init_paths): Likewise.
9832         (_dl_show_auxv): Likewise.
9833         (_dl_next_ld_env_entry): Likewise.
9834         (_dl_important_hwcaps): Likewise.
9835         (_dl_load_cache_lookup): Likewise.
9836         (_dl_update_slotinfo): Likewise.
9837         (_dl_show_scope): Likewise.
9838
9839         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9840         attribute_hidden.
9841         (_wordcopy_fwd_dest_aligned): Likewise.
9842         (_wordcopy_bwd_aligned): Likewise.
9843         (_wordcopy_bwd_dest_aligned): Likewise.
9844
9845         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9846         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9847         Likewise.
9848         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9849         Likewise.
9850         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9851
9852 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9853
9854         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9855         GCC 5 requirement.
9856
9857 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9858
9859         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9860         test.
9861         * sysdeps/i386/configure: Regenerated.
9862         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9863         code unconditional.
9864
9865         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9866         test.
9867         (libc_cv_asm_popsection_directive): Likewise.
9868         * configure: Regenerated.
9869         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9870         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9871         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9872         (__make_section_unallocated): Make definition unconditional.
9873         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9874         Remove conditional definition.
9875         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9876         (__make_section_unallocated): Likewise.
9877
9878         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9879         * configure: Regenerated.
9880         * config.make.in (static-libgcc): Remove variable.
9881         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9882         $(static-libgcc).
9883         (build-module-helper): Likewise.
9884
9885         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9886         * configure: Regenerated.
9887
9888 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9889
9890         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9891         (struct char_buffer): New type.
9892         (char_buffer_start, char_buffer_size, char_buffer_error)
9893         (char_buffer_rewind, char_buffer_add): New functions.
9894         (ADDW): Remove macro, replaced by the char_buffer_add function.
9895         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9896         of extend_alloca.  Make control flow more explicit.
9897
9898 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9899
9900         [BZ #19137]
9901         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9902         Add -fomit-frame-pointer.
9903         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9904
9905 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9906
9907         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9908         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9909         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9910         only if !__GNUC_PREREQ (5,0).
9911         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9912         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9913         (INTERNAL_SYSCALL_NCS): Likewise.
9914         (LOADREGS_0): New macro for GCC 5.
9915         (ASMARGS_0): Likewise.
9916         (LOADREGS_1): Likewise.
9917         (ASMARGS_1): Likewise.
9918         (LOADREGS_2): Likewise.
9919         (ASMARGS_2): Likewise.
9920         (LOADREGS_3): Likewise.
9921         (ASMARGS_3): Likewise.
9922         (LOADREGS_4): Likewise.
9923         (ASMARGS_4): Likewise.
9924         (LOADREGS_5): Likewise.
9925         (ASMARGS_5): Likewise.
9926         (LOADREGS_6): Likewise.
9927         (ASMARGS_6): Likewise.
9928
9929 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9930
9931         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9932         -fomit-frame-pointer.
9933         (CFLAGS-mmap64.c): Likewise.
9934         (CFLAGS-semtimedop.c): Likewise.
9935         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9936         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9937         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9938         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9939
9940 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9941
9942         [BZ #18928]
9943         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9944         _dl_pointer_guard member.
9945         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9946         initializer.
9947         (security_init): Always set up pointer guard.
9948         (process_envvars): Do not process LD_POINTER_GUARD.
9949
9950 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9951
9952         [BZ #19134]
9953         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9954         (.LC2): Likewise.
9955         (.LC3): Likewise.
9956         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9957
9958 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9959
9960         [BZ #19129]
9961         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9962         r0 and r1.
9963
9964 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9965
9966         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9967
9968 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9969
9970         * include/stap-probe.h: Fix macro definition formatting.
9971
9972 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9973
9974         [BZ #19074]
9975         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9976         load and store num_ifs.
9977
9978 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9979
9980         [BZ #18822]
9981         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9982         (__sched_getaffinity_new): Add libc_hidden_proto and
9983         libc_hidden_def.
9984
9985 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9986
9987         [BZ #19007]
9988         * scripts/localplt.awk: Also allow GOT references.
9989         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9990         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9991         with "+ REL R_386_GLOB_DAT".
9992         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9993         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9994
9995 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9996
9997         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9998         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9999         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10000         Likewise.
10001         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10002         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10003         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10004         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10005         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10006         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10007         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10008         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10009         Likewise.
10010         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10011
10012 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10013
10014         [BZ #19125]
10015         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10016         <math_private.h> and <stdint.h>.
10017         (__llround): Avoid conversions to and from long long int, and
10018         subtractions, where those might raise spurious exceptions.
10019         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10020         <math_private.h> and <stdint.h>.
10021         (__llroundf): Avoid conversions to and from long long int, and
10022         subtractions, where those might raise spurious exceptions.
10023
10024 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10025
10026         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10027         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10028         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10029         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10030         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10031         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10032         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10033         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10034         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10035         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10036         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10037         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10038         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10039         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10040         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10041         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10042         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10043         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10044         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10045         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10046         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10047         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10048         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10049         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10050         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10051         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10052         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10053         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10054         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10055         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10056         (__xstat64_conv): Likewise.
10057         (__xstat32_conv): Likewise.
10058
10059 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10060
10061         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10062         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10063         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10064         <sysdeps/unix/sysv/linux/sysdep.h>.
10065         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10066         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10067         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10068         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10069         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10070         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10071         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10072         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10073         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10076         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10077         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10078         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10079         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10080         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10081         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10082         (sysdep-dl-routines): Add sysdep.
10083         [$(subdir) == nptl] (libpthread-routines): Likewise.
10084         [$(subdir) == rt] (librt-routines): Likewise.
10085         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10086         PIC when branching to SYSCALL_ERROR_LABEL.
10087         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10088         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10089         <sysdeps/unix/sysv/linux/sysdep.h>.
10090         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10091         (SYSCALL_ERROR_ERRNO): Removed.
10092         (SYSCALL_ERROR_HANDLER): Changed to empty.
10093         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10094         (__syscall_error): New prototype.
10095         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10096         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10097
10098 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10099
10100         [BZ #19124]
10101         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10102         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10103         _dl_runtime_resolve_avx.
10104         (_dl_runtime_profile_avx512): Make it a hidden alias of
10105         _dl_runtime_profile_avx.
10106
10107 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10108
10109         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10110         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10111         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10112         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10113
10114         [BZ #16422]
10115         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10116         New configure test.
10117         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10118         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10119         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10120         <math_private.h> and <stdint.h>.
10121         (__llrint): Avoid conversions to long long int where those might
10122         raise spurious exceptions.
10123         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10124         <math_private.h> and <stdint.h>.
10125         (__llrintf): Avoid conversions to long long int where those might
10126         raise spurious exceptions.
10127
10128 2015-10-12  Andreas Schwab  <schwab@suse.de>
10129
10130         [BZ #18969]
10131         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10132         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10133         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10134         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10135         $(gen-locales).
10136         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10137         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10138         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10139         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10140         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10141         $(gen-locales).
10142         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10143         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10144         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10145         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10146         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10147         ($(objpfx)tst-ftell-active-handler.out)
10148         ($(objpfx)tst-ftell-append.out)
10149         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10150         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10151         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10152         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10153         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10154         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10155         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10156         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10157         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10158         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10159         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10160         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10161         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10162         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10163         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10164         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10165         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10166         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10167         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10168         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10169         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10170         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10171         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10172         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10173         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10174         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10175         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10176         $(gen-locales).
10177         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10178         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10179         $(gen-locales).
10180         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10181         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10182         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10183         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10184         $(gen-locales).
10185         * libio/tst_wprintf2.c (main): Use explicit locale.
10186         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10187
10188 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10189
10190         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10191         __msg_sig_post.
10192         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10193
10194 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10195
10196         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10197         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10198
10199         * sysdeps/arm/libm-test-ulps: Regenerated.
10200
10201         [BZ #15470]
10202         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10203
10204         [BZ #16399]
10205         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10206         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10207         and <fix-fp-int-convert-overflow.h>.
10208         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10209         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10210         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10211         and <fix-fp-int-convert-overflow.h>.
10212         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10213         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10214         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10215         <fix-fp-int-convert-overflow.h>.
10216         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10217         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10218         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10219         <fix-fp-int-convert-overflow.h>.
10220         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10221         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10222         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10223         and <fix-fp-int-convert-overflow.h>.
10224         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10225         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10226         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10227         <limits.h> and <fix-fp-int-convert-overflow.h>.
10228         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10229         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10230         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10231         and <fix-fp-int-convert-overflow.h>.
10232         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10233         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10234         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10235         and <fix-fp-int-convert-overflow.h>.
10236         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10237         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10238         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10239
10240 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10241
10242         [BZ #18589]
10243         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10244         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10245         $(gen-locales).
10246
10247 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10248             Phil Blundell <pb@pbcl.net>
10249
10250         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10251         * nptl/tst-cancel26.c: New file.
10252         * nptl/tst-cancel27.c: Likewise.
10253
10254 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10255
10256         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10257         __ILP32__ isn't defined.
10258         (lrint): Likewise.
10259         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10260         (lrintf): Likewise.
10261         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10262         (lrintl): Likewise.
10263         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10264         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10265         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10266
10267 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10268
10269         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10270         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10271
10272         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10273         file.
10274         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10275         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10276
10277 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10278
10279         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10280         configure test.
10281         * sysdeps/i386/configure: Regenerated.
10282         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10283         configure test.
10284         * sysdeps/x86_64/configure: Regenerated.
10285         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10286         Make code unconditional.
10287
10288         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10289         test.
10290         * sysdeps/i386/configure: Regenerated.
10291         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10292         test.
10293         * sysdeps/x86_64/configure: Regenerated.
10294         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10295         Make code unconditional.
10296         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10297         Likewise.
10298         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10299         Likewise.
10300         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10301         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10302         code unconditional.
10303         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10304         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10305         code unconditional.
10306         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10307         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10308         code unconditional.
10309         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10310         code unconditional.
10311         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10312         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10313         code unconditional.
10314         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10315         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10316         code unconditional.
10317         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10318         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10319         code unconditional.
10320         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10321         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10322         code unconditional.
10323         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10324         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10325
10326         [BZ #19095]
10327         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10328         mantissa to long int before shifting left.
10329
10330 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10331
10332         [BZ #19094]
10333         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10334         <limits.h>.
10335         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10336         when result overflows but exception would not result from cast.
10337         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10338         <limits.h>.
10339         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10340         when result overflows but exception would not result from cast.
10341         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10342         <limits.h>.
10343         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10344         when result overflows but exception would not result from cast.
10345         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10346         <limits.h>.
10347         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10348         when result overflows but exception would not result from cast.
10349         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10350         <limits.h>.
10351         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10352         when result overflows but exception would not result from cast.
10353         * math/libm-test.inc (lrint_test_data): Add more tests.
10354         (llrint_test_data): Likewise.
10355
10356 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10357
10358         [BZ #18872]
10359         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10360         Move out from under [$(run-built-tests) = yes] conditional.
10361         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10362         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10363
10364 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10365
10366         [BZ #18589]
10367         * string/Makefile (tests): Add bug-strcoll2.
10368         (LOCALES): Add cs_CZ.UTF-8.
10369         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10370
10371         [BZ #18589]
10372         * string/bug-strcoll2.c: New file.
10373         * locale/categories.def: Revert commit
10374         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10375         * locale/langinfo.h: Likewise.
10376         * locale/localeinfo.h: Likewise.
10377         * locale/C-collate.c: Likewise.
10378         * locale/programs/ld-collate.c (collate_output): Likewise.
10379         * string/strcoll_l.c (STRDIFF): Likewise.
10380         (STRCOLL): Likewise.
10381         * wcsmbs/wcscoll_l.c: Likewise.
10382
10383 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10384
10385         * math/libm-test.inc (lround_test_data): Do not expect the absence
10386         of "inexact" for some tests with non-integer arguments.
10387         (llround_test_data): Likewise.
10388
10389         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10390         test.
10391         (libc_cv_cc_sse2avx): Likewise.
10392         * sysdeps/i386/configure: Regenerated.
10393         * sysdeps/i386/i686/multiarch/Makefile
10394         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10395         [$(subdir) = math].
10396         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10397         code unconditional.
10398         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10399         Likewise.
10400         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10401         Likewise.
10402         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10403         Likewise.
10404         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10405         test.
10406         (libc_cv_cc_sse2avx): Likewise.
10407         * sysdeps/x86_64/configure: Regenerated.
10408         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10409         unconditional.
10410         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10411         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10412         unconditional.
10413         (_dl_runtime_profile)
10414         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10415         conditional code.
10416         * sysdeps/x86_64/fpu/multiarch/Makefile
10417         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10418         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10419         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10420         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10421         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10422         * sysdeps/x86_64/fpu/multiarch/e_log.c
10423         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10424         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10425         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10426         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10427         Likewise.
10428         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10429         Likewise.
10430         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10431         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10432         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10433         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10434         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10435         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10436         (HAVE_SSE2AVX_SUPPORT): Likewise.
10437
10438 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10439
10440         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10441         instead of #pragma optimize.
10442
10443 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10444
10445         [BZ #17195]
10446         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10447         as is similarly done in systrim and _int_free already.
10448
10449 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10450
10451         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10452
10453 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10454
10455         [BZ #19088]
10456         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10457         <limits.h>.
10458         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10459         overflows but exception would not result from cast.
10460         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10461         and <limits.h>.
10462         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10463         overflows but exception would not result from cast.
10464         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10465         <limits.h>.
10466         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10467         overflows but exception would not result from cast.
10468         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10469         <limits.h>.
10470         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10471         overflows but exception would not result from cast.
10472         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10473         <limits.h>.
10474         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10475         overflows but exception would not result from cast.
10476         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10477         <limits.h>.
10478         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10479         overflows but exception would not result from cast.
10480         * math/libm-test.inc (lround_test_data): Add more tests.
10481         (llround_test_data): Likewise.
10482
10483 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10484
10485         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10486         (CFLAGS-ialloc.c): Ditto.
10487         (CFLAGS-scheck.c): Ditto.
10488
10489 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10490
10491         [BZ #19086]
10492         * manual/filesys.texi (Storage Allocation): Fix argument order for
10493         posix_fallocate64.
10494
10495 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10496
10497         [BZ #19085]
10498         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10499         exponent below 48 inside case for non-overflowing exponent.
10500         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10501
10502 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10503
10504         * iconvdata/cp737.h (from_idx): Add const.
10505         * iconvdata/cp775.h (from_idx): Likewise.
10506
10507 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10508
10509         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10510         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10511         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10512
10513         [BZ #19079]
10514         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10515         file, conditioned on [!_LP64].
10516         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10517         [!_LP64] (__lround): Do not define as function or alias.
10518         [!_LP64] (lround): Likewise.
10519         [!_LP64] (__lroundl): Likewise.
10520         [!_LP64] (lroundl): Likewise.
10521         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10522         macro.
10523         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10524         Likewise.
10525
10526 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10527
10528         * math/libm-test.inc (lrint_test_data): Add more tests.
10529         (llrint_test_data): Likewise.
10530         (lround_test_data): Likewise.
10531         (llround_test_data): Likewise.
10532
10533         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10534         (llrint_test_data): Add tests used for lrint.
10535
10536         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10537         test.
10538         * sysdeps/i386/configure: Regenerated.
10539         * sysdeps/i386/i686/multiarch/Makefile
10540         [$(config-cflags-sse4) = yes]: Make code unconditional.
10541         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10542         Likewise.
10543         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10544         Likewise.
10545         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10546         test.
10547         * sysdeps/x86_64/configure: Regenerated.
10548         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10549         Make code unconditional.
10550         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10551         Likewise.
10552         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10553         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10554
10555         * scripts/rpm2dynsym.sh: Remove file.
10556
10557 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10558
10559         * configure.ac (libc_cv_cxx_thread_local): Define.
10560         * configure: Regenerate.
10561         * config.make.in (have-cxx-thread_local): Define.
10562         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10563         (LDLIBS-tst-thread_local1): Define.
10564         (tests): Add tst-thread_local1.
10565         [have-cxx-thread_local != yes] (tests-unsupported): Add
10566         tst-thread_local1.
10567         * nptl/tst-thread_local1.cc: New file.
10568
10569 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10570
10571         [BZ #19078]
10572         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10573         (u_thres): Likewise.
10574         (__expl): Determine whether to call __kernel_standard_l based on
10575         value of result, not argument.
10576
10577         * math/libm-test.inc (scalb_test_data): Add more expectations for
10578         the "inexact" exception.
10579
10580         [BZ #19077]
10581         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10582         0.0L for argument 1.0L.
10583
10584         [BZ #19076]
10585         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10586         constant 0.0L when computing infinite result.
10587
10588 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10589
10590         [BZ #10432]
10591         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10592         malloc_usable_size.
10593
10594 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10595
10596         [BZ #19018]
10597         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10598         Mangle function pointer before storing it.
10599         (__call_tls_dtors): Demangle function pointer before calling it.
10600
10601 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10602
10603         [BZ #19012]
10604         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10605         Clean up on failure.
10606
10607 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10608
10609         [BZ #19071]
10610         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10611         long int variable to store possibly incremented high part of
10612         mantissa.
10613         * math/libm-test.inc (lround_test_data): Add tests used for
10614         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10615         for tests requiring 64-bit long.  Do not condition tests on
10616         [TEST_FLOAT] unnecessarily.
10617         (llround_test_data): Add tests used for lround.  Add another
10618         expectation for the "inexact" exception.  Do not condition tests
10619         on [TEST_FLOAT] unnecessarily.
10620
10621         [BZ #887]
10622         [BZ #19049]
10623         [BZ #19050]
10624         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10625         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10626         <fix-int-fp-convert-zero.h>.
10627         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10628         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10629         <fix-int-fp-convert-zero.h>.
10630         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10631         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10632         <fix-int-fp-convert-zero.h>.
10633         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10634         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10635         <fix-int-fp-convert-zero.h>.
10636         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10637         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10638         <fix-int-fp-convert-zero.h>.
10639         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10640         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10641         <fix-int-fp-convert-zero.h>.
10642         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10643         * sysdeps/ieee754/flt-32/s_erff.c: Include
10644         <fix-int-fp-convert-zero.h>.
10645         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10646         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10647         <fix-int-fp-convert-zero.h>.
10648         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10649         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10650         <fix-int-fp-convert-zero.h>.
10651         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10652         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10653         <fix-int-fp-convert-zero.h>.
10654         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10655         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10656         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10657         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10658         file.
10659         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10660
10661 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10662
10663         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10664
10665 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10666
10667         [BZ #19059]
10668         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10669         overflowing computation.
10670         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10671         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10672         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10673         Likewise.
10674         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10675         Likewise.
10676         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10677         Likewise.
10678         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10679         Likewise.
10680         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10681         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10682         Likewise.
10683         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10684         Likewise.
10685         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10686
10687         * nss/rewrite_field.c (__nss_rewrite_field): Use
10688         internal_function.
10689         * nss/valid_field.c (__nss_valid_field): Likewise.
10690         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10691
10692 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10693
10694         [BZ #18724]
10695         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10696         (__nss_invalid_field_characters, __nss_valid_field)
10697         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10698         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10699         tst-field.c: New file.
10700         * nss/Makefile (routines): Add valid_field, rewrite_field.
10701         (tests-static): Define unconditionally.
10702         (tests): Include tests-static.
10703         [build-static-nss] (tests-static): Use append.
10704         [build-static-nss] (tests): Remove modification.
10705         * nss/getent.c (print_group): Call putgrent.  Report error.
10706         (print_gshadow): Call putsgent.  Report error.
10707         (print_passwd): Call putpwent.  Report error.
10708         (print_shadow): Call putspent.  Report error.
10709         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10710         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10711         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10712         name, password, directory, shell fields for valid syntax.  Rewrite
10713         GECOS field to match syntax.
10714         * pwd/Makefile (tests): Add tst-putpwent.
10715         * pwd/tst-putpwent.c: New file.
10716         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10717         Check grName, grpasswd, gr_mem fields for valid syntax.
10718         Change loop variable i to size_t.
10719         * grp/Makefile (tests): Add tst-putgrent.
10720         * grp/tst-putgrent.c: New file.
10721         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10722         valid syntax.
10723         * shadow/Makefile (tests): Add tst-putspent.
10724         * shadow/tst-putspent.c: New file.
10725         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10726         sg_mem fields for valid syntax.
10727         * gshadow/Makefile (tests): Add tst-putsgent.
10728         * gshadow/tst-putsgent.c: New file.
10729
10730 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10731
10732         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10733         assembly instructions.
10734
10735 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10736
10737         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10738         prefix from operands.
10739
10740 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10741
10742         [BZ #16347]
10743         [BZ #19046]
10744         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10745         <libc-internal.h>.
10746         (MAXLGM): Do not use diagnostic control macros.
10747         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10748         threshold for ldbl-128ibm.
10749         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10750         instead of multiplying by log then subtracting.
10751         * math/auto-libm-test-in: Add more tests of lgamma.
10752         * math/auto-libm-test-out: Regenerated.
10753
10754         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10755         (TYPE_HEX_DIG): Likewise.
10756         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10757         precisions when printing floating-point numbers.
10758         (check_float_internal): Likewise.
10759
10760 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10761
10762         [BZ #16620]
10763         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10764         of log (10) rounded downward to 48 bits.
10765         (log10_low): Use corresponding low part of log (10).
10766
10767         [BZ #19032]
10768         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10769         compute result as (x - x) / (x - x) not as 0 / 0.
10770         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10771         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10772
10773         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10774         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10775         and expm1.
10776         * math/auto-libm-test-out: Regenerated.
10777         * math/libm-test.inc (acos_test_data): Add more tests.
10778         (asin_test_data): Likewise.
10779         (asinh_test_data): Likewise.
10780         (atan_test_data): Likewise.
10781         (atanh_test_data): Likewise.
10782         (atan2_test_data): Likewise.
10783         (cbrt_test_data): Likewise.
10784         (ceil_test_data): Likewise.
10785         (copysign_test_data): Likewise.
10786         (cos_test_data): Likewise.
10787         (cosh_test_data): Likewise.
10788         (erf_test_data): Likewise.
10789         (erfc_test_data): Likewise.
10790         (exp_test_data): Likewise.
10791         (exp10_test_data): Likewise.
10792         (exp2_test_data): Likewise.
10793         (expm1_test_data): Likewise.
10794         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10795
10796 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10797
10798         [BZ #19006]
10799         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10800         to ...
10801         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10802         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10803         to ...
10804         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10805         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10806         to ...
10807         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10808         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10809         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10810         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10811         to ...
10812         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10813         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10814         Moved to ...
10815         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10816         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10817         Moved to ...
10818         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10819         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10820         to ...
10821         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10822         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10823         Moved to ...
10824         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10825         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10826         to ...
10827         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10828         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10829         Removed.
10830         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10831         Likewise.
10832         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10833         Likewise.
10834         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10835         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10836         Likewise.
10837         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10838         Likewise.
10839         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10840         Likewise.
10841         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10842         Likewise.
10843         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10844         Likewise.
10845         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10846         Likewise.
10847         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10848         Likewise.
10849         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10850         Likewise.
10851         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10852         Likewise.
10853         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10854         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10855         Likewise.
10856         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10857         Likewise.
10858         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10859         Likewise.
10860         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10861         Likewise.
10862         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10863         Likewise.
10864         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10865         Replace ../i486/pthread_cond_timedwait.S with
10866         ../pthread_cond_timedwait.S.
10867
10868 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10869
10870         * math/libm-test.inc (acos_test_data): Refine expectations for
10871         errno and "inexact" exceptions.
10872         (acosh_test_data): Likewise.
10873         (asin_test_data): Likewise.
10874         (asinh_test_data): Likewise.
10875         (atan_test_data): Likewise.
10876         (atanh_test_data): Likewise.
10877         (atan2_test_data): Likewise.
10878         (cbrt_test_data): Likewise.
10879         (ceil_test_data): Likewise.
10880         (copysign_test_data): Likewise.
10881         (cosh_test_data): Likewise.
10882         (erf_test_data): Likewise.
10883         (erfc_test_data): Likewise.
10884         (exp_test_data): Likewise.
10885         (exp10_test_data): Likewise.
10886         (exp2_test_data): Likewise.
10887         (expm1_test_data): Likewise.
10888         (fabs_test_data): Likewise.
10889         (floor_test_data): Likewise.
10890         (fma_test_data): Likewise.
10891         (fmax_test_data): Likewise.
10892         (fmin_test_data): Likewise.
10893         (fmod_test_data): Likewise.
10894         (fpclassify_test_data): Likewise.
10895         (frexp_test_data): Likewise.
10896         (hypot_test_data): Likewise.
10897         (ilogb_test_data): Likewise.
10898         (isgreater_test_data): Likewise.
10899         (isgreaterequal_test_data): Likewise.
10900         (isinf_test_data): Likewise.
10901         (isless_test_data): Likewise.
10902         (islessequal_test_data): Likewise.
10903         (islessgreater_test_data): Likewise.
10904         (isnan_test_data): Likewise.
10905         (isnormal_test_data): Likewise.
10906         (issignaling_test_data): Likewise.
10907         (isunordered_test_data): Likewise.
10908         (j0_test_data): Likewise.
10909         (j1_test_data): Likewise.
10910         (jn_test_data): Likewise.
10911         (lgamma_test_data): Likewise.
10912         (lrint_test_data): Likewise.
10913         (llrint_test_data): Likewise.
10914         (log_test_data): Likewise.
10915         (log10_test_data): Likewise.
10916         (log1p_test_data): Likewise.
10917         (log2_test_data): Likewise.
10918         (logb_test_data): Likewise.
10919         (lround_test_data): Likewise.
10920         (llround_test_data): Likewise.
10921         (modf_test_data): Likewise.
10922         (nearbyint_test_data): Likewise.
10923         (nextafter_test_data): Likewise.
10924         (nexttoward_test_data): Likewise.
10925         (pow_test_data): Likewise.
10926         (remainder_test_data): Likewise.
10927         (remquo_test_data): Likewise.
10928         (rint_test_data): Likewise.
10929         (round_test_data): Likewise.
10930         (signbit_test_data): Likewise.
10931         (sinh_test_data): Likewise.
10932         (sqrt_test_data): Likewise.
10933         (tanh_test_data): Likewise.
10934         (tgamma_test_data): Likewise.
10935         (trunc_test_data): Likewise.
10936         (y0_test_data): Likewise.
10937         (y1_test_data): Likewise.
10938         (yn_test_data): Likewise.
10939         (significand_test_data): Likewise.
10940
10941 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10942
10943         * manual/filesys.texi (Storage Allocation): Document that
10944         posix_fallocate emulation fails when fd is open with O_WRONLY.
10945
10946 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10947
10948         [BZ #19016]
10949         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10950         allow more cases with X^2 + Y^2 >= 0.5.
10951         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10952         normal element in sum instead of special-casing based on values of
10953         arguments.
10954         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10955         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10956         -1 as normal element in sum instead of special-casing based on
10957         values of arguments.
10958         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10959         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10960         (__x2y2m1): Update comment.
10961         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10962         as normal element in sum instead of special-casing based on values
10963         of arguments.
10964         * math/s_clog.c (__clog): Handle more cases using log1p without
10965         hypot.
10966         * math/s_clog10.c (__clog10): Likewise.
10967         * math/s_clog10f.c (__clog10f): Likewise.
10968         * math/s_clog10l.c (__clog10l): Likewise.
10969         * math/s_clogf.c (__clogf): Likewise.
10970         * math/s_clogl.c (__clogl): Likewise.
10971         * math/auto-libm-test-in: Add more tests of clog and clog10.
10972         * math/auto-libm-test-out: Regenerated.
10973         * sysdeps/i386/fpu/libm-test-ulps: Update.
10974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10975
10976 2015-09-28  Martin Sebor  <msebor@redhat.com>
10977
10978         [BZ #18969]
10979         * string/Makefile (LOCALES): Define.
10980         (gen-locales.mk): Include.
10981         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10982         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10983         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10984         on setlocale failure.
10985
10986 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10987
10988         [BZ #18985]
10989         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10990         (__strftime_internal): Likewise.
10991         * time/tst-strftime.c (do_bz18985): New test.
10992         (do_test): Call it.
10993
10994 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10995
10996         [BZ #18956]
10997         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10998         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10999         extracting high part.
11000         * math/auto-libm-test-in: Add another test of pow.
11001         * math/auto-libm-test-out: Regenerated.
11002         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11003
11004 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11005
11006         [BZ #18825]
11007         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11008         New macro.
11009         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11010         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11011         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11012         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11013         DBL_NARROW_EVAL, reloading the PIC register as needed.
11014         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11015         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11016         FLT_NARROW_EVAL.  Use separate return path for case when first
11017         argument is NaN.
11018         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11019         DEFINE_LDBL_MIN.
11020         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11021         PIC register.
11022         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11023         math_check_force_underflow_nonneg.
11024         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11025         underflow for subnormal result.
11026         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11027         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11028         math_check_force_underflow_nonneg.
11029         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11030         math_check_force_underflow.
11031         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11032         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11033         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11034         DEFINE_LDBL_MIN.
11035         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11036         * math/auto-libm-test-in: Add more tests of pow.
11037         * math/auto-libm-test-out: Regenerated.
11038
11039 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11040
11041         * nss/bug17079.c (init_test_items): Add diagnostic for
11042         inconsistent entries.
11043         (test_buffer_size): Skip inconsistent entries.
11044
11045 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11046
11047         [BZ #13304]
11048         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11049         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11050         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11051
11052         [BZ #13304]
11053         * sysdeps/microblaze/s_fma.c: New file.
11054         * sysdeps/microblaze/s_fmaf.c: Likewise.
11055         * sysdeps/microblaze/sfp-machine.h: Likewise.
11056
11057 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11058
11059         [BZ #17250]
11060         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11061         member.
11062
11063 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11064
11065         [BZ #18803]
11066         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11067         (MO): New macro.
11068         (__ieee754_hypot) [PIC]: Load PIC register.
11069         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11070         DBL_NARROW_EVAL.
11071         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11072         math_check_force_underflow_nonneg in case where result might be
11073         tiny.
11074         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11075         Likewise.
11076         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11077         Likewise.
11078         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11079         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11080         * math/auto-libm-test-in: Add more tests of hypot.
11081         * math/auto-libm-test-out: Regenerated.
11082
11083 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11084
11085         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11086
11087 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11088
11089         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11090         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11091         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11092         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11093         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11094         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11095         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11096
11097         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11098         LOAD_PIC_REG.
11099
11100         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11101         (FLT_CHECK_FORCE_UFLOW): Likewise.
11102         (DBL_CHECK_FORCE_UFLOW): Likewise.
11103         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11104         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11105         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11106         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11107         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11108         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11109         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11110         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11111         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11112         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11113         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11114         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11115         (flt_min): Replace with use of DEFINE_FLT_MIN.
11116         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11117         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11118         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11119         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11120         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11121         (flt_min): Replace with use of DEFINE_FLT_MIN.
11122         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11123         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11124         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11125         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11126         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11127         (flt_min): Replace with use of DEFINE_FLT_MIN.
11128         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11129         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11130         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11131         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11132         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11133         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11134         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11135         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11136         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11137         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11138         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11139         (flt_min): Replace with use of DEFINE_FLT_MIN.
11140         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11141         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11142         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11143         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11144         main computation.
11145         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11146         (flt_min): Replace with use of DEFINE_FLT_MIN.
11147         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11148         main computation.
11149         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11150         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11151         (MO): New macro.
11152         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11153         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11154         (flt_min): Replace with use of DEFINE_FLT_MIN.
11155         (MO): New macro.
11156         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11157         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11158         (__log1pl): Use MO.
11159
11160         [BZ #19003]
11161         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11162         $(config-cflags-nofma).
11163
11164 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11165
11166         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11167
11168 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11169
11170         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11171         (TWO127): Likewise.
11172
11173         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11174         (min_of_type): Likewise.
11175         (math_check_force_underflow): Likewise.
11176         (math_check_force_underflow_nonneg): Likewise.
11177         (math_check_force_underflow_complex): Likewise.
11178         * math/e_exp2l.c (__ieee754_exp2l): Use
11179         math_check_force_underflow_nonneg.
11180         * math/k_casinh.c (__kernel_casinh): Likewise.
11181         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11182         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11183         * math/s_catan.c (__catan): Use
11184         math_check_force_underflow_complex.
11185         * math/s_catanf.c (__catanf): Likewise.
11186         * math/s_catanh.c (__catanh): Likewise.
11187         * math/s_catanhf.c (__catanhf): Likewise.
11188         * math/s_catanhl.c (__catanhl): Likewise.
11189         * math/s_catanl.c (__catanl): Likewise.
11190         * math/s_ccosh.c (__ccosh): Likewise.
11191         * math/s_ccoshf.c (__ccoshf): Likewise.
11192         * math/s_ccoshl.c (__ccoshl): Likewise.
11193         * math/s_cexp.c (__cexp): Likewise.
11194         * math/s_cexpf.c (__cexpf): Likewise.
11195         * math/s_cexpl.c (__cexpl): Likewise.
11196         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11197         * math/s_clog10.c (__clog10): Likewise.
11198         * math/s_clog10f.c (__clog10f): Likewise.
11199         * math/s_clog10l.c (__clog10l): Likewise.
11200         * math/s_clogf.c (__clogf): Likewise.
11201         * math/s_clogl.c (__clogl): Likewise.
11202         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11203         * math/s_csinf.c (__csinf): Likewise.
11204         * math/s_csinh.c (__csinh): Likewise.
11205         * math/s_csinhf.c (__csinhf): Likewise.
11206         * math/s_csinhl.c (__csinhl): Likewise.
11207         * math/s_csinl.c (__csinl): Likewise.
11208         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11209         * math/s_csqrtf.c (__csqrtf): Likewise.
11210         * math/s_csqrtl.c (__csqrtl): Likewise.
11211         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11212         * math/s_ctanf.c (__ctanf): Likewise.
11213         * math/s_ctanh.c (__ctanh): Likewise.
11214         * math/s_ctanhf.c (__ctanhf): Likewise.
11215         * math/s_ctanhl.c (__ctanhl): Likewise.
11216         * math/s_ctanl.c (__ctanl): Likewise.
11217         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11218         instead of volatile.
11219         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11220         math_check_force_underflow.
11221         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11222         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11223         volatile when forcing underflow.
11224         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11225         math_check_force_underflow_nonneg.
11226         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11227         Likewise.
11228         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11229         math_check_force_underflow.
11230         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11231         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11232         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11233         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11234         math_check_force_underflow_nonneg.
11235         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11236         math_check_force_underflow.
11237         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11238         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11239         instead of volatile.
11240         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11241         math_check_force_underflow.
11242         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11243         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11244         math_check_force_underflow_nonneg.
11245         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11246         math_check_force_underflow.
11247         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11248         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11249         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11250         math_check_force_underflow_nonneg.
11251         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11252         Likewise.
11253         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11254         math_check_force_underflow.
11255         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11256         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11257         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11258         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11259         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11260         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11261         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11262         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11263         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11264         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11265         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11266         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11267         Likewise.
11268         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11269         math_check_force_underflow_nonneg.
11270         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11271         Likewise.
11272         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11273         math_check_force_underflow.
11274         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11275         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11276         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11277         Likewise.
11278         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11279         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11280         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11281         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11282         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11283         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11284         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11285         instead of volatile.
11286         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11287         math_check_force_underflow.
11288         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11289         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11290         math_check_force_underflow.
11291         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11292         Likewise.
11293         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11294         Use math_check_force_underflow_nonneg.
11295         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11296         math_check_force_underflow.
11297         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11298         Likewise.
11299         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11300         Likewise.
11301         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11302         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11303         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11304         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11305         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11306         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11307         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11308         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11309         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11310         math_check_force_underflow_nonneg.
11311         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11312         math_check_force_underflow.
11313         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11314         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11315         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11316         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11317         math_check_force_underflow_nonneg.
11318         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11319         math_check_force_underflow.
11320         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11321         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11322         instead of volatile.
11323         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11324         math_check_force_underflow.
11325
11326         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11327         * stdlib/strtod_l.c: Include <math_private.h>.
11328         (overflow_value): Use math_narrow_eval.
11329         (underflow_value): Likewise.
11330         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11331         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11332         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11333         (__ieee754_gamma_r): Likewise.
11334         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11335         Likewise.
11336         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11337         Likewise.
11338         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11339         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11340         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11341         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11342         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11343         (__ieee754_gammaf_r): Likewise.
11344         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11345         Likewise.
11346         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11347         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11348         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11349         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11350         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11351         volatile.
11352         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11353         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11354         math_narrow_eval.
11355         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11356         Likewise.
11357         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11358         Likewise.
11359         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11360         Likewise.
11361         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11362         volatile.
11363         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11364         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11365         math_narrow_eval.
11366         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11367         Likewise.
11368         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11369         Likewise.
11370
11371 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11372
11373         * nptl/Versions: Remove ignored symbols.
11374
11375 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11376
11377         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11378         * nss/Makefile (tests): Update.
11379
11380 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11381
11382         * nss/bug18287.c: New file.
11383         * nss/Makefile (tests): Add bug18287.
11384
11385 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11386
11387         * mach/Versions (__mach_host_self_): Add symbol.
11388
11389 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11390
11391         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11392         vm_page_size.
11393
11394 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11395
11396         Really fix sysdeps/i386/fpu/s_scalbn.S build
11397
11398         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11399         (libc: GLIBC_2_22): Remove unused version set.
11400
11401 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11402
11403         * config.make.in (enable-timezone-tools): New variable.
11404         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11405         (enable_timezone_tools): Export to generated files.
11406         * configure: Regenerate.
11407         * INSTALL: Regenerate.
11408         * manual/install.texi (--disable-timezone-tools): Document new flag.
11409         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11410         ifeq ($(enable-timezone-tools),yes) check.
11411
11412 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11413
11414         * timezone/Makefile: Revert previous change.
11415
11416         [BZ #18980]
11417         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11418         (DEFINE_DBL_MIN): Likewise.
11419         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11420         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11421         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11422         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11423         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11424         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11425         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11426         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11427         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11428         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11429         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11430         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11431         (flt_min): Replace with use of DEFINE_FLT_MIN.
11432         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11433         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11434         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11435         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11436         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11437         (flt_min): Replace with use of DEFINE_FLT_MIN.
11438         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11439         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11440         (flt_min): Replace with use of DEFINE_FLT_MIN.
11441         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11442         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11443         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11444         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11445         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11446         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11447         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11448         (__ieee754_pow): Use DBL_NARROW_EVAL.
11449         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11450         (__ieee754_powf): Use FLT_NARROW_EVAL.
11451         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11452         (__ieee754_expf_sse2): Convert double-precision result to single
11453         precision.
11454         * sysdeps/i386/fpu/libm-test-ulps: Update.
11455
11456 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11457
11458         * timezone/Makefile: Ignore unused variable errors due to private.h
11459         (time_t_min) and (time_t_max).
11460         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11461         Likewise.
11462
11463 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11464
11465         [BZ #18981]
11466         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11467         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11468         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11469         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11470         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11471         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11472         (__scalbn): Use DBL_NARROW_EVAL.
11473         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11474         (__scalbnf): Use FLT_NARROW_EVAL.
11475
11476 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11477
11478         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11479         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11480         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11481         * stdio-common/printf_fp.c (___printf_fp):
11482         Use signbit to get the sign. Use isinf macro to allow inlining.
11483         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11484         * stdio-common/printf_size.c (__printf_size): Likewise.
11485
11486 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11487
11488         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11489
11490 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11491
11492         [BZ #18980]
11493         * sysdeps/generic/math_private.h: Include <float.h>.
11494         (math_narrow_eval): New macro.
11495         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11496         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11497         math_narrow_eval on overflowing return value.
11498         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11499         Likewise.
11500         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11501         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11502         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11503         Likewise.
11504         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11505
11506 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11507
11508         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11509         * math/Makefile: Remove isinf_ns.c.
11510         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11511         * math/multc3.c (__multc3): Likewise.
11512         * math/s_casin.c (__casin): Likewise.
11513         * math/s_casinf.c (__casinf): Likewise.
11514         * math/s_casinl.c (__casinl): Likewise.
11515         * math/s_cproj.c (__cproj): Likewise.
11516         * math/s_cprojf.c (__cprojf): Likewise.
11517         * math/s_cprojl.c (__cprofl): Likewise.
11518         * math/s_ctan.c (__ctan): Likewise.
11519         * math/s_ctanf.c (__ctanf): Likewise.
11520         * math/s_ctanh.c (__ctanh): Likewise.
11521         * math/s_ctanhf.c (__ctanhf): Likewise.
11522         * math/s_ctanhl.c (__ctanhl): Likewise.
11523         * math/s_ctanl.c (__ctanl): Likewise.
11524         * math/w_fmod.c (__fmod): Likewise.
11525         * math/w_fmodf.c (__fmodf): Likewise.
11526         * math/w_fmodl.c (_fmodl): Likewise.
11527         * math/w_remainder.c (__remainder): Likewise.
11528         * math/w_remainderf.c (__remainderf): Likewise.
11529         * math/w_remainderl.c (__remainderl): Likewise.
11530         * math/w_scalb.c (__scalb): Likewise.
11531         * math/w_scalbf.c (__scalbf): Likewise.
11532         * math/w_scalbl.c (__scalbl): Likewise.
11533         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11534         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11535         with isinf.
11536         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11537         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11538         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11539         __isinf_nsf with isinf.
11540         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11541         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11542         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11543         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11544         with isinf.
11545         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11546         __isinf_nsl with isinf.
11547         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11548         with isinf.
11549         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11550         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11551         __isinf_nsl with isinf.
11552         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11553         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11554         with isinf.
11555
11556 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11557
11558         * resolv/base64.c (rcsid): Remove unused static.
11559         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11560         static.  (tqpi1): Likewise.
11561         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11562         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11563         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11564         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11565         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11566         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11567         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11568         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11569         Likewise.
11570
11571 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11572
11573         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11574         <nptl/pthreadP.h>.
11575         (_longjmp_unwind): Use __libc_ptf_call.
11576         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11577
11578 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11579
11580         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11581         * sysdeps/arm/__longjmp.S: Likewise.
11582
11583 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11584
11585         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11586         Use __builtin_signbit.
11587         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11588         Use __builtin_signbitf.
11589         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11590         Use __builtin_signbitl.
11591         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11592         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11593
11594 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11595
11596         [BZ #15367]
11597         [BZ #17441]
11598
11599         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11600         * math/math.h (fpclassify): Use __builtin_fpclassify when
11601         available.  (signbit): Use __builtin_signbit(f/l).
11602         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11603         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11604         (isinf): Use __builtin_isinf_sign.
11605
11606 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11607
11608         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11609         * benchtests/bench-math-inlines.c: New benchmark.
11610         * benchtests/bench-util.h: New file.
11611         * benchtests/bench-util.c: New file.
11612         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11613
11614 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11615
11616         * elf/tst-dlmopen1.c: Define TEST_SO.
11617         (do_test): Use TEST_SO.
11618
11619         * elf/dl-load.c: Include libc-internal.h.
11620         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11621
11622 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11623
11624         [BZ #17887]
11625         * time/strptime_l.c (__strptime_internal): Make %z accept
11626         [+-]HH:MM time zones.
11627
11628 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11629
11630         [BZ #17886]
11631         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11632         valid time zone.
11633
11634 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11635
11636         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11637         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11638         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11639         (__ASSUME_FDATASYNC): Delete.
11640
11641 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11642
11643         * conform/linknamespace.pl: Require weak undefined symbols to be
11644         in the standard namespace.
11645         (%strong_syms): Rename to %seen_syms.
11646         (%strong_seen): Rename to %seen_where.
11647
11648 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11649
11650         [BZ #18970]
11651         * misc/error.c (error): Replace pthread_setcancelstate with
11652         __pthread_setcancelstate.
11653         (error_at_line): Likewise.
11654         * posix/wordexp.c (parse_comm): Likewise.
11655         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11656         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11657         (__pthread_setcancelstate): This.
11658         (pthread_setcancelstate): Add an alias.
11659         * nptl/nptl-init.c (pthread_functions): Replace
11660         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11661         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11662         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11663         hidden_proto.
11664         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11665         it with hidden_def.
11666         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11667         (pthread_setcancelstate): Renamed to ...
11668         (__pthread_setcancelstate): This.
11669         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11670         __libc_ptf_call with __pthread_setcancelstate.
11671
11672 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11673             Andreas Schwab  <schwab@suse.de>
11674
11675         [BZ #17118]
11676         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11677         result when imaginary part of argument is infinite using sine and
11678         cosine.
11679         * math/s_ctanf.c (__ctanf): Likewise.
11680         * math/s_ctanl.c (__ctanl): Likewise.
11681         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11682         of result when real part of argument is infinite using sine and
11683         cosine.
11684         * math/s_ctanhf.c (__ctanhf): Likewise.
11685         * math/s_ctanhl.c (__ctanhl): Likewise.
11686         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11687         (ctanh_test_data): Add more tests of ctanh.
11688
11689 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11690
11691         [BZ #15384]
11692         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11693         bit-mask as in subtraction.
11694         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11695         Likewise.
11696         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11697         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11698         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11699
11700         [BZ #18951]
11701         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11702         underflow exception for small results.
11703         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11704         Likewise.
11705         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11706         Likewise.
11707         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11708         Likewise.
11709         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11710         Likewise.
11711         * math/auto-libm-test-in: Add more tests of tgamma.
11712         * math/auto-libm-test-out: Regenerated.
11713
11714 2015-09-17  Andreas Schwab  <schwab@suse.de>
11715
11716         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11717
11718 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11719
11720         [BZ #18977]
11721         * math/bits/mathcalls.h
11722         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11723         not declare.
11724         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11725         Likewise.
11726         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11727         Likewise.
11728         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11729         Likewise.
11730         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11731         Likewise.
11732         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11733         Likewise.
11734         * conform/data/math.h-data
11735         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11736         function.
11737         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11738         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11739         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11740         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11741         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11742         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11743         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11744         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11745         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11746         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11747         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11748
11749         [BZ #6803]
11750         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11751         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11752         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11753         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11754         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11755         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11756         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11757         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11758         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11759         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11760         Likewise.
11761         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11762         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11763         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11764         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11765         long_double_symbol calls.
11766         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11767         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11768         strong alias of __ldexpl.
11769         (scalbnl): Define using long_double_symbol.
11770         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11771         Remove alias.
11772         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11773         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11774         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11775         (scalbln_test_data): Add more errno expectations.
11776
11777 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11778
11779         Cache the host port like we cache the task port.  This way we do not
11780         need to call the kernel just to get the port.  Furthermore, we no
11781         longer increase the reference count on every invocation of
11782         `mach_host_self'.
11783
11784         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11785         Protect declarations against the macro expansion.
11786         * mach/mach_init.c (__mach_host_self_): New variable.
11787         (mach_init): Initialize `__mach_host_self_'.
11788         * mach/mach_init.h (__mach_host_self_): New declaration.
11789         (__mach_host_self, mach_host_self): New macros.
11790         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11791         Release reference.
11792
11793 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11794
11795         [BZ #4404]
11796         * po/de.po: Update from Translation Project.
11797
11798         [BZ #16415]
11799         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11800         (__expm1l): Remove code to handle positive infinity and overflow.
11801         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11802         variable.
11803         (__expm1l): Remove code to handle positive infinity and overflow.
11804
11805 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11806             Paul Pluzhnikov  <ppluzhnikov@google.com>
11807
11808         [BZ #18872]
11809         * stdio-common/Makefile (tst-printf-bz18872): New test.
11810         (tst-printf-bz18872-mem.out): Likewise.
11811         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11812         * stdio-common/vfprintf.c: Fix memory leaks.
11813
11814 2015-09-16  Andreas Schwab  <schwab@suse.de>
11815
11816         [BZ #17244]
11817         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11818         Remove extra va_start/va_end calls.
11819
11820         [BZ #17243]
11821         * posix/execl.c (execl): Add missing va_end.
11822         * posix/execle.c (execle): Likewise.
11823         * posix/execlp.c (execlp): Likewise.
11824
11825 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11826
11827         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11828         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11829
11830 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11831
11832         [BZ #18967]
11833         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11834         undefine around includes of <bits/mathcalls.h>.
11835         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11836         not declare function.
11837         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11838         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11839         (scalb): Likewise.
11840         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11841         not define macro.
11842         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11843         variable.
11844         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11845         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11846         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11847
11848         [BZ #18857]
11849         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11850         return non-finite argument without doing ordered comparisons on
11851         it.
11852
11853         [BZ #16296]
11854         * math/fenv.h (fegetround): Use __attribute_pure__.
11855         * include/fenv.h (__fegetround): Likewise.
11856
11857         [BZ #18595]
11858         * math/s_ctan.c (__ctan): Force underflow exception for results
11859         whose real or imaginary part has small absolute value.
11860         * math/s_ctanf.c (__ctanf): Likewise.
11861         * math/s_ctanh.c (__ctanh): Likewise.
11862         * math/s_ctanhf.c (__ctanhf): Likewise.
11863         * math/s_ctanhl.c (__ctanhl): Likewise.
11864         * math/s_ctanl.c (__ctanl): Likewise.
11865         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11866         and ctanh.  Add more tests of ctan and ctanh.
11867
11868         [BZ #15918]
11869         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11870         handling of cases where one argument is an infinity.
11871
11872         [BZ #18875]
11873         [BZ #18966]
11874         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11875         (MO): New macro.
11876         (__ieee754_exp10): For small results, force underflow exception
11877         and remove excess range and precision from return value.
11878         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11879         (MO): New macro.
11880         (__ieee754_exp10f): For small results, force underflow exception
11881         and remove excess range and precision from return value.
11882         * math/auto-libm-test-in: Add more tests of exp10.
11883         * math/auto-libm-test-out: Regenerated.
11884
11885 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11886
11887         [BZ #18875]
11888         [BZ #18961]
11889         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11890         (MO): New macro.
11891         (__ieee754_exp): For small results, force underflow exception and
11892         remove excess range and precision from return value.
11893         (__exp_finite): Likewise.
11894         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11895         (MO): New macro.
11896         (__ieee754_expf): For small results, force underflow exception and
11897         remove excess range and precision from return value.
11898         (__expf_finite): Likewise.
11899         * math/auto-libm-test-in: Add more tests of exp.
11900         * math/auto-libm-test-out: Regenerated.
11901
11902         [BZ #16521]
11903         [BZ #18875]
11904         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11905         small results.
11906         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11907         (MO): New macro.
11908         (__ieee754_exp2): For small results, force underflow exception and
11909         remove excess range and precision from return value.
11910         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11911         (MO): New macro.
11912         (__ieee754_exp2f): For small results, force underflow exception
11913         and remove excess range and precision from return value.
11914         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11915         (MO): New macro.
11916         (__ieee754_exp2l): Force underflow exception for small results.
11917         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11918         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11919         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11920         (MO): New macro.
11921         (__ieee754_exp2l): Force underflow exception for small results.
11922         * math/auto-libm-test-in: Add more tests or exp2.
11923         * math/auto-libm-test-out: Regenerated.
11924
11925 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11926
11927         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11928
11929         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11930         /dev/null.
11931
11932 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11933
11934         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11935         io fs process)): Drop spurious backslash.
11936
11937 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11938
11939         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11940         Use sysinfo system call instead of parsing /proc/meminfo.
11941         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11942         Likewise.
11943
11944 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11945
11946         [BZ #16985]
11947         * programs/localedef.c (main): Display argv[remaining] when
11948         output_path is NULL.
11949
11950 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11951
11952         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11953         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11954         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11955         tanh.
11956         * math/auto-libm-test-out: Regenerated.
11957         * sysdeps/i386/fpu/libm-test-ulps: Update.
11958         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11959         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11961
11962 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11963
11964         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11965         Use 'override' keyword to freeze the value here, preventing
11966         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11967
11968 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11969
11970         [BZ #14912]
11971         * sysdeps/aarch64/bits/atomic.h: Move to ...
11972         * sysdeps/aarch64/atomic-machine.h: ...here.
11973         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11974         _AARCH64_ATOMIC_MACHINE_H.
11975         * sysdeps/alpha/bits/atomic.h: Move to ...
11976         * sysdeps/alpha/atomic-machine.h: ...here.
11977         * sysdeps/arm/bits/atomic.h: Move to ...
11978         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11979         * bits/atomic.h: Move to ...
11980         * sysdeps/generic/atomic-machine.h: ...here.
11981         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11982         * sysdeps/i386/bits/atomic.h: Move to ...
11983         * sysdeps/i386/atomic-machine.h: ...here.
11984         * sysdeps/ia64/bits/atomic.h: Move to ...
11985         * sysdeps/ia64/atomic-machine.h: ...here.
11986         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11987         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11988         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11989         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11990         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11991         * sysdeps/microblaze/bits/atomic.h: Move to ...
11992         * sysdeps/microblaze/atomic-machine.h: ...here.
11993         * sysdeps/mips/bits/atomic.h: Move to ...
11994         * sysdeps/mips/atomic-machine.h: ...here.
11995         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11996         * sysdeps/powerpc/bits/atomic.h: Move to ...
11997         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11998         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11999         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12000         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12001         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12002         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12003         <atomic-machine.h> instead of <bits/atomic.h>.
12004         * sysdeps/s390/bits/atomic.h: Move to ...
12005         * sysdeps/s390/atomic-machine.h: ...here.
12006         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12007         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12008         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12009         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12010         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12011         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12012         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12013         * sysdeps/tile/bits/atomic.h: Move to ...
12014         * sysdeps/tile/atomic-machine.h: ...here.
12015         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12016         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12017         <sysdeps/tile/atomic-machine.h> instead of
12018         <sysdeps/tile/bits/atomic.h>.
12019         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12020         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12021         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12022         <sysdeps/tile/atomic-machine.h> instead of
12023         <sysdeps/tile/bits/atomic.h>.
12024         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12025         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12026         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12027         <sysdeps/arm/atomic-machine.h> instead of
12028         <sysdeps/arm/bits/atomic.h>.
12029         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12030         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12031         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12032         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12033         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12034         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12035         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12036         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12037         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12038         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12039         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12040         * sysdeps/x86_64/bits/atomic.h: Move to ...
12041         * sysdeps/x86_64/atomic-machine.h: ...here.
12042         * include/atomic.h: Include <atomic-machine.h> instead of
12043         <bits/atomic.h>.
12044
12045         * sysdeps/mips/mips32/libm-test-ulps: Update.
12046         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12047
12048         [BZ #18952]
12049         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12050         not convert non-integer negative arguments to int to determine the
12051         value of signgam.
12052         * math/auto-libm-test-in: Add more tests of lgamma.
12053         * math/auto-libm-test-out: Regenerated.
12054
12055         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12056         cosh, csqrt, erfc, expm1 and lgamma.
12057         * math/auto-libm-test-out: Regenerated.
12058         * sysdeps/i386/fpu/libm-test-ulps: Update.
12059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12060
12061 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12062
12063         [BZ #2542]
12064         [BZ #2543]
12065         [BZ #2558]
12066         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12067         __lgamma_neg for arguments from -28.0 to -2.0.
12068         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12069         __lgamma_negf for arguments from -15.0 to -2.0.
12070         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12071         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12072         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12073         Call __lgamma_negl for arguments from -33.0 to -2.0.
12074         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12075         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12076         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12077         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12078         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12079         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12080         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12081         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12082         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12083         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12084         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12085         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12086         (__lgamma_neg): Likewise.
12087         (__lgamma_negl): Likewise.
12088         (__lgamma_product): Likewise.
12089         (__lgamma_productl): Likewise.
12090         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12091         * math/auto-libm-test-in: Add more tests of lgamma.
12092         * math/auto-libm-test-out: Regenerated.
12093         * sysdeps/i386/fpu/libm-test-ulps: Update.
12094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12095
12096 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12097
12098         [BZ #18675]
12099         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12100
12101 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12102
12103         [BZ #14912]
12104         * bits/libc-lock.h: Move to ...
12105         * sysdeps/generic/libc-lock.h: ...here.
12106         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12107         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12108         * sysdeps/mach/hurd/libc-lock.h: ...here.
12109         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12110         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12111         * sysdeps/mach/bits/libc-lock.h: Move to ...
12112         * sysdeps/mach/libc-lock.h: ...here.
12113         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12114         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12115         * sysdeps/nptl/libc-lock.h: ...here.
12116         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12117         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12118         * sysdeps/nptl/libc-lockP.h: ...here.
12119         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12120         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12121         <bits/libc-lock.h>.
12122         * dirent/scandir-tail.c: Likewise.
12123         * dlfcn/dlerror.c: Likewise.
12124         * elf/dl-close.c: Likewise.
12125         * elf/dl-iteratephdr.c: Likewise.
12126         * elf/dl-lookup.c: Likewise.
12127         * elf/dl-open.c: Likewise.
12128         * elf/dl-support.c: Likewise.
12129         * elf/dl-writev.h: Likewise.
12130         * elf/rtld.c: Likewise.
12131         * grp/fgetgrent.c: Likewise.
12132         * gshadow/fgetsgent.c: Likewise.
12133         * gshadow/sgetsgent.c: Likewise.
12134         * iconv/gconv_conf.c: Likewise.
12135         * iconv/gconv_db.c: Likewise.
12136         * iconv/gconv_dl.c: Likewise.
12137         * iconv/gconv_int.h: Likewise.
12138         * iconv/gconv_trans.c: Likewise.
12139         * include/link.h: Likewise.
12140         * inet/getnameinfo.c: Likewise.
12141         * inet/getnetgrent.c: Likewise.
12142         * inet/getnetgrent_r.c: Likewise.
12143         * intl/bindtextdom.c: Likewise.
12144         * intl/dcigettext.c: Likewise.
12145         * intl/finddomain.c: Likewise.
12146         * intl/gettextP.h: Likewise.
12147         * intl/loadmsgcat.c: Likewise.
12148         * intl/localealias.c: Likewise.
12149         * intl/textdomain.c: Likewise.
12150         * libidn/idn-stub.c: Likewise.
12151         * libio/libioP.h: Likewise.
12152         * locale/duplocale.c: Likewise.
12153         * locale/freelocale.c: Likewise.
12154         * locale/newlocale.c: Likewise.
12155         * locale/setlocale.c: Likewise.
12156         * login/getutent_r.c: Likewise.
12157         * login/getutid_r.c: Likewise.
12158         * login/getutline_r.c: Likewise.
12159         * login/utmp-private.h: Likewise.
12160         * login/utmpname.c: Likewise.
12161         * malloc/mtrace.c: Likewise.
12162         * misc/efgcvt.c: Likewise.
12163         * misc/error.c: Likewise.
12164         * misc/fstab.c: Likewise.
12165         * misc/getpass.c: Likewise.
12166         * misc/mntent.c: Likewise.
12167         * misc/syslog.c: Likewise.
12168         * nis/nis_call.c: Likewise.
12169         * nis/nis_callback.c: Likewise.
12170         * nis/nss-default.c: Likewise.
12171         * nis/nss_compat/compat-grp.c: Likewise.
12172         * nis/nss_compat/compat-initgroups.c: Likewise.
12173         * nis/nss_compat/compat-pwd.c: Likewise.
12174         * nis/nss_compat/compat-spwd.c: Likewise.
12175         * nis/nss_nis/nis-alias.c: Likewise.
12176         * nis/nss_nis/nis-ethers.c: Likewise.
12177         * nis/nss_nis/nis-grp.c: Likewise.
12178         * nis/nss_nis/nis-hosts.c: Likewise.
12179         * nis/nss_nis/nis-network.c: Likewise.
12180         * nis/nss_nis/nis-proto.c: Likewise.
12181         * nis/nss_nis/nis-pwd.c: Likewise.
12182         * nis/nss_nis/nis-rpc.c: Likewise.
12183         * nis/nss_nis/nis-service.c: Likewise.
12184         * nis/nss_nis/nis-spwd.c: Likewise.
12185         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12186         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12187         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12188         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12189         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12190         * nis/nss_nisplus/nisplus-network.c: Likewise.
12191         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12192         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12193         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12194         * nis/nss_nisplus/nisplus-service.c: Likewise.
12195         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12196         * nis/ypclnt.c: Likewise.
12197         * nptl/libc_pthread_init.c: Likewise.
12198         * nss/getXXbyYY.c: Likewise.
12199         * nss/getXXent.c: Likewise.
12200         * nss/getXXent_r.c: Likewise.
12201         * nss/nss_db/db-XXX.c: Likewise.
12202         * nss/nss_db/db-netgrp.c: Likewise.
12203         * nss/nss_db/nss_db.h: Likewise.
12204         * nss/nss_files/files-XXX.c: Likewise.
12205         * nss/nss_files/files-alias.c: Likewise.
12206         * nss/nsswitch.c: Likewise.
12207         * posix/regex_internal.h: Likewise.
12208         * posix/wordexp.c: Likewise.
12209         * pwd/fgetpwent.c: Likewise.
12210         * resolv/res_hconf.c: Likewise.
12211         * resolv/res_libc.c: Likewise.
12212         * shadow/fgetspent.c: Likewise.
12213         * shadow/lckpwdf.c: Likewise.
12214         * shadow/sgetspent.c: Likewise.
12215         * socket/opensock.c: Likewise.
12216         * stdio-common/reg-modifier.c: Likewise.
12217         * stdio-common/reg-printf.c: Likewise.
12218         * stdio-common/reg-type.c: Likewise.
12219         * stdio-common/vfprintf.c: Likewise.
12220         * stdio-common/vfscanf.c: Likewise.
12221         * stdlib/abort.c: Likewise.
12222         * stdlib/cxa_atexit.c: Likewise.
12223         * stdlib/fmtmsg.c: Likewise.
12224         * stdlib/random.c: Likewise.
12225         * stdlib/setenv.c: Likewise.
12226         * string/strsignal.c: Likewise.
12227         * sunrpc/auth_none.c: Likewise.
12228         * sunrpc/bindrsvprt.c: Likewise.
12229         * sunrpc/create_xid.c: Likewise.
12230         * sunrpc/key_call.c: Likewise.
12231         * sunrpc/rpc_thread.c: Likewise.
12232         * sysdeps/arm/backtrace.c: Likewise.
12233         * sysdeps/generic/ldsodefs.h: Likewise.
12234         * sysdeps/generic/stdio-lock.h: Likewise.
12235         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12236         * sysdeps/i386/backtrace.c: Likewise.
12237         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12238         * sysdeps/m68k/backtrace.c: Likewise.
12239         * sysdeps/mach/hurd/cthreads.c: Likewise.
12240         * sysdeps/mach/hurd/dirstream.h: Likewise.
12241         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12242         * sysdeps/nptl/malloc-machine.h: Likewise.
12243         * sysdeps/nptl/stdio-lock.h: Likewise.
12244         * sysdeps/posix/dirstream.h: Likewise.
12245         * sysdeps/posix/getaddrinfo.c: Likewise.
12246         * sysdeps/posix/system.c: Likewise.
12247         * sysdeps/pthread/aio_suspend.c: Likewise.
12248         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12249         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12250         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12251         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12252         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12253         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12254         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12255         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12256         * sysdeps/unix/sysv/linux/system.c: Likewise.
12257         * sysdeps/x86_64/backtrace.c: Likewise.
12258         * time/alt_digit.c: Likewise.
12259         * time/era.c: Likewise.
12260         * time/tzset.c: Likewise.
12261         * wcsmbs/wcsmbsload.c: Likewise.
12262         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12263         instead of <bits/libc-lock.h> in comment.
12264
12265 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12266
12267         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12268         Only use .set mips2 if the current ISA is below mips2.
12269         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12270         Likewise.
12271         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12272         mips32r2 if the current ISA is below mips32r2.
12273         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12274         (TLS_IE): Updated to use the TLD_RDHWR macro.
12275         (TLS_LE): Likewise.
12276         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12277         __ASSEMBLER__ condition.
12278
12279 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12280
12281         Fix parallel build of before-compile targets.
12282
12283         * sysdeps/mach/Makefile ($(patsubst
12284         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12285         mach-before-compile target.
12286         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12287         io fs process)): Move rule to dedicated hurd-before-compile target.
12288
12289 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12290
12291         Fix rules generating headers in hurd/ and mach/ when initial make call
12292         has subdir= explicitly set.
12293
12294         * sysdeps/mach/Makefile ($(patsubst
12295         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12296         calling $(MAKE).
12297         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12298         io fs process)): Force subdir to hurd when calling $(MAKE).
12299         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12300         subdir to mach when calling $(MAKE).
12301
12302 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12303
12304         Check sysheaders when looking for Mach and Hurd headers
12305
12306         * sysdeps/mach/configure.ac: Add sysheaders check.
12307         * sysdeps/mach/configure: Regenerate.
12308         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12309         * sysdeps/mach/hurd/configure: Regenerate.
12310
12311 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12312
12313         [BZ #18921]
12314         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12315         Fix inverted sense of test of 'o_directory_works' value.
12316         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12317         Bernhard Voelker <mail@bernhard-voelker.de>.
12318
12319 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12320
12321         [BZ #14912]
12322         * bits/linkmap.h: Move to ...
12323         * sysdeps/generic/linkmap.h: ...here.
12324         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12325         * sysdeps/aarch64/linkmap.h: ...here.
12326         * sysdeps/arm/bits/linkmap.h: Move to ...
12327         * sysdeps/arm/linkmap.h: ...here.
12328         * sysdeps/hppa/bits/linkmap.h: Move to ...
12329         * sysdeps/hppa/linkmap.h: ...here.
12330         * sysdeps/ia64/bits/linkmap.h: Move to ...
12331         * sysdeps/ia64/linkmap.h: ...here.
12332         * sysdeps/mips/bits/linkmap.h: Move to ...
12333         * sysdeps/mips/linkmap.h: ...here.
12334         * sysdeps/s390/bits/linkmap.h: Move to ...
12335         * sysdeps/s390/linkmap.h: ...here.
12336         * sysdeps/sh/bits/linkmap.h: Move to ...
12337         * sysdeps/sh/linkmap.h: ...here.
12338         * sysdeps/x86/bits/linkmap.h: Move to ...
12339         * sysdeps/x86/linkmap.h: ...here.
12340         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12341
12342 2015-09-04  Andreas Schwab  <schwab@suse.de>
12343
12344         [BZ #18635]
12345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12346         (__makecontext): Terminate FDE before return label.
12347         (__novec_makecontext): Likewise.
12348
12349 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12350
12351         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12352         first member of struct sv in syscall macro.
12353
12354 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12355
12356         [BZ #14912]
12357         * bits/stdio-lock.h: Move to ...
12358         * sysdeps/generic/stdio-lock.h: ...here.
12359         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12360         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12361         * sysdeps/nptl/stdio-lock.h: ...here.
12362         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12363         * include/libio.h: Include <stdio-lock.h> instead of
12364         <bits/stdio-lock.h>.
12365         * sysdeps/nptl/fork.c: Likewise.
12366         * sysdeps/pthread/flockfile.c: Likewise.
12367         * sysdeps/pthread/ftrylockfile.c: Likewise.
12368         * sysdeps/pthread/funlockfile.c: Likewise.
12369
12370         [BZ #14912]
12371         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12372         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12373         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12374         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12375         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12376         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12377         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12378
12379 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12380
12381         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12382         (test-xfail-tst-protected1b): New variable.
12383
12384 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12385
12386         [BZ #14912]
12387         * bits/libc-tsd.h: Move to ...
12388         * sysdeps/generic/libc-tsd.h: ...here.
12389         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12390         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12391         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12392         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12393         * include/ctype.h: Include <libc-tsd.h> instead of
12394         <bits/libc-tsd.h>.
12395         * include/rpc/rpc.h: Likewise.
12396         * locale/localeinfo.h: Likewise.
12397         * sunrpc/rpc_thread.c: Likewise.
12398         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12399         * sysdeps/nptl/malloc-machine.h: Likewise.
12400
12401         * Makefile (headers): Remove bits/libc-lock.h.
12402         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12403
12404         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12405         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12406         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12407         <bits/stdio-lock.h>.
12408         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12409         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12410
12411 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12412
12413         [BZ #18757]
12414         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12415         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12416         BZ #18757.
12417
12418 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12419
12420         * malloc/mtrace.pl: Filter out NULL entries.
12421
12422 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12423
12424         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12425         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12426         macro.
12427
12428         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12429         (TCP_CC_INFO): Likewise.
12430         (TCP_SAVE_SYN): Likewise.
12431         (TCP_SAVED_SYN): Likewise.
12432
12433 2015-08-31  Brett Neumeier <brett@neumeier.us>
12434
12435         [BZ #18870]
12436         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12437
12438 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12439
12440         [BZ #18873]
12441         Fix broken overflow check in posix_fallocate
12442         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12443         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12444         Fix parenthesization typo.
12445
12446 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12447
12448         [BZ #18887]
12449         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12450         tst-mntent-blank-passno.
12451         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12452         * misc/tst-mntent-blank-corrupt.c: New test.
12453         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12454         * misc/tst-mntent.c (do_test): ... here.
12455
12456 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12457
12458         [BZ #4404]
12459         * po/de.po: Fix SIGALRM typo.
12460
12461 2015-08-28  James Perkins  <james@loowit.net>
12462
12463         * time/tst-strptime2.c (tests): Replace short list of test
12464         strings for strptime %z specifier with code which exhaustively
12465         tests every combination of sign and 0 to 5 digits. Tests for
12466         rejection of invalid strings.
12467
12468 2015-08-28  James Perkins  <james@loowit.net>
12469
12470         [BZ #16141]
12471         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12472         calculation, removing incorrect decimal time rounding, so that
12473         all minute values result in a valid seconds value.
12474         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12475         offset range limits to UTC-99:59 through UTC+99:59 to parse
12476         current and historical use cases.
12477         * time/tst-strptime2.c (tests): Modify and add tests for the
12478         strptime %z input field descriptor, specifically conversion of
12479         minutes to seconds and validating an offset range of -9959 to
12480         +9959.
12481
12482 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12483             Dmitry V. Levin  <ldv@altlinux.org>
12484
12485         [BZ #18877]
12486         * posix/Makefile (tests): Add tst-mmap-offset.
12487         * posix/tst-mmap.c: New file.
12488         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12489         offset calculation for negative values.
12490
12491 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12492
12493         * sysdeps/i386/init-arch.h: New file.
12494         * sysdeps/i386/i586/init-arch.h: Likewise.
12495         * sysdeps/i386/i686/init-arch.h: Likewise.
12496         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12497         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12498         * sysdeps/x86/cpu-features.h (bit_I586): New.
12499         (bit_I686): Likewise.
12500         (bit_CX8): Likewise.
12501         (bit_CMOV): Likewise.
12502         (index_CX8): Likewise.
12503         (index_CMOV): Likewise.
12504         (index_I586): Likewise.
12505         (index_I686): Likewise.
12506         (reg_CX8): Likewise.
12507         (reg_CMOV): Likewise.
12508         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12509         available at compile-time.
12510         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12511         available at compile-time.
12512         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12513         (USE_I686): Likewise.
12514
12515 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12516
12517         * sysdeps/i386/bcopy.S: New file.
12518         * sysdeps/i386/bzero.S: Likewise.
12519         * sysdeps/i386/memcpy.S: Likewise.
12520         * sysdeps/i386/memmove.S: Likewise.
12521         * sysdeps/i386/mempcpy.S: Likewise.
12522         * sysdeps/i386/memset.S: Likewise.
12523         * sysdeps/i386/bzero.c: Removed.
12524         * sysdeps/i386/memset.c: Likewise.
12525         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12526         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12527         * sysdeps/i386/i586/memset_chk.S: Likewise.
12528         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12529         * sysdeps/i386/memcpy_chk.S: Here.
12530         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12531         * sysdeps/i386/memmove_chk.S: Here.
12532         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12533         * sysdeps/i386/mempcpy_chk.S: Likewise.
12534         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12535         * sysdeps/i386/memset_chk.S: Likewise.
12536
12537 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12538
12539         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12540         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12541         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12542         * soft-fp/fmadf4.c: Ditto.
12543         * soft-fp/fmatf4.c: Ditto.
12544
12545 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12546
12547         * sysdeps/i386/i586/Implies: Removed.
12548         * sysdeps/i386/i686/Implies: Likewise.
12549
12550 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12551
12552         * sysdeps/i386/i486/strlen.S: Moved to ...
12553         * sysdeps/i386/strlen.S: Here.
12554
12555 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12556
12557         * sysdeps/i386/i486/strcat.S: Moved to ...
12558         * sysdeps/i386/strcat.S: Here.
12559
12560 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12561
12562         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12563         * sysdeps/i386/pthread_spin_trylock.S: Here.
12564         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12565         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12566
12567 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12568
12569         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12570         * sysdeps/i386/string-inlines.c: Here.
12571
12572 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12573
12574         * sysdeps/i386/i486/htonl.S: Moved ...
12575         * sysdeps/i386/htonl.S: here.
12576
12577 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12578
12579         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12580         * sysdeps/i386/bits/atomic.h: Here.
12581
12582 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12583
12584         * sysdeps/i386/i486/Versions: Removed.
12585
12586 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12587
12588         [BZ #2898]
12589         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12590         Based on patch by Aurelien Jarno.
12591
12592 2015-08-26  Stan Shebs  <stanshebs@google.com>
12593
12594         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12595         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12596
12597 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12598
12599         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12600         * sysdeps/powerpc/dl-procinfo.c:
12601         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12602         feature so it shows when LD_SHOW_AUXV=1.
12603
12604 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12605
12606         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12607         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12608         definition.  ISA 2.07B no longer requires full sync.
12609
12610 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12611
12612         [BZ #18863]
12613         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12614         (si_call_addr): Define.
12615         (si_syscall): Define.
12616         (si_arch): Define.
12617
12618 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12619
12620         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12621         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12622         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12623         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12624         (__memset_zero_constant_len_parameter): New.
12625         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12626         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12627         (__memset_zero_constant_len_parameter): Don't define if
12628         __memset_chk or USE_AS_BZERO are defined.
12629
12630         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12631         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12632         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12633
12634         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12635         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12636         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12637         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12638         comments.
12639         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12640         -mno-mmx for $(all-rtld-routines).
12641         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12642         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12643         i386.
12644
12645 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12646
12647         * sysdeps/generic/unwind.h
12648         (_Unwind_Word): Use __mode__(__unwind_word__)
12649         instead of __mode__(__word__).
12650         (_Unwind_Sword): Likewise.
12651
12652         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12653         (MAX_NEEDED_INPUT): New define.
12654         (MAX_NEEDED_OUTPUT): New define.
12655
12656         * NEWS: New item for IBM z13 string optimizations.
12657
12658         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12659         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12660         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12661         * sysdeps/s390/multiarch/Makefile
12662         (sysdep_routines): Add memrchr functions.
12663         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12664         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12665
12666         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12667         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12668         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12669         * sysdeps/s390/multiarch/Makefile
12670         (sysdep_routines): Add wmemcmp functions.
12671         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12672         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12673         * benchtests/bench-wmemcmp.c: New File.
12674         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12675
12676         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12677         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12678         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12679         * sysdeps/s390/multiarch/Makefile
12680         (sysdep_routines): Add wmemset functions.
12681         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12682         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12683         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12684         * string/test-memset.c: Add wmemset support.
12685         * wcsmbs/test-wmemset.c: New File.
12686         * wcsmbs/Makefile (strop-tests): Add wmemset.
12687         * benchtests/bench-memset.c: Add wmemset support.
12688         * benchtests/bench-wmemset.c: New File.
12689         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12690
12691         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12692         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12693         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12694         * sysdeps/s390/multiarch/Makefile
12695         (sysdep_routines): Add memccpy functions.
12696         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12697         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12698         * string/memccpy.c: Use MEMCCPY if defined.
12699
12700         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12701         * sysdeps/s390/multiarch/memchr.c: Likewise.
12702         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12703         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12704         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12705         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12706         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12707         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12708         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12709         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12710         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12711         and rawmemchr functions.
12712         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12713         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12714         and wmemchr.
12715         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12716         * string/test-memchr.c: Add wmemchr support.
12717         * wcsmbs/test-wmemchr.c: New File.
12718         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12719         * benchtests/bench-memchr.c: Add wmemchr support.
12720         * benchtests/bench-wmemchr.c: New File.
12721         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12722
12723         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12724         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12725         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12726         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12727         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12728         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12729         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12730         wcscspn functions.
12731         * sysdeps/s390/multiarch/ifunc-impl-list.c
12732         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12733         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12734         * string/test-strcspn.c: Add wcscspn support.
12735         * wcsmbs/test-wcscspn.c: New File.
12736         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12737         * benchtests/bench-strcspn.c: Add wcscspn support.
12738         * benchtests/bench-wcscspn.c: New File.
12739         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12740
12741         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12742         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12743         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12744         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12745         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12746         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12747         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12748         wcspbrk functions.
12749         * sysdeps/s390/multiarch/ifunc-impl-list.c
12750         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12751         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12752         * string/test-strpbrk.c: Add wcspbrk support.
12753         * wcsmbs/test-wcspbrk.c: New File.
12754         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12755         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12756         * benchtests/bench-wcspbrk.c: New File.
12757         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12758
12759         * sysdeps/s390/multiarch/strspn-c.c: New File.
12760         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12761         * sysdeps/s390/multiarch/strspn.c: Likewise.
12762         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12763         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12764         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12765         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12766         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12767         wcsspn functions.
12768         * sysdeps/s390/multiarch/ifunc-impl-list.c
12769         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12770         * string/test-strspn.c: Add wcsspn support.
12771         * wcsmbs/test-wcsspn.c: New File.
12772         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12773         * benchtests/bench-strspn.c: Add wcsspn support.
12774         * benchtests/bench-wcsspn.c: New File.
12775         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12776
12777         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12778         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12779         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12780         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12781         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12782         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12783         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12784         wcsrchr functions.
12785         * sysdeps/s390/multiarch/ifunc-impl-list.c
12786         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12787         * benchtests/bench-wcsrchr.c: New File.
12788         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12789
12790         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12791         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12792         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12793         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12794         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12795         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12796         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12797         wcschrnul functions.
12798         * sysdeps/s390/multiarch/ifunc-impl-list.c
12799         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12800         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12801         * string/test-strchr.c: Add wcschrnul support.
12802         * wcsmbs/test-wcschrnul.c: New File.
12803         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12804         * benchtests/bench-strchr.c: Add wcschrnul support.
12805         * benchtests/bench-wcschrnul.c: New File.
12806         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12807
12808         * sysdeps/s390/multiarch/strchr-c.c: New File.
12809         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12810         * sysdeps/s390/multiarch/strchr.c: Likewise.
12811         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12812         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12813         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12814         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12815         wcschr functions.
12816         * sysdeps/s390/multiarch/ifunc-impl-list.c
12817         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12818         * string/strchr.c (STRCHR): Define and use macro.
12819         * benchtests/bench-wcschr.c: New File.
12820         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12821
12822         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12823         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12824         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12825         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12826         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12827         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12828         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12829         wcsncmp functions.
12830         * sysdeps/s390/multiarch/ifunc-impl-list.c
12831         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12832         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12833         * benchtests/bench-strncmp.c: Add wcsncmp support.
12834         * benchtests/bench-wcsncmp.c: New File.
12835         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12836
12837         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12838         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12839         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12840         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12841         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12842         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12843         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12844         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12845         wcscmp functions.
12846         * sysdeps/s390/multiarch/ifunc-impl-list.c
12847         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12848         * string/strcmp.c (STRCMP): Define and use macro.
12849         * benchtests/bench-wcscmp.c: New File.
12850         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12851         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12852         instead of _HAVE_STRING_ARCH_memchr.
12853
12854         * sysdeps/s390/multiarch/strncat-c.c: New File.
12855         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12856         * sysdeps/s390/multiarch/strncat.c: Likewise.
12857         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12858         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12859         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12860         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12861         wcsncat functions.
12862         * sysdeps/s390/multiarch/ifunc-impl-list.c
12863         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12864         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12865         * string/test-strncat.c: Add wcsncat support.
12866         * wcsmbs/test-wcsncat.c: New File.
12867         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12868         * benchtests/bench-strncat.c: Add wcsncat support.
12869         * benchtests/bench-wcsncat.c: New File.
12870         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12871
12872         * sysdeps/s390/multiarch/strcat-c.c: New File.
12873         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12874         * sysdeps/s390/multiarch/strcat.c: Likewise.
12875         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12876         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12877         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12878         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12879         wcscat functions.
12880         * sysdeps/s390/multiarch/ifunc-impl-list.c
12881         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12882         * string/strcat.c (STRCAT): Define and use macro.
12883         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12884         * string/test-strcat.c: Add wcscat support.
12885         * wcsmbs/test-wcscat.c: New File.
12886         * wcsmbs/Makefile (strop-tests): Add wcscat.
12887         * benchtests/bench-strcat.c: Add wcscat support.
12888         * benchtests/bench-wcscat.c: New File.
12889         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12890
12891         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12892         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12893         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12894         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12895         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12896         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12897         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12898         wcpncpy functions.
12899         * sysdeps/s390/multiarch/ifunc-impl-list.c
12900         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12901         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12902         * string/test-stpncpy.c: Add wcpncpy support.
12903         * wcsmbs/test-wcpncpy.c: New File.
12904         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12905         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12906         * benchtests/bench-wcpncpy.c: New File.
12907         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12908
12909         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12910         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12911         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12912         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12913         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12914         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12915         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12916         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12917         wcsncpy functions.
12918         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12919         * sysdeps/s390/multiarch/ifunc-impl-list.c
12920         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12921         * string/test-strncpy.c: Add wcsncpy support.
12922         * wcsmbs/test-wcsncpy.c: New File.
12923         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12924         * benchtests/bench-strncpy.c: Add wcsncpy support.
12925         * benchtests/bench-wcsncpy.c: New File.
12926         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12927
12928         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12929         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12930         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12931         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12932         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12933         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12934         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12935         wcpcpy functions.
12936         * string/stpcpy.c: Use STPCPY if defined.
12937         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12938         * sysdeps/s390/multiarch/ifunc-impl-list.c
12939         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12940         * string/test-stpcpy.c: Add wcpcpy support.
12941         * wcsmbs/test-wcpcpy.c: New File.
12942         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12943         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12944         * benchtests/bench-wcpcpy.c: New File.
12945         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12946
12947         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12948         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12949         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12950         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12951         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12952         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12953         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12954         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12955         wcscpy functions.
12956         * sysdeps/s390/multiarch/ifunc-impl-list.c
12957         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12958         * benchtests/bench-wcscpy.c: New File.
12959         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12960
12961         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12962         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12963         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12964         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12965         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12966         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12967         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12968         wcsnlen functions.
12969         * sysdeps/s390/multiarch/ifunc-impl-list.c
12970         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12971         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12972         * string/test-strnlen.c: Add wcsnlen support.
12973         * wcsmbs/test-wcsnlen.c: New File.
12974         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12975         * benchtests/bench-strnlen.c: Add wcsnlen support.
12976         * benchtests/bench-wcsnlen.c: New File.
12977         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12978
12979         * sysdeps/s390/multiarch/Makefile: New File.
12980         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12981         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12982         * sysdeps/s390/multiarch/strlen.c: Likewise.
12983         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12984         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12985         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12986         * string/strlen.c (STRLEN): Define and use macro.
12987         * sysdeps/s390/multiarch/ifunc-impl-list.c
12988         (IFUNC_VX_IMPL): New macro function.
12989         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12990         * benchtests/Makefile (wcsmbs-bench): New variable.
12991         (string-bench-all): Added wcsmbs-bench.
12992         * benchtests/bench-wcslen.c: New File.
12993
12994         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12995         s390_vx_libc_ifunc2): New macro function.
12996
12997         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12998         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12999         assembler support.
13000         * sysdeps/s390/configure: Regenerated.
13001
13002         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13003         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13004
13005         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13006         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13007         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13008
13009         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13010         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13011         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13012         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13013         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13014         (memcmp, bcmp): Use __memcmp_default as alias source.
13015         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13016         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13017         Rename to __memcmp_default.
13018         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13019         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13020         (memcpy): Use __memcpy_default as alias source.
13021         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13022         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13023         Rename to __memcpy_default.
13024         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13025         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13026         (memset): Use __memset_default as alias source.
13027         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13028         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13029         Rename to __memset_default.
13030         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13031         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13032         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13033         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13034         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13035         (memcmp, bcmp): Use __memcmp_default as alias source.
13036         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13037         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13038         Rename to __memcmp_default.
13039         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13040         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13041         (memcpy): Use __memcpy_default as alias source.
13042         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13043         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13044         Rename to __memcpy_default.
13045         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13046         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13047         (memset): Use __memset_default as alias source.
13048         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13049         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13050         Rename to __memset_default.
13051         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13052         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13053
13054         [BZ #18610]
13055         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13056         __ieee_instruction_pointer to __unused.
13057         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13058         __ieee_instruction_pointer.
13059         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13060         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13061         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13062         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13063         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13064         Mark dxc-field as reserved.
13065
13066 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13067
13068         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13069         if the weak reference is not null.
13070
13071 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13072
13073         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13074
13075         [BZ #11214]
13076         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13077
13078 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13079
13080         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13081         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13082         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13083         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13084         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13085         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13086         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13087         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13088         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13089         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13090         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13091         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13092         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13093         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13094         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13095         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13096         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13097         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13098
13099 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13100
13101         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13102         register other than r0 for tabort, it has special meaning.
13103         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13104         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13105         transaction before starting syscall.
13106
13107 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13108
13109         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13110
13111 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13112
13113         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13114
13115         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13116         * sysdeps/x86_64/rtld-memset.S: Likewise.
13117         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13118         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13119         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13120         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13121
13122         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13123
13124 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13125
13126         * debug/strcpy_chk.c: Improve performance.
13127         * debug/stpcpy_chk.c: Likewise.
13128         * sysdeps/x86_64/strcpy_chk.S: Remove.
13129         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13130
13131         [BZ #18240]
13132         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13133
13134 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13135
13136         [BZ #15128]
13137         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13138         ifuncmain8.
13139         (modules-names): Add ifuncmod8.
13140         ($(objpfx)ifuncmain8): New rule.
13141         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13142         <cpuid.h>.
13143         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13144         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13145         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13146         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13147         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13148         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13149         * sysdeps/x86_64/ifuncmain8.c: New file.
13150         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13151         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13152         Removed.
13153         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13154         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13155         Change rtld_savespace_sse to __glibc_unused2.
13156         (RTLD_CHECK_FOREIGN_CALL): Removed.
13157         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13158         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13159         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13160
13161 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13162
13163         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13164
13165 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13166
13167         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13168         Unconditionally set __fpcr to avoid uninialized warning.
13169         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13170
13171 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13172
13173         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13174         is corrupt.
13175
13176         * malloc/arena.c (arena_get2): Drop unused argument.
13177         (arena_lock): Adjust.
13178         (arena_get_retry): Likewise.
13179
13180 2015-08-24  Andreas Schwab  <schwab@suse.de>
13181
13182         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13183         Don't define.
13184         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13185         (__ASSUME_IPC64): Don't undef.
13186         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13187         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13188         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13189         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13190         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13191         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13192         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13193         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13194         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13195         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13196         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13197         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13198         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13199         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13200         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13201         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13202         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13203         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13204         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13205         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13206         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13207
13208 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13209
13210         * manual/Makefile (install): Only build manual when perl is available.
13211
13212 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13213
13214         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13215         '#undef memcpy' by '#undef memchr'.
13216
13217 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13218
13219         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13220         memchr not point to the internal __GI_memchr implementation.
13221
13222 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13223
13224         * timezone/Makefile (CFLAGS-zdump.c): Remove
13225         -Wno-strict-prototypes.
13226         (CFLAGS-zic.c): Likewise.
13227         (CFLAGS-ialloc.c): Likewise.
13228         (CFLAGS-scheck.c): Likewise.
13229
13230         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13231         -Wno-error=undef.
13232
13233 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13234
13235         * i386/i686/multiarch/strcasestr-c.c: Removed.
13236         * x86_64/multiarch/strcasestr.c: Likewise.
13237         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13238         Remove strcasestr.
13239
13240 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13241
13242         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13243
13244         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13245         variables for high and low parts before possibly modifying them.
13246
13247 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13248
13249         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13250         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13251         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13252         of "multiarch/init-arch.h".
13253         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13254         * sysdeps/x86/init-arch.h: This.
13255
13256 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13257
13258         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13259         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13260
13261 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13262
13263         [BZ #17787]
13264         * manual/macros.texi: Add twoexp macro.
13265         * manual/filesys.texi: Fix exponents.
13266         * manual/llio.texi: Likewise.
13267         * manual/stdio.texi: Likewise.
13268
13269 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13270
13271         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13272         incorrect use.
13273
13274 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13275
13276         [BZ #18370]
13277         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13278         whose real or imaginary part has small absolute value.
13279         * math/s_csqrtf.c (__csqrtf): Likewise.
13280         * math/s_csqrtl.c (__csqrtl): Likewise.
13281         * math/auto-libm-test-in: Add more tests of csqrt.
13282         * math/auto-libm-test-out: Regenerated.
13283         * sysdeps/i386/fpu/libm-test-ulps: Update.
13284
13285 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13286
13287         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13288         __ppc_set_ppr_very_low): New functions.
13289         * manual/platform.texi: Add documentation about
13290         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13291
13292 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13293
13294         * string/stpncpy.c (stpncpy): Improve performance using
13295         __strnlen/memcpy/memset.
13296
13297 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13298
13299         [BZ #18796]
13300         * scripts/test-installation.pl: Don't add -lmvec to build options if
13301         libmvec wasn't built.
13302
13303 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13304
13305         [BZ #14341]
13306         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13307         case when there is a gap between DT_REL and DT_JMPREL sections.
13308         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13309         (LDFLAGS-tst-split-dynreloc): New.
13310         (tst-split-dynreloc-ENV): Likewise.
13311         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13312         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13313
13314 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13315
13316         [BZ #18822]
13317         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13318         attribute_hidden.
13319         (__xstat64_conv): Likewise.
13320         (__xstat32_conv): Likewise.
13321
13322 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13323
13324         [BZ #18822]
13325         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13326         Don't load %ebx when calling __setcontext.  Call __setcontext
13327         with HIDDEN_JUMPTARGET.
13328         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13329         libc_hidden_def.
13330
13331 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13332
13333         * sysdeps/i386/i686/Makefile
13334         [$(subdir) == string] (sysdep_routines): Moved to ...
13335         * sysdeps/i386/Makefile: Here.
13336         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13337         * sysdeps/i386/cacheinfo.c: Here.
13338         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13339         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13340         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13341         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13342
13343 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13344
13345         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13346         __i586__ is defined.
13347         (HAS_I686): Defined to 1 if __i686__ is defined.
13348
13349 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13350
13351         * elf/Makefile [$(have-z-execstack) = yes]
13352         (CPPFLAGS-tst-execstack.c): New variable.
13353
13354         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13355         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13356         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13357         UTMPX || _HAVE_UT_TV].
13358         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13359         UTMPX || _HAVE_UT_TV - 0].
13360
13361 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13362
13363         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13364         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13365         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13366
13367 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13368
13369         * sysdeps/powerpc/dl-procinfo.c:
13370         (_dl_powerpc_cap_flags): Added missing strings for some
13371         hwcap features.
13372         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13373
13374 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13375
13376         Port the 0x7efe...feff pattern to GCC 6.
13377         See Steve Ellcey's bug report in:
13378         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13379         * string/memrchr.c (MEMRCHR):
13380         * string/rawmemchr.c (RAWMEMCHR):
13381         * string/strchr.c (strchr):
13382         * string/strchrnul.c (STRCHRNUL):
13383         Rewrite code to avoid issues with signed shift overflow.
13384
13385 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13386
13387         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13388         whether cpuid is available only if HAS_CPUID is 0.
13389         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13390         (HAS_I586): Likewise.
13391         (HAS_I686): Likewise.
13392
13393 2015-08-18  Zack Weinberg  <zackw@panix.com>
13394
13395         * misc/Versions (libc): Add GLIBC_2.23.
13396
13397 2015-08-18  Alan Modra  <amodra@gmail.com>
13398
13399         [BZ #18421]
13400         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13401         .Lp__global.
13402         (_start): Load %dp via .Lp__global.
13403         [!SHARED]: Use .section .rodata.
13404
13405 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13406
13407         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13408         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13409
13410 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13411
13412         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13413         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13414
13415 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13416
13417         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13418         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13419
13420 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13421
13422         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13423         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13424
13425 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13426
13427         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13428         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13429
13430 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13431
13432         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13433         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13434
13435 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13436
13437         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13438
13439 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13440
13441         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13442         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13443         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13444         (__ASSUME_LWS_CAS): Delete.
13445
13446 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13447
13448         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13449         * sysdeps/hppa/configure: Regenerated.
13450         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13451         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13452         * sysdeps/hppa/nptl/tls.h: Likewise.
13453
13454 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13455
13456         [BZ #18823]
13457         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13458         for scaling up small arguments.
13459         * math/s_csqrtf.c (__csqrtf): Likewise.
13460         * math/s_csqrtl.c (__csqrtl): Likewise.
13461         * math/auto-libm-test-in: Add more tests of csqrt.
13462         * math/auto-libm-test-out: Regenerated.
13463
13464 2015-08-17  Andreas Schwab  <schwab@suse.de>
13465
13466         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13467         version set GLIBC_2.19.
13468
13469 2015-08-16  Zack Weinberg  <zackw@panix.com>
13470
13471         [BZ #18681]
13472         * misc/regexp.h: This interface is no longer supported.
13473         Remove all contents, leaving only an #error directive.
13474         * misc/regexp.c (loc1, loc2, locs, step, advance):
13475         Demote to compatibility symbols.
13476
13477 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13478
13479         [BZ #18084]
13480         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13481         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13482         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13483         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13484         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13485         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13486         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13487         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13488         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13489
13490 2015-08-15  Zack Weinberg  <zackw@panix.com>
13491
13492         [BZ #18795]
13493         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13494         buffer length is known to be too large, not if it's known to be
13495         small enough.
13496         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13497         overflow at runtime, involving a length parameter, twice: once
13498         with a compile-time constant length parameter, once without.
13499
13500 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13501
13502         [BZ #18824]
13503         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13504         scaling x * y up instead of down.
13505         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13506         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13507         * math/auto-libm-test-in: Add more tests of fma.
13508         * math/auto-libm-test-out: Regenerated.
13509
13510 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13511
13512         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13513
13514 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13515
13516         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13517         unnecessary movq.
13518         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13519         Likewise.
13520
13521 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13522
13523         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13524         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13525         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13526         and tgamma.
13527         * math/auto-libm-test-out: Regenerated.
13528         * sysdeps/i386/fpu/libm-test-ulps: Update.
13529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13530
13531         [BZ #16520]
13532         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13533         (__tanh): Force underflow exception for arguments with small
13534         absolute value.
13535         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13536         (__tanhf): Force underflow exception for arguments with small
13537         absolute value.
13538         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13539         (__tanhl): Force underflow exception for arguments with small
13540         absolute value.
13541         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13542         (__tanhl): Force underflow exception for arguments with small
13543         absolute value.
13544         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13545         (__tanhl): Force underflow exception for arguments with small
13546         absolute value.
13547         * math/auto-libm-test-in: Add more tests of tanh.
13548         * math/auto-libm-test-out: Regenerated.
13549         * sysdeps/i386/fpu/libm-test-ulps: Update.
13550
13551 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13552
13553         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13554         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13555
13556 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13557
13558         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13559         <cpuid.h>.
13560
13561 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13562
13563         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13564         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13565
13566 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13567
13568         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13569         Remove $(objpfx)init-arch.o.
13570         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13571         init-arch.
13572         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13573         (INIT_ARCH_EXT): Defined as empty.
13574         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13575         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13576         __init_cpu_features call.  Replace HAS_XXX with
13577         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13578         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13579         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13580         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13581         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13582         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13583         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13584         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13585         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13586         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13587         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13588         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13589         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13590         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13591         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13592         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13593         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13594         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13595         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13596         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13597         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13598         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13599         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13600         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13601         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13602         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13603         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13604         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13605         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13606         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13607         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13608         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13609         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13610         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13611         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13612         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13613
13614 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13615
13616         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13617         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13618         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13619         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13620         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13621         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13622         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13623         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13624         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13625         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13626         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13627         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13628         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13629         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13630         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13631         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13632         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13633         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13634         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13635         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13636         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13637         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13638         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13639         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13640         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13641         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13642         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13643         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13644         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13645         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13646         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13647         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13648         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13649         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13650         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13651         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13652         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13653         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13654         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13655         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13656         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13657         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13658         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13659
13660 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13661
13662         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13663         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13664         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13665         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13666         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13667         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13668         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13669         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13670         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13671         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13672         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13673         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13674         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13675         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13676         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13677         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13678         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13679         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13680         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13681         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13682         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13683         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13684         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13685         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13686         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13687         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13688         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13689         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13690         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13691         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13692         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13693         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13694         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13695         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13696         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13697         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13698         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13699         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13700         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13701         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13702         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13703         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13704         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13705
13706 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13707
13708         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13709         (dl_platform_init): Call init_cpu_features.
13710         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13711         * sysdeps/i386/i686/cacheinfo.c
13712         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13713         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13714         * sysdeps/i386/i686/multiarch/Versions: Removed.
13715         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13716         Removed.
13717         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13718         * sysdeps/unix/sysv/linux/x86/Makefile
13719         (libpthread-sysdep_routines): Remove init-arch.
13720         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13721         <sysdeps/x86_64/dl-procinfo.c> instead of
13722         sysdeps/generic/dl-procinfo.c>.
13723         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13724         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13725         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13726         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13727         [$(subdir) == elf] (tests-static): Add
13728         tst-get-cpu-features-static.
13729         * sysdeps/x86/Versions: New file.
13730         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13731         * sysdeps/x86/cpu-features.c: Likewise.
13732         * sysdeps/x86/cpu-features.h: Likewise.
13733         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13734         * sysdeps/x86/libc-start.c: Likewise.
13735         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13736         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13737         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13738         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13739         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13740         Assume USE_MULTIARCH is defined and don't check it.
13741         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13742         (is_amd): Likewise.
13743         (max_cpuid): Likewise.
13744         (intel_check_word): Likewise.
13745         (__cache_sysconf): Don't call __init_cpu_features.
13746         (__x86_preferred_memory_instruction): Removed.
13747         (init_cacheinfo): Don't call __init_cpu_features. Replace
13748         __cpu_features with GLRO(dl_x86_cpu_features).
13749         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13750         (dl_platform_init): Call init_cpu_features.
13751         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13752         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13753         * sysdeps/x86_64/multiarch/Versions: Removed.
13754         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13755         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13756         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13757         Removed.
13758         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13759
13760 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13761
13762         [BZ #18820]
13763         * libio/Makefile (test-fmemopen-mem): New test.
13764         * libio/test-fmemopen.c (do_bz18820): New test.
13765         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13766         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13767
13768 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13769
13770         [BZ #16734]
13771         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13772         (FREE_BUF): Delete.
13773         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13774         * libio/genops.c (_IO_setb): Use malloc and free directly.
13775         (_IO_default_doallocate, _IO_default_finish): Likewise.
13776         ( _IO_unbuffer_all): Likewise.
13777         ( libc_freeres_fn): Likewise.
13778         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13779         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13780         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13781         (_IO_wdefault_doallocate): Likewise.
13782
13783 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13784
13785         [BZ #18086]
13786         * sysdeps/posix/nice.c (nice): Restore old errno.
13787         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13788
13789 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13790
13791         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13792
13793 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13794
13795         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13796         __bcopy and add a weak_alias to bcopy.
13797         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13798         for static build.
13799
13800         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13801         cleanup macro usage.
13802         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13803         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13804         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13805         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13806         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13807         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13808         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13809         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13810         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13811         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13812         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13813         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13814         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13815         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13816         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13817         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13818         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13819         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13820         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13821
13822         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13823         libc_hidden_def.
13824         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13825
13826         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13827         (sysdep_routines): Add strstr-ppc64.
13828         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13829
13830 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13831
13832         [BZ #18778]
13833         * elf/Makefile (tests): Add Add tst-nodelete2.
13834         (modules-names): Add tst-nodelete2mod.
13835         (tst-nodelete2mod.so-no-z-defs): New.
13836         ($(objpfx)tst-nodelete2): Likewise.
13837         ($(objpfx)tst-nodelete2.out): Likewise.
13838         (LDFLAGS-tst-nodelete2): Likewise.
13839         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13840         out of loop through all loaded libraries.
13841         * elf/tst-nodelete2.c: New file.
13842         * elf/tst-nodelete2mod.c: Likewise.
13843         * elf/tst-znodelete-zlib.cc: Delete.
13844
13845 2015-08-11  Andreas Schwab  <schwab@suse.de>
13846
13847         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13848         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13849         (__openat64_nocancel): Likewise.
13850
13851 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13852
13853         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13854         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13855         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13856         * math/auto-libm-test-out: Regenerated.
13857         * sysdeps/i386/fpu/libm-test-ulps: Update.
13858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13859
13860 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13861
13862         [BZ #18790]
13863         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13864         threshold for returning +/- 1.
13865         * math/auto-libm-test-in: Add more tests of tanh.
13866         * math/auto-libm-test-out: Regenerated.
13867         * sysdeps/i386/fpu/libm-test-ulps: Update.
13868
13869 2015-08-10  Andreas Schwab  <schwab@suse.de>
13870
13871         [BZ #18781]
13872         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13873         MORE_OFLAGS to oflag.
13874         * io/test-lfs.c (do_test): Test openat64.
13875
13876 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13877
13878         [BZ #18789]
13879         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13880         smaller threshold for returning the argument.
13881         * math/auto-libm-test-in: Add more tests of sinh.
13882         * math/auto-libm-test-out: Regenerated.
13883         * sysdeps/i386/fpu/libm-test-ulps: Update.
13884
13885 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13886
13887         [BZ #18674]
13888         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13889         break.
13890
13891 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13892
13893         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13894         (generated): Don't add $(addprefix z.,$(tzfiles)).
13895
13896 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13897
13898         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13899         * scripts/sysd-rules.awk: Likewise.
13900
13901 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13902
13903         * iconvdata/tst-tables.sh: Change echo -n to printf.
13904         * nss/db-Makefile: Likewise.
13905         * posix/tst-getconf.sh: Likewise.
13906         * stdio-common/tst-unbputc.sh: Likewise.
13907
13908 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13909
13910         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13911         MADV_*_PAGES defines behind this feature check.
13912
13913 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13914
13915         [BZ #18480]
13916         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13917         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13918         Define.
13919         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13920         LOAD_REGS_5, LOAD_REGS_6): Update.
13921         (INTERNAL_SYSCALL): Update using new LOAD defines.
13922         (INTERNAL_SYSCALL_NCS): Likewise.
13923         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13924
13925 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13926
13927         [BZ #16734]
13928         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13929
13930 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13931
13932         [BZ #17905]
13933         * catgets/Makefile (tst-catgets-mem): New test.
13934         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13935         * catgets/open_catalog.c (__open_catalog): Likewise.
13936         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13937
13938 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13939
13940         [BZ #18787]
13941         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13942         clobber registers.
13943         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13944         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13945         Cast return to __typeof (oldval).
13946
13947 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13948
13949         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13950         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13951         and delete sys/syscall.h include.
13952
13953 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13954
13955         [BZ #16517]
13956         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13957         (tan): Force underflow exception for arguments with small absolute
13958         value.
13959         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13960         (__kernel_tanf): Force underflow exception for arguments with
13961         small absolute value.
13962         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13963         (__kernel_tanl): Force underflow exception for arguments with
13964         small absolute value.
13965         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13966         (__kernel_tanl): Force underflow exception for arguments with
13967         small absolute value.
13968         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13969         (__kernel_tanl): Force underflow exception for arguments with
13970         small absolute value.
13971         * math/auto-libm-test-in: Add more tests of tan.
13972         * math/auto-libm-test-out: Regenerated.
13973
13974 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13975
13976         Fix sysdeps/i386/fpu/s_scalbn.S build
13977
13978         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13979
13980 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13981
13982         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13983
13984 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13985
13986         Fix gcrt0.o compilation
13987
13988         When static-start-installed-name is different from
13989         start-installed-name, we must not use the shared objects.
13990
13991         * csu/Makefile
13992         (extra-objs): Add gmon-start.o when building shared library and
13993         $(static-start-installed-name) is different from
13994         $(start-installed-name).
13995         $(objpfx)g$(static-start-installed-name): When building shared
13996         library and $(static-start-installed-name) is different from
13997         $(static-start-installed-name), revert to non-shared rule,
13998         i.e. using $(objpfx)% and gmon-start.o.
13999
14000 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14001
14002         [BZ #16519]
14003         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14004         (__ieee754_sinh): Force underflow exception for arguments with
14005         small absolute value.
14006         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14007         (__ieee754_sinhf): Force underflow exception for arguments with
14008         small absolute value.
14009         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14010         (__ieee754_sinhl): Force underflow exception for arguments with
14011         small absolute value.
14012         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14013         (__ieee754_sinhl): Force underflow exception for arguments with
14014         small absolute value.
14015         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14016         (__ieee754_sinhl): Force underflow exception for arguments with
14017         small absolute value.
14018         * math/auto-libm-test-in: Add more tests of sinh.
14019         * math/auto-libm-test-out: Regenerated.
14020         * sysdeps/i386/fpu/libm-test-ulps: Update.
14021
14022 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14023
14024         * libio/oldfileops.c: Include unistd.h.
14025
14026 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14027
14028         * stdlib/isomac.c: Include ctype.h.
14029
14030 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14031
14032         * dirent/tst-seekdir.c (main): Converted to ...
14033         (do_test): ... this.
14034         (TEST_FUNCTION): New macro.
14035         Include test-skeleton.c.
14036         * elf/tst-dlmodcount.c (main): Converted to ...
14037         (do_test): ... this.
14038         (TEST_FUNCTION): New macro.
14039         Include test-skeleton.c.
14040         * elf/tst-order-main.c (main): Converted to ...
14041         (do_test): ... this.
14042         (TEST_FUNCTION): New macro.
14043         Include test-skeleton.c.
14044         * elf/tst-pie2.c (main): Converted to ...
14045         (do_test): ... this.
14046         (TEST_FUNCTION): New macro.
14047         Include test-skeleton.c.
14048         * inet/tst-ether_aton.c (main): Converted to ...
14049         (do_test): ... this.
14050         (TEST_FUNCTION): New macro.
14051         Include test-skeleton.c.
14052         * misc/tst-mntent.c (main): Converted to ...
14053         (do_test): ... this.
14054         (TEST_FUNCTION): New macro.
14055         Include test-skeleton.c.
14056         * misc/tst-tsearch.c (main): Converted to ...
14057         (do_test): ... this.
14058         (TEST_FUNCTION): New macro.
14059         Include test-skeleton.c.
14060         * posix/tst-regexloc.c (main): Converted to ...
14061         (do_test): ... this.
14062         (TEST_FUNCTION): New macro.
14063         Include test-skeleton.c.
14064         * resolv/tst-aton.c (main): Converted to ...
14065         (do_test): ... this.
14066         (TEST_FUNCTION): New macro.
14067         Include test-skeleton.c.
14068         * stdio-common/test-fwrite.c (main): Converted to ...
14069         (do_test): ... this.
14070         (TEST_FUNCTION): New macro.
14071         Include test-skeleton.c.
14072         * stdio-common/tst-ferror.c (main): Converted to ...
14073         (do_test): ... this.
14074         (TEST_FUNCTION): New macro.
14075         Include test-skeleton.c.
14076         * stdio-common/tst-printf.c (main): Converted to ...
14077         (do_test): ... this.
14078         (TEST_FUNCTION): New macro.
14079         Include test-skeleton.c.
14080         * stdio-common/tst-printfsz.c (main): Converted to ...
14081         (do_test): ... this.
14082         (TEST_FUNCTION): New macro.
14083         Include test-skeleton.c.
14084         * stdlib/tst-strtod.c (main): Converted to ...
14085         (do_test): ... this.
14086         (TEST_FUNCTION): New macro.
14087         Include test-skeleton.c.
14088         * string/tst-strlen.c (main): Converted to ...
14089         (do_test): ... this.
14090         (TEST_FUNCTION): New macro.
14091         Include test-skeleton.c.
14092         * string/tst-svc.c (main): Converted to ...
14093         (do_test): ... this.
14094         (TEST_FUNCTION): New macro.
14095         Include test-skeleton.c.
14096         * time/tst-strptime.c (main): Converted to ...
14097         (do_test): ... this.
14098         (TEST_FUNCTION): New macro.
14099         Include test-skeleton.c.
14100         * timezone/tst-timezone.c (main): Converted to ...
14101         (do_test): ... this.
14102         (TEST_FUNCTION): New macro.
14103         Include test-skeleton.c.
14104
14105 2015-08-05  Zack Weinberg  <zackw@panix.com>
14106
14107         * misc/regexp.h: Update comments.
14108
14109 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14110
14111         [BZ #18635]
14112         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14113         before return label.
14114
14115 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14116
14117         [BZ #18661]
14118         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14119         when calling __errno_location.
14120         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14121         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14122
14123 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14124
14125         [BZ #18661]
14126         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14127         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14128         __gettimeofday.
14129
14130 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14131
14132         [BZ #18661]
14133         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14134         (__start_context): Don't use pop to restore %rdi so that stack
14135         is aligned to 16 bytes when calling __setcontext.
14136
14137 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14138
14139         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14140         only for libc.
14141         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14142
14143 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14144
14145         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14146         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14147         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14148
14149 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14150
14151         * string/memccpy.c (memccpy):
14152         Improve performance by using memchr/memcpy/__mempcpy.
14153
14154 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14155
14156         * string/strncpy.c (strncpy):
14157         Improve performance by using __strnlen/memcpy.
14158
14159 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14160
14161         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14162         Optimize to avoid an unnecessary FPCR read.
14163
14164 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14165
14166         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14167         Optimize to reduce FPCR/FPSR accesses.
14168
14169 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14170
14171         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14172         dead->data[category] != NULL.
14173
14174 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14175
14176         [BZ #18647]
14177         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14178         and |x| close to 1, use absolute value of x when computing log.
14179         * math/auto-libm-test-in: Add more tests of pow.
14180         * math/auto-libm-test-out: Regenerated.
14181
14182 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14183
14184         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14185         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14186         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14187
14188 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14189
14190         [BZ #18525]
14191         * locales/km_KH: Remove timezone definition.
14192         * locales/lo_LA: Likewise.
14193         * locales/my_MM: Likewise.
14194         * locales/nan_TW@latin: Likewise.
14195         * locales/th_TH: Likewise.
14196         * locales/uk_UA: Likewise.
14197
14198 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14199
14200         [BZ #18265]
14201         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14202         (wcsncat): Likewise.
14203         (wcscmp): Likewise.
14204         (wcsncmp): Likewise.
14205
14206 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14207
14208         * test-skeleton.c (usage): New function.
14209         (main): Call usage when opt is '?'.
14210
14211 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14212
14213         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14214         before first use.
14215
14216 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14217
14218         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14219         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14220         in there too.
14221
14222 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14223
14224         * version.h (RELEASE): Set to "development".
14225         (VERSION): Set to "2.22.90"
14226
14227         * version.h (RELEASE): Set to "stable".
14228         (VERSION): Set to "2.22"
14229         * include/features.h (__GLIBC_MINOR__): Set to 22.
14230
14231 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14232
14233         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14234         Restructure macro to avoid "value computed is not used" warning.
14235         (atomic_compare_and_exchange_val_acq): Likewise.
14236
14237 2015-08-04  Andreas Schwab  <schwab@suse.de>
14238
14239         [BZ #18635]
14240         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14241         ret.
14242         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14243
14244 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14245
14246         * po/pl.po: Updated translation.
14247         * po/uk.po: Likewise.
14248         * po/fi.po: Likewise.
14249         * po/ko.po: Likewise.
14250         * po/ru.po: Likewise.
14251         * po/vi.po: Likewise.
14252
14253 2015-07-31  Zack Weinberg  <zackw@panix.com>
14254
14255         [BZ #18681]
14256         * regexp.h: Add unconditional #warning stating that this header
14257         will be removed soon.  Revise banner comment to match.
14258         (compile): Consistently use ERROR instead of RETURN to report
14259         errors (partial fix for bz#18681).
14260         * regexp.c: Don't include regexp.h. Remove some unnecessary
14261         declarations.
14262
14263 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14264
14265         * po/libc.pot: Regenerated.
14266
14267 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14268
14269         [BZ #18740]
14270         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14271         float-vlen4-arch-ext-cflags): Removed.
14272         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14273         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14274
14275 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14276
14277         [BZ #14113]
14278         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14279         aligned to __aligned__.
14280         (pthread_cond_t, pthread_rwlock_t): Likewise.
14281
14282 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14283
14284         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14285
14286 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14287
14288         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14289         (struct sigaction): Change sa_flags from a long to an int, and add
14290         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14291
14292 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14293
14294         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14295         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14296         sysdeps/generic/sysdep.h include.
14297         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14298         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14299         sysdeps/hppa/sysdep.h.
14300         (ENTRY, PSEUDO): Undefine before defining.
14301
14302 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14303
14304         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14305         from scratch to use INTERNAL_SYSCALL.
14306
14307 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14308
14309         [BZ #18078]
14310         * scripts/check-localplt.awk: Support alternate relocations.
14311         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14312         sections.
14313         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14314         malloc entries with + REL R_386_GLOB_DAT.
14315         * sysdeps/x86_64/localplt.data: New file.
14316
14317 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14318
14319         [BZ #18731]
14320         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14321         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14322         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14323
14324 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14325
14326         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14327
14328 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14329
14330         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14331         directly in terms of __sync_fetch_and_add and delete (int) cast.
14332
14333 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14334
14335         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14336         the -D_ASM_IA64_CURRENT_H flag.
14337
14338 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14339
14340         [BZ #18641]
14341         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14342
14343 2015-07-27  Andreas Schwab  <schwab@suse.de>
14344
14345         * conform/conformtest.pl (checknamespace): Filter out string
14346         literals while tokenizing.
14347
14348 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14349
14350         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14351         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14352         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14353
14354 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14355
14356         * nptl/tst-join7mod.c: Add #include <string.h>.
14357
14358 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14359
14360         * sysdeps/nios2/libm-test-ulps: Update.
14361
14362 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14363
14364         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14365         Fix order of arguments to the rt_sigprocmask syscall.
14366         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14367         Likewise.
14368
14369 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14370
14371         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14372
14373 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14374
14375         [BZ #18457]
14376         * nptl/Makefile (tests): New test case tst-join7.
14377         (modules-names): New test case module tst-join7mod.
14378         * nptl/tst-join7.c: New file.
14379         * nptl/tst-join7mod.c: New file.
14380         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14381         all translation units in libc.so, libpthread.so and rtld.
14382
14383 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14384
14385         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14386
14387 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14388
14389         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14390         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14391         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14392         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14393         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14394         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14395         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14396         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14397         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14398         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14399         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14400         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14401         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14402         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14403         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14404         implementation.
14405
14406 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14407
14408         [BZ #17711]
14409         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14410         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14411         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14412         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14413         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14414         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14415
14416 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14417
14418         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14419         instead of just saying load lock in the comments.
14420
14421 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14422
14423         * sysdeps/unix/Subdirs: Moved ...
14424         * sysdeps/posix/Subdirs: ... here.
14425         * login/pty.h (struct termios, struct winsize): Add forward decls.
14426         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14427         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14428         * sysdeps/arm/nacl/libc.abilist: Updated.
14429         * sysdeps/nacl/libutil.abilist: New file.
14430
14431         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14432         (SIGWINCH): New macro.
14433
14434         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14435         * sysdeps/arm/nacl/libc.abilist: Add it.
14436
14437 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14438
14439         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14440
14441 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14442
14443         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14444         Swap __glibc_reserved0 and sa_flags order.
14445
14446 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14447
14448         [BZ #18657]
14449         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14450         are pending TLS destructor calls.
14451         * include/link.h (struct link_map): Add concurrency note for
14452         L_TLS_DTOR_COUNT.
14453         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14454         Don't touch the link map flag.  Atomically increment
14455         l_tls_dtor_count.
14456         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14457         Avoid taking the load lock and don't touch the link map flag.
14458         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14459         * stdlib/Makefile (tests): Use it.
14460         * stdlib/tst-tls-atexit.c (do_test): dlopen
14461         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14462         to allow tst-tls-atexit-nodelete test case to use it.
14463
14464 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14465
14466         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14467         to bits/types.h.
14468         (msgqnum_t): New typedef.
14469         (msglen_t): Likewise.
14470         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14471         and msg_qbytes type to msglen_t.
14472
14473 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14474
14475         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14476         pad0 to __glibc_reserved0.
14477         (struct stat64): Likewise.
14478
14479 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14480
14481         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14482         Change sa_flags from a long to an int and add __glibc_reserved0 before
14483         it for padding.
14484
14485 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14486
14487         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14488         anonymous by deleting "siginfo" name.
14489
14490 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14491
14492         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14493         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14494         rather than __nacl_irt_filename.
14495         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14496
14497         * NEWS: New item for arm-nacl port.
14498         * sysdeps/arm/nacl/libc.abilist: New file.
14499         * sysdeps/nacl/ld.abilist: New file.
14500         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14501         * sysdeps/nacl/libanl.abilist: New file.
14502         * sysdeps/nacl/libcrypt.abilist: New file.
14503         * sysdeps/nacl/libdl.abilist: New file.
14504         * sysdeps/nacl/libm.abilist: New file.
14505         * sysdeps/nacl/libpthread.abilist: New file.
14506         * sysdeps/nacl/libresolv.abilist: New file.
14507         * sysdeps/nacl/librt.abilist: New file.
14508
14509 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14510
14511         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14512         __startcontext to initialize the new context.
14513         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14514         up CFI directive to forbid further backtracing.
14515
14516 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14517
14518         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14519         reference.
14520         * charmaps/ANSI_X3.4-1968: Likewise.
14521         * charmaps/BS_4730: Likewise.
14522         * charmaps/BS_VIEWDATA: Likewise.
14523         * charmaps/CP1250: Likewise.
14524         * charmaps/CP1251: Likewise.
14525         * charmaps/CP1252: Likewise.
14526         * charmaps/CP1253: Likewise.
14527         * charmaps/CP1254: Likewise.
14528         * charmaps/CP1255: Likewise.
14529         * charmaps/CP1256: Likewise.
14530         * charmaps/CSN_369103: Likewise.
14531         * charmaps/EBCDIC-DK-NO: Likewise.
14532         * charmaps/GB_1988-80: Likewise.
14533         * charmaps/GREEK-CCITT: Likewise.
14534         * charmaps/GREEK7: Likewise.
14535         * charmaps/INIS-8: Likewise.
14536         * charmaps/ISIRI-3342: Likewise.
14537         * charmaps/ISO_2033-1983: Likewise.
14538         * charmaps/ISO_5427-EXT: Likewise.
14539         * locales/POSIX: Likewise.
14540         * locales/ar_SA: Likewise.
14541         * locales/be_BY: Likewise.
14542         * locales/be_BY@latin: Likewise.
14543         * locales/ca_ES: Likewise.
14544         * locales/cs_CZ: Likewise.
14545         * locales/da_DK: Likewise.
14546         * locales/de_BE: Likewise.
14547         * locales/de_CH: Likewise.
14548         * locales/de_LU: Likewise.
14549         * locales/en_AU: Likewise.
14550         * locales/en_BW: Likewise.
14551         * locales/en_CA: Likewise.
14552         * locales/en_DK: Likewise.
14553         * locales/en_GB: Likewise.
14554         * locales/en_IE: Likewise.
14555         * locales/en_NZ: Likewise.
14556         * locales/en_ZA: Likewise.
14557         * locales/en_ZW: Likewise.
14558         * locales/es_AR: Likewise.
14559         * locales/es_BO: Likewise.
14560         * locales/es_CL: Likewise.
14561         * locales/es_CO: Likewise.
14562         * locales/es_DO: Likewise.
14563         * locales/es_EC: Likewise.
14564         * locales/es_ES: Likewise.
14565         * locales/es_HN: Likewise.
14566         * locales/es_MX: Likewise.
14567         * locales/es_PA: Likewise.
14568         * locales/es_PE: Likewise.
14569         * locales/es_PY: Likewise.
14570         * locales/es_SV: Likewise.
14571         * locales/es_US: Likewise.
14572         * locales/es_UY: Likewise.
14573         * locales/es_VE: Likewise.
14574         * locales/et_EE: Likewise.
14575         * locales/fa_IR: Likewise.
14576         * locales/fo_FO: Likewise.
14577         * locales/fr_CA: Likewise.
14578         * locales/fr_CH: Likewise.
14579         * locales/gv_GB: Likewise.
14580         * locales/he_IL: Likewise.
14581         * locales/hr_HR: Likewise.
14582         * locales/id_ID: Likewise.
14583         * locales/is_IS: Likewise.
14584         * locales/it_CH: Likewise.
14585         * locales/iw_IL: Likewise.
14586         * locales/kl_GL: Likewise.
14587         * locales/ko_KR: Likewise.
14588         * locales/kw_GB: Likewise.
14589         * locales/lg_UG: Likewise.
14590         * locales/lt_LT: Likewise.
14591         * locales/lv_LV: Likewise.
14592         * locales/mi_NZ: Likewise.
14593         * locales/nhn_MX: Likewise.
14594         * locales/nl_BE: Likewise.
14595         * locales/pl_PL: Likewise.
14596         * locales/sk_SK: Likewise.
14597         * locales/sl_SI: Likewise.
14598         * locales/sv_FI: Likewise.
14599         * locales/tl_PH: Likewise.
14600         * locales/tr_TR: Likewise.
14601         * locales/vi_VN: Likewise.
14602
14603 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14604
14605         [BZ #17475]
14606         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14607         of tu_IN and bh_IN.
14608
14609 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14610
14611         [BZ #18694]
14612         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14613         bits/wordsize.h.
14614         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14615
14616 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14617
14618         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14619         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14620         (spawn_thread): New function.
14621         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14622         (do_test): ... here.  Use IS_LOADED to test for its
14623         availability.
14624
14625 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14626
14627         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14628
14629 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14630
14631         [BZ #18696]
14632         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14633         si_addr_bnd.
14634         (si_lower): New.
14635         (si_upper): Likewise.
14636
14637 2015-07-16  David S. Miller  <davem@davemloft.net>
14638
14639         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14640
14641 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14642
14643         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14644         buffer.
14645         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14646         fail output information.
14647
14648 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14649
14650         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14651         and strstr-ppc64..
14652         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14653         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14654         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14655         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14656         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14657
14658 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14659
14660         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14661         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14662         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14663         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14664
14665 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14666
14667         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14668         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14669         rtld_hidden_proto.
14670         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14671
14672 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14673
14674         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14675         the test can fail.
14676
14677         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14678
14679         [BZ #18676]
14680         * elf/tst-nodelete-opened.c: New test case.
14681         * elf/tst-nodelete-opened-lib.c: New test case module.
14682         * elf/Makefile (tests, modules-names): Use them.
14683         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14684         early.
14685
14686 2015-07-15  David S. Miller  <davem@davemloft.net>
14687
14688         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14689         futex-intenal.h
14690         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14691         * sysdeps/sparc/sparc64/Makefile: Likewise.
14692         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14693         Remove space from macro define.
14694         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14695
14696 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14697
14698         [BZ #17475]
14699         * locale/iso-639.def: Update Bhili and Tulu language codes as
14700         per iso639-3.
14701
14702 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14703
14704         * elf/tst-leaks1.c (main): Converted to ...
14705         (do_test): ... this.
14706         (TEST_FUNCTION): New macro.
14707         Include test-skeleton.c.
14708         * localedata/tst-langinfo.c (main): Converted to ...
14709         (do_test): ... this.
14710         (TEST_FUNCTION): New macro.
14711         Include test-skeleton.c.
14712         * math/test-fpucw.c (main): Converted to ...
14713         (do_test): ... this.
14714         (TEST_FUNCTION): New macro.
14715         Include test-skeleton.c.
14716         * math/test-tgmath.c (main): Converted to ...
14717         (do_test): ... this.
14718         (TEST_FUNCTION): New macro.
14719         Include test-skeleton.c.
14720         * math/test-tgmath2.c (main): Converted to ...
14721         (do_test): ... this.
14722         (TEST_FUNCTION): New macro.
14723         Include test-skeleton.c.
14724         * setjmp/tst-setjmp.c (main): Converted to ...
14725         (do_test): ... this.
14726         (TEST_FUNCTION): New macro.
14727         Include test-skeleton.c.
14728         * stdio-common/tst-sscanf.c (main): Converted to ...
14729         (do_test): ... this.
14730         (TEST_FUNCTION): New macro.
14731         Include test-skeleton.c.
14732         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14733         (do_test): ... this.
14734         (TEST_FUNCTION): New macro.
14735         Include test-skeleton.c.
14736
14737         * elf/tst-audit9.c (main): Converted to ...
14738         (do_test): ... this.
14739         (TEST_FUNCTION): New macro.
14740         Include test-skeleton.c.
14741
14742 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14743
14744         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14745
14746 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14747
14748         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14749         New variable.
14750
14751 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14752
14753         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14754
14755 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14756
14757         * sysdeps/generic/dl-fileid.h: New file.
14758         * sysdeps/posix/dl-fileid.h: New file.
14759         * sysdeps/nacl/dl-fileid.h: New file.
14760         * include/link.h: Include <dl-fileid.h>.
14761         (struct link_map): Replace l_dev and l_ino with l_file_id.
14762         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14763         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14764         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14765
14766 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14767
14768         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14769
14770 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14771
14772         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14773         Add iff $CXX is set.
14774         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14775         Likewise.
14776         (tst-nodelete-zmodiff): Likewise.
14777         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14778
14779 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14780
14781         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14782
14783 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14784
14785         * sysdeps/aarch64/fpu/math_private.h
14786         (define math_opt_barrier): Add AArch64 version.
14787         (math_force_eval): Likewise.
14788
14789 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14790
14791         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14792
14793 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14794
14795         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14796         %ld with %jd and cast to intmax_t.
14797         (do_test_length_zero): Likewise.
14798
14799 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14800
14801         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14802
14803 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14804
14805         * sysdeps/tile/libm-test-ulps: Regenerated.
14806
14807         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14808         Comment out the whole function, not just its body.
14809
14810 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14811
14812         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14813         locks.
14814
14815         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14816
14817 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14818
14819         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14820         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14821
14822 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14823
14824         * sysdeps/nptl/futex-internal.h: New file.
14825         * sysdeps/nacl/futex-internal.h: New file.
14826         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14827         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14828         error checking.
14829         (setxid_unmark_thread): Likewise.
14830         (__nptl_setxid): Likewise.
14831         (__wait_lookup_done): Likewise.
14832         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14833         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14834         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14835         * nptl/pthread_once.c (clear_once_control): Likewise.
14836         (__pthread_once_slow): Likewise.
14837         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14838         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14839         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14840         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14841         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14842         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14843         Likewise.
14844         (__pthread_rwlock_rdlock): Likewise.
14845         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14846         Likewise.
14847         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14848         Likewise.
14849         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14850         Likewise.
14851         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14852         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14853         Likewise.
14854         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14855         __ASSUME_PRIVATE_FUTEX check.
14856         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14857         Check that shared futexes are supported.
14858         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14859         wrappers with error checking.
14860         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14861         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14862         * nptl/pthread_barrierattr_setpshared.c
14863         (pthread_barrierattr_setpshared): Check that shared futexes are
14864         supported.
14865         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14866         Likewise.
14867         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14868         Likewise.
14869         * nptl/sem_init.c (futex_private_if_supported): Remove.
14870         (__new_sem_init): Adapt and check that shared futexes are supported.
14871         * nptl/sem_open.c (sem_open): Likewise.
14872         * nptl/sem_post.c (futex_wake): Remove.
14873         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14874         (do_futex_wait): Use futex wrappers with error checking.
14875         * nptl/sem_wait.c: Include lowlevellock.h.
14876         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14877         Use futex_supports_pshared.
14878         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14879         Use futex wrappers with error checking.
14880         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14881         Likewise.
14882         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14883         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14884         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14885         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14886         (futex_wake): Likewise.
14887         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14888         (do_futex_wait): Use futex wrappers with error checking.
14889         (__new_sem_wait_slow): Update EINTR handling.
14890         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14891
14892 2015-07-09  Martin Sebor  <msebor@redhat.com>
14893
14894         [BZ #18435]
14895         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14896         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14897         * nptl/Makefile (test-xfail-tst-once5): Define.
14898
14899 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14900
14901         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14902         * elf/dl-minimal.c: For readability, reorder some definitions and
14903         introduce more page breaks.  Include <stdio.h>.
14904         (__libc_fatal): New function.
14905
14906         * include/unistd.h: Add rtld_hidden_proto for _exit.
14907         * posix/_exit.c: Add rtld_hidden_def.
14908         * sysdeps/mach/hurd/_exit.c: Likewise.
14909         * sysdeps/nacl/_exit.c: Likewise.
14910         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14911         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14912
14913 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14914
14915         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14916         bndmov encoding with zero displacement.
14917
14918 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14919             H.J. Lu  <hongjiu.lu@intel.com>
14920
14921         [BZ #18134]
14922         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14923         * sysdeps/i386/configure: Regenerated.
14924         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14925         (_dl_runtime_profile): Save and restore Intel MPX return bound
14926         registers when calling _dl_call_pltexit.  Add
14927         PRESERVE_BND_REGS_PREFIX before return.
14928         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14929         (LRV_BND1_OFFSET): Likewise.
14930         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14931         lrv_bnd1.
14932         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14933         typo in bndmov encoding.
14934         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14935         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14936         branch instructions to preserve bounds.
14937
14938 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14939
14940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14941         [GLIBC_2.22]: Add fmemopen.
14942
14943 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14944
14945         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14946         returns an error, also try to use host port from __mach_host_self for
14947         the __vm_wire call.
14948         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14949
14950 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14951
14952         [BZ #18400]
14953         [BZ #18648]
14954         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14955         Fix pr_uid and pr_gid members.
14956         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14957         definition to elf_greg_t.
14958
14959 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14960
14961         [BZ #18383]
14962         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14963         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14964         * sysdeps/arm/configure: Regenerated.
14965         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14966         (test-xfail-tst-tlsalign-static): Variable removed.
14967
14968         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14969         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14970         rather than explicit 'ln -s'.
14971
14972         * resolv/rpc/netdb.h: New file.
14973         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14974
14975 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14976
14977         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14978         length buffers.
14979         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14980         test-skeleton.c.
14981
14982         [BZ #6544]
14983         [BZ #11216]
14984         [BZ #12836]
14985         [BZ #13151]
14986         [BZ #13152]
14987         [BZ #14292]
14988         * include/stdio.h (fmemopen): Remove hidden prototype.
14989         (__fmemopen): Add new hidden prototype.
14990         * libio/Makefile: Add oldfmemopen object.
14991         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14992         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14993         compliance.
14994         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14995         symbol compatibility.
14996         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14997         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14998         fmemopen.
14999         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15000         on append and read mode.
15001         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15002         fmemopen.
15003         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15004         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15005         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15006         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15007         Likewise.
15008         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15009         [GLIBC_2.22]: Likewise.
15010         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15011         Likewise.
15012         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15013         Likewise.
15014         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15015         [GLIBC_2.22]: Likewise.
15016         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15017         [GLIBC_2.22]: Likewise.
15018         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15019         [GLIBC_2.22]: Likewise.
15020         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15021         [GLIBC_2.22]: Likewise.
15022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15023         [GLIBC_2.22]: Likewise.
15024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15025         [GLIBC_2.22]: Likewise.
15026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15027         [GLIBC_2.22]: Likewise.
15028         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15029         Likewise.
15030         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15031         Likewise.
15032         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15033         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15034         [GLIBC_2.22]: Likewise.
15035         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15036         [GLIBC_2.22]: Likewise.
15037         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15038         [GLIBC_2.22]: Likewise.
15039         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15040         [GLIBC_2.22]: Likewise.
15041         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15042         Likewise.
15043         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15044         Likewise.
15045         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15046         Likewise.
15047         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15048         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15049
15050 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15051
15052         [BZ #18643]
15053         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15054         IPV6_PATHMTU, and IPV6_DONTFRAG.
15055
15056 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15057
15058         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15059         and _IO_UNBUFFERED.
15060         * libio/oldfileops.c: Likewise.
15061         * libio/wfileops.c: Likewise.
15062
15063 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15064
15065         * nscd/selinux.c: Delete selinux/flask.h include.
15066
15067 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15068
15069         [BZ #18641]
15070         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15071         (putpwent): Likewise.
15072         (getpwnam): Likewise.
15073         (getpwent_r): Likewise.
15074         (getpwuid_r): Likewise.
15075         (getpwnam_r): Likewise.
15076         (fgetpwent_r): Likewise.
15077
15078 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15079
15080         [BZ #18557]
15081         * inet/rcmd.c (__validuser2_sa): Check user first to
15082         short-circuit host check.
15083
15084 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15085             Mikhail Ilin  <m.ilin@samsung.com>
15086
15087         [BZ #17833]
15088         * elf/Makefile (tests): Add tst-nodelete.
15089         (modules-names): Add tst-nodelete-uniquemod.
15090         (tst-nodelete-uniquemod.so-no-z-defs): New.
15091         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15092         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15093         ($(objpfx)tst-nodelete): Likewise.
15094         ($(objpfx)tst-nodelete.out): Likewise.
15095         (LDFLAGS-tst-nodelete): Likewise.
15096         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15097         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15098         implement forced object deletion.
15099         (_dl_close): Pass false to _dl_close_worker.
15100         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15101         * elf/tst-nodelete.cc: New file.
15102         * elf/tst-nodeletelib.cc: Likewise.
15103         * elf/tst-znodeletelib.cc: Likewise.
15104         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15105
15106 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15107
15108         [BZ #18508]
15109         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15110         Depend on $(libdl).
15111         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15112         is not called infinitely times.
15113         (backtrace_helper): New function.
15114         (trace_arg): New struct.
15115         (st1): Enlarge stack size.
15116         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15117         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15118         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15119         Likewise.
15120
15121 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15122
15123         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15124
15125 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15126
15127         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15128         Include sys/types.h instead of bits/types.h.
15129         Remove inclusion of bits/wordsize.h.
15130
15131 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15132
15133         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15134         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15135         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15136         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15137         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15138         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15139
15140 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15141
15142         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15143         link-defines.sym.
15144         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15145         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15146         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15147         and LR_SIZE.
15148         * sysdeps/i386/link-defines.sym: New file.
15149
15150 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15151
15152         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15153         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15154         ($(objpfx)tst-audit3): New rule.
15155         ($(objpfx)tst-audit3.out): Likewise.
15156         * sysdeps/i386/tst-audit3.c: New file.
15157         * sysdeps/i386/tst-audit3.h: Likewise.
15158         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15159         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15160
15161 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15162
15163         [BZ #18633]
15164         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15165         pointer in C code.
15166         (__strcat_c): Likewise.
15167         (__strcat_g): Likewise.
15168
15169 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15170
15171         [BZ #18592]
15172         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15173
15174 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15175
15176         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15177         New function.  (__ieee754_sqrtf): New function.
15178         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15179         New function.
15180         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15181         New function.
15182
15183 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15184
15185         * sysdeps/ieee754/support.c: Remove unused file.
15186
15187 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15188
15189         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15190         registers instead of d ones so the layout is kernel abi compatible.
15191         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15192         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15193         Likewise.
15194
15195 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15196
15197         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15198
15199 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15200
15201         [BZ #18619]
15202         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15203         and return argument in case of subnormal argument.
15204
15205 2015-07-01  Martin Sebor  <msebor@redhat.com>
15206
15207         [BZ #18435]
15208         * nptl/Makefile: Add tst-once5.cc.
15209         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15210         Remove macro redefinitions.
15211         * nptl/tst-once5.cc: New test.
15212
15213 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15214
15215         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15216
15217         * sysdeps/arm/libm-test-ulps: Regenerated.
15218
15219         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15220         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15221
15222 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15223
15224         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15225         lll_lock_wait_private and lll_futex_wake probes.
15226
15227         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15228         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15229         Likewise.
15230         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15231         atomic_spin_nop.
15232         * sysdeps/x86_64/bits/atomic.h: Likewise.
15233         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15234         to atomic_spin_nop and move ...
15235         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15236         ... here and ...
15237         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15238         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15239         atomic_spin_nop instead of BUSY_WAIT_NOP.
15240         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15241         Likewise.
15242         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15243         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15244         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15245         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15246         instead of atomic_delay.
15247
15248 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15249
15250         [BZ #18613]
15251         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15252         X_ADJ not X when adjusting exponent.
15253         (__ieee754_gamma_r): Do intermediate computations in
15254         round-to-nearest then adjust overflowing and underflowing results
15255         as needed.
15256         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15257         of X_ADJ not X when adjusting exponent.
15258         (__ieee754_gammaf_r): Do intermediate computations in
15259         round-to-nearest then adjust overflowing and underflowing results
15260         as needed.
15261         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15262         log of X_ADJ not X when adjusting exponent.
15263         (__ieee754_gammal_r): Do intermediate computations in
15264         round-to-nearest then adjust overflowing and underflowing results
15265         as needed.  Use 1.0L not 1.0f as numerator of division.
15266         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15267         log of X_ADJ not X when adjusting exponent.
15268         (__ieee754_gammal_r): Do intermediate computations in
15269         round-to-nearest then adjust overflowing and underflowing results
15270         as needed.  Use 1.0L not 1.0f as numerator of division.
15271         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15272         of X_ADJ not X when adjusting exponent.
15273         (__ieee754_gammal_r): Do intermediate computations in
15274         round-to-nearest then adjust overflowing and underflowing results
15275         as needed.  Use 1.0L not 1.0f as numerator of division.
15276         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15277         to auto-libm-test-in.
15278         (tgamma_test): Use ALL_RM_TEST.
15279         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15280         tests of tgamma with spurious-overflow.
15281         * math/auto-libm-test-out: Regenerated.
15282         * math/gen-libm-have-vector-test.sh: Do not check for START.
15283         * sysdeps/i386/fpu/libm-test-ulps: Update.
15284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15285
15286         [BZ #18612]
15287         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15288         arguments, just return 0.5 times the argument, with underflow
15289         forced as needed.
15290         * math/auto-libm-test-in: Add more tests of j1.
15291         * math/auto-libm-test-out: Regenerated.
15292
15293         [BZ #16559]
15294         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15295         (__ieee754_j1): Force underflow exception for small results.
15296         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15297         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15298         (__ieee754_j1f): Force underflow exception for small results.
15299         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15300         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15301         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15302         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15303         (__ieee754_j1l): Force underflow exception for small results.
15304         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15305         * math/auto-libm-test-in: Add more tests of j1 and jn.
15306         * math/auto-libm-test-out: Regenerated.
15307
15308         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15309         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15310         (PF_MPLS): Likewise.
15311         (AF_IB): Likewise.
15312         (AF_MPLS): Likewise.
15313         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15314         value and macro.
15315         (MS_RMT_MASK): Include MS_LAZYTIME.
15316
15317 2015-06-26  Mel Gorman  <mgorman@suse.de>
15318
15319         [BZ #18502]
15320         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15321         already minimal.
15322
15323 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15324
15325         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15326         (DT_MIPS_NUM): Update.
15327         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15328         DT_MIPS_RLD_MAP_REL.
15329
15330 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15331
15332         [BZ #16559]
15333         [BZ #18602]
15334         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15335         round-to-nearest internally then recompute results that
15336         underflowed to zero in the original rounding mode.
15337         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15338         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15339         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15340         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15341         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15342         * sysdeps/i386/fpu/libm-test-ulps: Update.
15343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15344
15345 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15346
15347         * NEWS: Fixed description of link with vector math library.
15348
15349 2015-06-25  Andreas Schwab  <schwab@suse.de>
15350
15351         [BZ #18549]
15352         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15353         * libio/test-fmemopen.c (do_test): Add test for it.
15354
15355 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15356
15357         [BZ #17841]
15358         * Makeconfig (no-pie-ldflag): New.
15359         (+link): Set to $(+link-pie) if default to PIE.
15360         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15361         * config.make.in (build-pie-default): New.
15362         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15363         is default.  AC_SUBST.
15364         * configure: Regenerated.
15365         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15366
15367 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15368
15369         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15370         to 'unsigned int'.
15371
15372         * resolv/gai_misc.h (struct waitlist): Change type of field
15373         counterp to 'volatile unsigned int *'.
15374         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15375         FUTEXADDR and OLDVAL.
15376         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15377         Give local variable TOTAL type 'volatile unsigned int'.
15378         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15379         * resolv/gai_suspend.c (gai_suspend):
15380         Give local variable CNTR type 'unsigned int'.
15381
15382         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15383         counterp to 'volatile unsigned int *'.
15384         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15385         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15386         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15387         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15388         Give local variable TOTAL type 'volatile unsigned int'.
15389         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15390
15391 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15392
15393         [BZ #18383]
15394         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15395         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15396         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15397         comment for i386/x86-64.
15398         (test-xfail-tst-tlsalign-extern-static): Removed.
15399
15400 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15401
15402         * math/test-double.h: New file.
15403         * math/test-float.h: Likewise.
15404         * math/test-ldouble.h: Likewise.
15405         * math/test-math-inline.h: Likewise.
15406         * math/test-math-no-inline.h: Likewise.
15407         * math/test-math-scalar.h: Likewise.
15408         * math/test-math-vector.h: Likewise.
15409         * math/test-vec-loop.h: Remove file.  Contents moved into
15410         test-math-vector.h.
15411         * math/libm-test.inc (MATHCONST): Do not document macro.
15412         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15413         and test-math-scalar.h.
15414         (FUNC): Remove macro.
15415         (FUNC_TEST): Likewise.
15416         (FLOAT): Likewise.
15417         (MATHCONST): Likewise.
15418         (PRINTF_EXPR): Likewise.
15419         (PRINTF_XEXPR): Likewise.
15420         (PRINTF_NEXPR): Likewise.
15421         (TEST_DOUBLE): Likewise.
15422         (TEST_MATHVEC): Likewise.
15423         (__NO_MATH_INLINES): Likewise.
15424         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15425         and test-math-scalar.h.
15426         (FUNC): Remove macro.
15427         (FUNC_TEST): Likewise.
15428         (FLOAT): Likewise.
15429         (MATHCONST): Likewise.
15430         (PRINTF_EXPR): Likewise.
15431         (PRINTF_XEXPR): Likewise.
15432         (PRINTF_NEXPR): Likewise.
15433         (TEST_FLOAT): Likewise.
15434         (TEST_MATHVEC): Likewise.
15435         (__NO_MATH_INLINES): Likewise.
15436         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15437         and test-math-scalar.h.
15438         (FUNC): Remove macro.
15439         (FUNC_TEST): Likewise.
15440         (FLOAT): Likewise.
15441         (MATHCONST): Likewise.
15442         (PRINTF_EXPR): Likewise.
15443         (PRINTF_XEXPR): Likewise.
15444         (PRINTF_NEXPR): Likewise.
15445         (TEST_DOUBLE): Likewise.
15446         (TEST_MATHVEC): Likewise.
15447         (TEST_INLINE): Likewise.
15448         (__NO_MATH_INLINES): Likewise.
15449         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15450         test-math-scalar.h.
15451         (FUNC): Remove macro.
15452         (FUNC_TEST): Likewise.
15453         (FLOAT): Likewise.
15454         (MATHCONST): Likewise.
15455         (PRINTF_EXPR): Likewise.
15456         (PRINTF_XEXPR): Likewise.
15457         (PRINTF_NEXPR): Likewise.
15458         (TEST_FLOAT): Likewise.
15459         (TEST_MATHVEC): Likewise.
15460         (TEST_INLINE): Likewise.
15461         (__NO_MATH_INLINES): Likewise.
15462         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15463         and test-math-scalar.h.
15464         (FUNC): Remove macro.
15465         (FUNC_TEST): Likewise.
15466         (FLOAT): Likewise.
15467         (MATHCONST): Likewise.
15468         (PRINTF_EXPR): Likewise.
15469         (PRINTF_XEXPR): Likewise.
15470         (PRINTF_NEXPR): Likewise.
15471         (TEST_LDOUBLE): Likewise.
15472         (TEST_MATHVEC): Likewise.
15473         (TEST_INLINE): Likewise.
15474         (__NO_MATH_INLINES): Likewise.
15475         * math/test-ldouble.c: Include test-ldouble.h,
15476         test-math-no-inline.h and test-math-scalar.h.
15477         (FUNC): Remove macro.
15478         (FUNC_TEST): Likewise.
15479         (FLOAT): Likewise.
15480         (MATHCONST): Likewise.
15481         (PRINTF_EXPR): Likewise.
15482         (PRINTF_XEXPR): Likewise.
15483         (PRINTF_NEXPR): Likewise.
15484         (TEST_LDOUBLE): Likewise.
15485         (TEST_MATHVEC): Likewise.
15486         (__NO_MATH_INLINES): Likewise.
15487         * math/test-double-vlen2.h: Include test-double.h,
15488         test-math-no-inline.h and test-math-vector.h.
15489         (FLOAT): Remove macro.
15490         (FUNC): Likewise.
15491         (MATHCONST): Likewise.
15492         (PRINTF_EXPR): Likewise.
15493         (PRINTF_XEXPR): Likewise.
15494         (PRINTF_NEXPR): Likewise.
15495         (TEST_DOUBLE): Likewise.
15496         (TEST_MATHVEC): Likewise.
15497         (__NO_MATH_INLINES): Likewise.
15498         (CNCT): Likewise.
15499         (CONCAT): Likewise.
15500         (WRAPPER_NAME): Likewise.
15501         (WRAPPER_DECL): Likewise.
15502         (WRAPPER_DECL_ff): Likewise.
15503         (WRAPPER_DECL_fFF): Likewise.
15504         (VECTOR_WRAPPER): Likewise.
15505         (VECTOR_WRAPPER_ff): Likewise.
15506         (VECTOR_WRAPPER_fFF): Likewise.
15507         (VEC_LEN): New macro.
15508         * math/test-double-vlen4.h: Include test-double.h,
15509         test-math-no-inline.h and test-math-vector.h.
15510         (FLOAT): Remove macro.
15511         (FUNC): Likewise.
15512         (MATHCONST): Likewise.
15513         (PRINTF_EXPR): Likewise.
15514         (PRINTF_XEXPR): Likewise.
15515         (PRINTF_NEXPR): Likewise.
15516         (TEST_DOUBLE): Likewise.
15517         (TEST_MATHVEC): Likewise.
15518         (__NO_MATH_INLINES): Likewise.
15519         (CNCT): Likewise.
15520         (CONCAT): Likewise.
15521         (WRAPPER_NAME): Likewise.
15522         (WRAPPER_DECL): Likewise.
15523         (WRAPPER_DECL_ff): Likewise.
15524         (WRAPPER_DECL_fFF): Likewise.
15525         (VECTOR_WRAPPER): Likewise.
15526         (VECTOR_WRAPPER_ff): Likewise.
15527         (VECTOR_WRAPPER_fFF): Likewise.
15528         (VEC_LEN): New macro.
15529         * math/test-double-vlen8.h: Include test-double.h,
15530         test-math-no-inline.h and test-math-vector.h.
15531         (FLOAT): Remove macro.
15532         (FUNC): Likewise.
15533         (MATHCONST): Likewise.
15534         (PRINTF_EXPR): Likewise.
15535         (PRINTF_XEXPR): Likewise.
15536         (PRINTF_NEXPR): Likewise.
15537         (TEST_DOUBLE): Likewise.
15538         (TEST_MATHVEC): Likewise.
15539         (__NO_MATH_INLINES): Likewise.
15540         (CNCT): Likewise.
15541         (CONCAT): Likewise.
15542         (WRAPPER_NAME): Likewise.
15543         (WRAPPER_DECL): Likewise.
15544         (WRAPPER_DECL_ff): Likewise.
15545         (WRAPPER_DECL_fFF): Likewise.
15546         (VECTOR_WRAPPER): Likewise.
15547         (VECTOR_WRAPPER_ff): Likewise.
15548         (VECTOR_WRAPPER_fFF): Likewise.
15549         (VEC_LEN): New macro.
15550         * math/test-float-vlen4.h: Include test-float.h,
15551         test-math-no-inline.h and test-math-vector.h.
15552         (FLOAT): Remove macro.
15553         (FUNC): Likewise.
15554         (MATHCONST): Likewise.
15555         (PRINTF_EXPR): Likewise.
15556         (PRINTF_XEXPR): Likewise.
15557         (PRINTF_NEXPR): Likewise.
15558         (TEST_FLOAT): Likewise.
15559         (TEST_MATHVEC): Likewise.
15560         (__NO_MATH_INLINES): Likewise.
15561         (CNCT): Likewise.
15562         (CONCAT): Likewise.
15563         (WRAPPER_NAME): Likewise.
15564         (WRAPPER_DECL): Likewise.
15565         (WRAPPER_DECL_ff): Likewise.
15566         (WRAPPER_DECL_fFF): Likewise.
15567         (VECTOR_WRAPPER): Likewise.
15568         (VECTOR_WRAPPER_ff): Likewise.
15569         (VECTOR_WRAPPER_fFF): Likewise.
15570         (VEC_LEN): New macro.
15571         * math/test-float-vlen8.h: Include test-float.h,
15572         test-math-no-inline.h and test-math-vector.h.
15573         (FLOAT): Remove macro.
15574         (FUNC): Likewise.
15575         (MATHCONST): Likewise.
15576         (PRINTF_EXPR): Likewise.
15577         (PRINTF_XEXPR): Likewise.
15578         (PRINTF_NEXPR): Likewise.
15579         (TEST_FLOAT): Likewise.
15580         (TEST_MATHVEC): Likewise.
15581         (__NO_MATH_INLINES): Likewise.
15582         (CNCT): Likewise.
15583         (CONCAT): Likewise.
15584         (WRAPPER_NAME): Likewise.
15585         (WRAPPER_DECL): Likewise.
15586         (WRAPPER_DECL_ff): Likewise.
15587         (WRAPPER_DECL_fFF): Likewise.
15588         (VECTOR_WRAPPER): Likewise.
15589         (VECTOR_WRAPPER_ff): Likewise.
15590         (VECTOR_WRAPPER_fFF): Likewise.
15591         (VEC_LEN): New macro.
15592         * math/test-float-vlen16.h: Include test-float.h,
15593         test-math-no-inline.h and test-math-vector.h.
15594         (FLOAT): Remove macro.
15595         (FUNC): Likewise.
15596         (MATHCONST): Likewise.
15597         (PRINTF_EXPR): Likewise.
15598         (PRINTF_XEXPR): Likewise.
15599         (PRINTF_NEXPR): Likewise.
15600         (TEST_FLOAT): Likewise.
15601         (TEST_MATHVEC): Likewise.
15602         (__NO_MATH_INLINES): Likewise.
15603         (CNCT): Likewise.
15604         (CONCAT): Likewise.
15605         (WRAPPER_NAME): Likewise.
15606         (WRAPPER_DECL): Likewise.
15607         (WRAPPER_DECL_ff): Likewise.
15608         (WRAPPER_DECL_fFF): Likewise.
15609         (VECTOR_WRAPPER): Likewise.
15610         (VECTOR_WRAPPER_ff): Likewise.
15611         (VECTOR_WRAPPER_fFF): Likewise.
15612         (VEC_LEN): New macro.
15613         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15614         test-vec-loop.h.
15615         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15616         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15617         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15618         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15619         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15620         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15621         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15622
15623 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15624
15625         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15626         (__getlogin_r): ... this.
15627
15628 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15629
15630         [BZ #18594]
15631         * math/s_ccosh.c (__ccosh): Compare with least normal value
15632         instead of comparing class with FP_SUBNORMAL.
15633         * math/s_ccoshf.c (__ccoshf): Likewise.
15634         * math/s_ccoshl.c (__ccoshl): Likewise.
15635         * math/s_cexp.c (__cexp): Likewise.
15636         * math/s_cexpf.c (__cexpf): Likewise.
15637         * math/s_cexpl.c (__cexpl): Likewise.
15638         * math/s_csin.c (__csin): Likewise.
15639         * math/s_csinf.c (__csinf): Likewise.
15640         * math/s_csinh.c (__csinh): Likewise.
15641         * math/s_csinhf.c (__csinhf): Likewise.
15642         * math/s_csinhl.c (__csinhl): Likewise.
15643         * math/s_csinl.c (__csinl): Likewise.
15644         * math/s_ctan.c (__ctan): Likewise.
15645         * math/s_ctanf.c (__ctanf): Likewise.
15646         * math/s_ctanh.c (__ctanh): Likewise.
15647         * math/s_ctanhf.c (__ctanhf): Likewise.
15648         * math/s_ctanhl.c (__ctanhl): Likewise.
15649         * math/s_ctanl.c (__ctanl): Likewise.
15650         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15651         csin, csinh, ctan and ctanh.
15652         * math/auto-libm-test-out: Regenerated.
15653         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15654         * sysdeps/i386/fpu/libm-test-ulps: Update.
15655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15656
15657 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15658
15659         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15660         return value is wrong, print the expected value too.
15661
15662 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15663
15664         [BZ #18585]
15665         * elf/readlib.c (is_gdb_python_file): New.
15666         (process_file): Don't issue errors on filenames with -gdb.py
15667         suffix.
15668
15669 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15670
15671         * math/auto-libm-test-in: Add more tests of csin and csinh.
15672         * math/auto-libm-test-out: Regenerated.
15673         * math/libm-test.inc (csin_test_data): Remove tests moved to
15674         auto-libm-test-in.
15675         (csinh_test_data): Likewise.
15676
15677         [BZ #18593]
15678         * math/s_csin.c (__csin): Negate before rather than after possibly
15679         overflowing multiplication.
15680         * math/s_csinf.c (__csinf): Likewise.
15681         * math/s_csinh.c (__csinh): Likewise.
15682         * math/s_csinhf.c (__csinhf): Likewise.
15683         * math/s_csinhl.c (__csinhl): Likewise.
15684         * math/s_csinl.c (__csinl): Likewise.
15685         * math/auto-libm-test-in: Add some tests of csin and csinh.
15686         * math/auto-libm-test-out: Regenerated.
15687         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15688         (csinh_test_data): Likewise.
15689         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15690
15691         [BZ #18586]
15692         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15693         underflow exception for small results.
15694
15695 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15696
15697         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15698         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15699         variable and included header.
15700         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15701         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15702         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15703         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15704         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15705         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15706         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15707         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15708         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15709         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15710         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15711         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15712         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15713         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15714         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15715         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15716
15717 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15718
15719         [BZ #16526]
15720         [BZ #16538]
15721         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15722         (__sin): Force underflow exception for arguments with small
15723         absolute value.
15724         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15725         (__kernel_sinf): Force underflow exception for arguments with
15726         small absolute value.
15727         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15728         (__kernel_sincosl): Force underflow exception for arguments with
15729         small absolute value.
15730         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15731         (__kernel_sinl): Force underflow exception for arguments with
15732         small absolute value.
15733         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15734         (__kernel_sincosl): Force underflow exception for arguments with
15735         small absolute value.
15736         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15737         (__kernel_sinl): Force underflow exception for arguments with
15738         small absolute value.
15739         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15740         (__kernel_sinl): Force underflow exception for arguments with
15741         small absolute value.
15742         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15743         (__kernel_sinf): Force underflow exception for arguments with
15744         small absolute value.
15745         * math/auto-libm-test-in: Add more tests of sin and sincos.
15746         * math/auto-libm-test-out: Regenerated.
15747
15748         [BZ #18245]
15749         [BZ #18583]
15750         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15751         (__kernel_standard_l): Use feholdexcept and fesetenv around
15752         conversion to double instead of special-casing overflow and
15753         underflow.
15754         * math/libm-test.inc (fmod_test_data): Add more tests.
15755         (remainder_test_data): Likewise.
15756         (sqrt_test_data): Likewise.
15757
15758 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15759
15760         [BZ #17403]
15761         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15762         atomic_read_barrier, atomic_write_barrier): Define.
15763         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15764         atomic_read_barrier, atomic_write_barrier): Define.
15765
15766 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15767
15768         * math/Makefile [$(PERL) != no]
15769         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15770         dependency on libm-test.stmp below the inclusion of Rules.
15771
15772 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15773
15774         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15775         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15776         and included header.
15777         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15778         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15779         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15780         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15781         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15782         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15783         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15784         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15785         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15786         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15787         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15788         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15789         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15790         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15791         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15792         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15793         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15794         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15795         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15796
15797 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15798
15799         [BZ #18371]
15800         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15801         intermediate but not final result might underflow.
15802         * math/s_csqrtf.c (__csqrtf): Likewise.
15803         * math/s_csqrtl.c (__csqrtl): Likewise.
15804         * math/auto-libm-test-in: Add more tests of csqrt.
15805         * math/auto-libm-test-out: Regenerated.
15806         * sysdeps/i386/fpu/libm-test-ulps: Update.
15807
15808         [BZ #18219]
15809         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15810         threshold on absolute value of exponent for which scaling is used.
15811         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15812         * math/auto-libm-test-in: Add more tests of exp2.
15813         * math/auto-libm-test-out: Regenerated.
15814
15815 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15816
15817         [BZ #17977]
15818         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15819         when initializing interface list, based on the bug analysis
15820         and the patch proposed by Eric Newton.
15821         * resolv/tst-res_hconf_reorder.c: New test.
15822         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15823         tst-res_hconf_reorder.
15824         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15825         and $(shared-thread-library).
15826         (tst-res_hconf_reorder-ENV): New variable.
15827
15828         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15829         in comment.
15830
15831 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15832
15833         [BZ #16353]
15834         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15835         (__expm1): Force underflow exception for arguments with small
15836         absolute value.
15837         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15838         (__expm1f): Force underflow exception for arguments with small
15839         absolute value.
15840         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15841         (__expm1): Force underflow exception for arguments with small
15842         absolute value.
15843         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15844         (__expm1f): Force underflow exception for arguments with small
15845         absolute value.
15846         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15847         Check for small arguments before calling __expm1.
15848         * math/auto-libm-test-in: Do not mark underflow exceptions as
15849         possibly missing for bug 16353.
15850         * math/auto-libm-test-out: Regenerated.
15851
15852 2015-06-22  Andreas Schwab  <schwab@suse.de>
15853
15854         [BZ #18513]
15855         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15856         PTR queries.
15857
15858 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15859
15860         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15861
15862         * string/strcoll_l.c: Remove unused struct element idxnow.
15863
15864 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15865
15866         [BZ #18569]
15867         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15868         underflow and return argument in case of subnormal argument.
15869         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15870         Likewise.
15871         * math/auto-libm-test-in: Add more tests of expm1.
15872         * math/auto-libm-test-out: Regenerated.
15873
15874         [BZ #16361]
15875         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15876         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15877         tiny results.
15878         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15879         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15880         tiny results.
15881         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15882         mark underflow exceptions as possibly missing for bug 16361.
15883         * math/auto-libm-test-out: Regenerated.
15884
15885 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15886
15887         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15888         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15889         Remove variable.
15890         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15891         (test-xfail-XOPEN2K8/utmpx.h/conform).
15892
15893         * conform/conformtest.pl ($xerrors): New variable.
15894         (note_error): New function.
15895         (compiletest): New argument $xfail.  Use not_error.
15896         (runtest): Likewise.
15897         (top level): Handle xfail- lines.  Update calls to compiletest and
15898         runtest.  Handle xfail- and optional- in headers listed with
15899         allow-header.
15900         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15901         (O_EXEC): Likewise.
15902         (O_SEARCH): Likewise.
15903         * conform/data/stropts.h-data (ioctl): Likewise.
15904         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15905         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15906         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15907         (msghdr.msg_controllen): Likewise.
15908         (cmsghdr.cmsg_len): Likewise.
15909         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15910         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15911         variable.
15912         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15913         (test-xfail-XPG4/stropts.h/conform): Likewise.
15914         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15915         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15916         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15917         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15918         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15919         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15920         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15921         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15922         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15923         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15924         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15925         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15926         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15927         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15928         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15929         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15930         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15931         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15932         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15933
15934 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15935
15936         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15937         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15938         definitions for proper unfolding of __MATHDECL_VEC.
15939
15940 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15941
15942         * benchtests/bench-strcoll.c:
15943         Include string.h.
15944         (main): Remove unused variable res.
15945
15946 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15947
15948         * timezone/Makefile (%/UTC %/Universal):
15949         Generate test-result files for UTC and Universal.
15950
15951 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15952
15953         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15954
15955 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15956
15957         [BZ #16350]
15958         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15959         for arguments with small absolute value.
15960         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15961         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15962         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15963         (__asinh): Force underflow exception for arguments with small
15964         absolute value.
15965         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15966         (__asinhf): Force underflow exception for arguments with small
15967         absolute value.
15968         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15969         (__asinhl): Force underflow exception for arguments with small
15970         absolute value.
15971         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15972         (__asinhl): Force underflow exception for arguments with small
15973         absolute value.
15974         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15975         (__asinhl): Force underflow exception for arguments with small
15976         absolute value.
15977         * math/auto-libm-test-in: Do not mark underflow exceptions as
15978         possibly missing for bug 16350.
15979         * math/auto-libm-test-out: Regenerated.
15980
15981         * include/bits/ipc.h: Remove file.
15982         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15983         variable.
15984         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15985         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15986         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15987         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15988         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15989         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15990         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15991         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15992         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15993
15994         * math/auto-libm-test-in: Remove spurious underflow allowance for
15995         tests of cexp.
15996         * math/auto-libm-test-out: Regenerated.
15997
15998         [BZ #18558]
15999         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16000         unconditional definition.
16001         (MCAST_BLOCK_SOURCE): Likewise.
16002         (MCAST_UNBLOCK_SOURCE): Likewise.
16003         (MCAST_LEAVE_GROUP): Likewise.
16004         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16005         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16006         (MCAST_MSFILTER): Likewise.
16007         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16008         Remove variable.
16009         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16010         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16011         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16012         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16013         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16014
16015 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16016
16017         * NEWS: Mention addition of x86_64 vector sincosf.
16018         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16019         * math/test-float-vlen4.h: Likewise.
16020         * math/test-float-vlen8.h: Likewise.
16021         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16022         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16023         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16024         * sysdeps/x86_64/fpu/Versions: New versions added.
16025         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16026         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16027         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16028         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16029         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16030         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16031         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16032         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16033         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16034         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16035         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16036         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16037         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16038         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16039         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16040         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16041         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16042         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16043         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16044         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16045         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16046         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16047         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16048         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16049
16050         * NEWS: Mention addition of x86_64 vector sincos.
16051         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16052         * math/math.h (__MATHDECL_VEC): New macro.
16053         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16054         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16055         declaration under condition.
16056         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16057         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16058         TEST_VEC_LOOP change.
16059         * math/test-double-vlen4.h: Likewise.
16060         * math/test-double-vlen8.h: Likewise.
16061         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16062         * math/test-float-vlen4.h: Likewise.
16063         * math/test-float-vlen8.h: Likewise.
16064         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16065         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16066         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16067         * sysdeps/x86_64/fpu/Versions: New versions added.
16068         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16069         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16070         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16071         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16072         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16073         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16074         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16075         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16076         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16077         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16078         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16079         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16080         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16081         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16082         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16083         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16084         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16085         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16086         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16087         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16088         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16089         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16090         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16091         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16092
16093         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16094         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16095         redirections for powf.
16096         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16097         * sysdeps/x86_64/fpu/Versions: New versions added.
16098         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16099         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16100         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16101         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16102         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16103         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16104         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16105         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16106         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16107         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16108         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16109         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16110         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16111         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16112         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16113         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16114         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16115         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16116         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16117         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16118         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16119         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16120         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16121         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16122         * math/test-float-vlen16.h: Fixed 2 argument macro.
16123         * math/test-float-vlen4.h: Likewise.
16124         * math/test-float-vlen8.h: Likewise.
16125         * NEWS: Mention addition of x86_64 vector powf.
16126
16127 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16128
16129         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16130         and redefine.
16131         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16132         and redefine.
16133         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16134         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16135         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16136
16137         [BZ #18553]
16138         * resource/getpriority.c (getpriority): Rename to __getpriority
16139         and define as weak alias of __getpriority.
16140         * resource/setpriority.c (setpriority): Rename to __setpriority
16141         and define as weak alias of __setpriority.
16142         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16143         __getpriority and define as weak alias of __getpriority.
16144         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16145         __setpriority and define as weak alias of __setpriority.
16146         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16147         strong name.
16148         (setpriority): Use __setpriority as strong name.
16149         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16150         __getpriority and define as weak alias of __getpriority.
16151         * include/sys/resource.h (__getpriority): Declare.  Use
16152         libc_hidden_proto.
16153         (__setpriority): Likewise.
16154         (getpriority): Don't use libc_hidden_proto.
16155         (setpriority): Likewise.
16156         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16157         getpriority.  Call __setpriority instead of setpriority.
16158         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16159         Remove variable.
16160
16161         [BZ #18547]
16162         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16163         as weak alias of __getttynam.  Use prototype function definition.
16164         Call __setttyent, __getttyent and __endttyent instead of
16165         setttyent, getttyent and endttyent.
16166         (getttyent): Rename to __getttyent and define as weak alias of
16167         __getttyent.  Call __setttyent instead of setttyent.  Call
16168         __fgets_unlocked instead of fgets_unlocked.
16169         (setttyent): Rename to __setttyent and define as weak alias of
16170         __setttyent.
16171         (endttyent): Rename to __endttyent and define as weak alias of
16172         __endttyent.
16173         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16174         (__setttyent): Likewise.
16175         (__endttyent): Likewise.
16176         (getttyent): Don't use libc_hidden_proto.
16177         (setttyent): Likewise.
16178         (endttyent): Likewise.
16179         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16180         __endttyent instead of setttyent, getttyent and endttyent.
16181         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16182         Remove variable.
16183
16184         [BZ #18546]
16185         * socket/recv.c (__recv): Use libc_hidden_def.
16186         * socket/socket.c (__socket): Likewise.
16187         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16188         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16189         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16190         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16191         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16192         libc_hidden_def.
16193         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16194         libc_hidden_weak.
16195         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16196         Use libc_hidden_proto.
16197         (__recv): Likewise.
16198         * socket/Versions (libc): Export __recv and __socket at version
16199         GLIBC_PRIVATE.
16200         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16201         instead of recv.
16202         (init_mq_netlink): Call __socket instead of socket.
16203         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16204         Remove variable.
16205
16206         [BZ #18545]
16207         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16208         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16209         hidden_weak.
16210         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16211         define as alias of __mq_timedsend.  Use hidden_weak.
16212         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16213         __mq_timedsend as strong name.
16214         (mq_timedreceive): Use __mq_timedreceive as strong name.
16215         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16216         (__mq_timedreceive): Likewise.
16217         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16218         __mq_timedreceive instead of mq_timedreceive.
16219         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16220         instead of mq_timedsend.
16221         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16222         Remove variable.
16223
16224         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16225         hidden_def and hidden_weak instead of libc_hidden_def and
16226         libc_hidden_weak.
16227         (top level): Refer to hidden_def in comment.
16228         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16229         macro.  Use it instead of libc_hidden_def.
16230         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16231         specify __GI_* name explicitly.
16232         (mq_timedreceive): Likewise.
16233         (mq_setattr): Likewise.
16234
16235         [BZ #18544]
16236         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16237         __pthread_barrier_init and define as weak alias of
16238         __pthread_barrier_init.
16239         * sysdeps/sparc/nptl/pthread_barrier_init.c
16240         (pthread_barrier_init): Likewise.
16241         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16242         __pthread_barrier_wait and define as weak alias of
16243         __pthread_barrier_wait.
16244         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16245         (pthread_barrier_wait): Likewise.
16246         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16247         (pthread_barrier_wait): Likewise.
16248         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16249         (pthread_barrier_wait): Likewise.
16250         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16251         (pthread_barrier_wait): Likewise.
16252         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16253         __pthread_barrier_wait at version GLIBC_PRIVATE.
16254         * include/pthread.h (__pthread_barrier_init): Declare.
16255         (__pthread_barrier_wait): Likewise.
16256         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16257         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16258         (helper_thread): Likewise.
16259         (init_mq_netlink): Call __pthread_barrier_init instead of
16260         pthread_barrier_init.
16261
16262         [BZ #18542]
16263         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16264         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16265         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16266         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16267         vswscanf.
16268         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16269         Remove variable.
16270
16271         [BZ #18540]
16272         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16273         strong alias of _IO_fflush.  Use libc_hidden_def.
16274         * libio/iofflush_u.c (fflush_unlocked): Rename to
16275         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16276         Use libc_hidden_weak.
16277         * include/stdio.h (__fflush_unlocked): Declare.  Use
16278         libc_hidden_proto.
16279         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16280         fflush_unlocked.
16281         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16282         Remove variable.
16283
16284         [BZ #18539]
16285         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16286         define as weak alias of __addseverity.
16287         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16288         Remove variable.
16289         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16290         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16291         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16292
16293         [BZ #18536]
16294         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16295         (__tfind): Likewise.
16296         (__tdelete): Likewise.
16297         (__twalk): Likewise.
16298         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16299         __twalk to GLIBC_PRIVATE.
16300         * include/search.h (__tsearch): Use libc_hidden_proto.
16301         (__tfind): Likewise.
16302         (__tdelete): Likewise.
16303         (__twalk): Likewise.
16304         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16305         Call __tdelete instead of tdelete.
16306         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16307         tfind.  Call __tsearch instead of tsearch.
16308         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16309         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16310         Remove variable.
16311         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16312
16313         [BZ #18534]
16314         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16315         (dprintf): Define as a weak alias of __dprintf, not a strong
16316         alias.
16317         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16318         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16319         dprintf.
16320         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16321         Remove variable.
16322         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16323         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16324
16325         [BZ #18533]
16326         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16327         not a strong alias.
16328         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16329         Remove variable.
16330
16331         [BZ #18532]
16332         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16333         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16334         (in6addr_loopback): Rename to __in6addr_loopback and define as
16335         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16336         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16337         libc_hidden_proto.
16338         (__in6addr_any): Likewise.
16339         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16340         in6addr_any.
16341         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16342         variable.
16343         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16344
16345 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16346
16347         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16348         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16349         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16350         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16351         redirections for pow.
16352         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16353         * sysdeps/x86_64/fpu/Versions: New versions added.
16354         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16355         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16356         build of SSE, AVX2 and AVX512 IFUNC versions.
16357         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16358         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16359         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16360         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16361         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16362         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16363         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16364         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16365         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16366         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16367         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16368         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16369         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16370         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16371         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16372         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16373         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16374         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16375         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16376         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16377         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16378         * NEWS: Mention addition of x86_64 vector pow.
16379
16380         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16381         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16382         redirections for expf.
16383         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16384         * sysdeps/x86_64/fpu/Versions: New versions added.
16385         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16386         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16387         build of SSE, AVX2 and AVX512 IFUNC versions.
16388         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16389         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16390         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16391         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16392         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16393         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16394         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16395         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16396         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16397         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16398         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16399         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16400         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16401         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16402         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16403         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16404         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16405         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16406         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16407         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16408         * NEWS: Mention addition of x86_64 vector expf.
16409
16410         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16411         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16412         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16413         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16414         redirections for exp.
16415         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16416         * sysdeps/x86_64/fpu/Versions: New versions added.
16417         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16418         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16419         build of SSE, AVX2 and AVX512 IFUNC versions.
16420         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16421         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16422         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16423         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16424         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16425         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16426         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16427         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16428         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16429         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16430         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16431         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16432         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16433         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16434         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16435         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16436         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16437         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16438         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16439         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16440         * NEWS: Mention addition of x86_64 vector exp.
16441
16442         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16443         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16444         redirections for logf.
16445         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16446         * sysdeps/x86_64/fpu/Versions: New versions added.
16447         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16448         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16449         build of SSE, AVX2 and AVX512 IFUNC versions.
16450         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16451         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16452         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16453         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16454         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16455         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16456         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16457         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16458         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16459         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16460         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16461         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16462         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16463         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16464         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16465         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16466         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16467         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16468         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16469         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16470         * NEWS: Mention addition of x86_64 vector logf.
16471
16472         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16473         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16474         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16475         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16476         redirections for log.
16477         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16478         * sysdeps/x86_64/fpu/Versions: New versions added.
16479         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16480         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16481         build of SSE, AVX2 and AVX512 IFUNC versions.
16482         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16483         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16484         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16485         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16486         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16487         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16488         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16489         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16490         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16491         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16492         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16493         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16494         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16495         test.
16496         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16497         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16498         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16499         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16500         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16501         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16502         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16503         * NEWS: Mention addition of x86_64 vector log.
16504
16505 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16506
16507         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16508         cfi_adjust_cfa_offset argument.
16509         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16510         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16511
16512         [BZ #18034]
16513         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16514         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16515         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16516         ordering using ldar.
16517         (_dl_tlsdesc_dynamic): Likewise.
16518         (_dl_tlsdesc_return_lazy): Likewise.
16519         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16520         relaxed atomics instead of volatile and synchronize with release store.
16521         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16522         volatile.
16523         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16524
16525 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16526
16527         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16528         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16529         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16530         * sysdeps/x86_64/fpu/Versions: New versions added.
16531         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16532         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16533         build of SSE, AVX2 and AVX512 IFUNC versions.
16534         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16535         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16536         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16537         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16538         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16539         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16540         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16541         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16542         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16543         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16544         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16545         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16546         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16547         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16548         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16549         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16550         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16551         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16552         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16553         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16554         * NEWS: Mention addition of x86_64 vector sinf.
16555
16556 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16557
16558         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16559         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16560         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16561         Remove variable.
16562         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16563         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16564
16565 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16566
16567         [BZ #18530]
16568         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16569         strong alias of _IO_fputs.  Use libc_hidden_def.
16570         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16571         and define as weak alias of __fputs_unlocked.  Use
16572         libc_hidden_weak.
16573         * include/stdio.h (__fputs_unlocked): Declare.  Use
16574         libc_hidden_proto.
16575         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16576         fputs_unlocked.
16577
16578         [BZ #18529]
16579         * resolv/netdb.h [__USE_POSIX]: Change condition to
16580         [__USE_XOPEN2K].
16581         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16582         not expect.
16583         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16584         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16585         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16586         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16587         [XPG4 || UNIX98] (AI_ALL): Likewise.
16588         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16589         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16590         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16591         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16592         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16593         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16594         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16595         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16596         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16597         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16598         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16599         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16600         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16601         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16602         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16603         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16604         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16605         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16606         [XPG4 || UNIX98] (gai_strerror): Likewise.
16607         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16608         [XPG4 || UNIX98] (getnameinfo): Likewise.
16609
16610         [BZ #18528]
16611         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16612         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16613         __USE_XOPEN2K8].
16614         (getgrent): Likewise.
16615         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16616         expect.
16617         [XPG3 || POSIX2008] (endgrent): Likewise.
16618         [XPG3] (setgrent): Likewise.
16619         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16620         variable.
16621         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16622
16623         [BZ #18527]
16624         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16625         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16626         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16627         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16628         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16629         * include/unistd.h (__getlogin_r): Declare.  Use
16630         libc_hidden_proto.
16631         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16632         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16633         variable.
16634         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16635         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16636         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16637
16638 2015-06-12  Martin Sebor  <msebor@redhat.com>
16639
16640         [BZ #18512]
16641         * Makerules (check-install-supported): New target.
16642         (install): Add check-install-supported as a dependency.
16643         * manual/install.texi (Installing the C Library): Document
16644         that overriding prefix and exec_prefix is not supported.
16645         Mention DESTDIR.
16646         * INSTALL: Regenerate from the above.
16647
16648 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16649
16650         [BZ #18519]
16651         * posix/Versions (libc): Export __libc_pread at version
16652         GLIBC_PRIVATE.
16653         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16654         instead of pread.
16655         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16656         variable.
16657
16658         [BZ #18522]
16659         * misc/efgcvt_r.c
16660         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16661         (cvt_symbol): Use weak_alias instead of strong_alias.
16662         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16663         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16664         Remove variable.
16665         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16666         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16667
16668         [BZ #18520]
16669         * inet/herrno.c (h_errno): Rename to __h_errno.
16670         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16671         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16672         to __h_errno instead of h_errno.
16673         * nptl/herrno.c (h_errno): Rename to __h_errno.
16674         (__h_errno_location): Refer to __h_errno not h_errno.
16675         * resolv/Versions (h_errno): Rename to __h_errno.
16676         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16677         Remove variable.
16678         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16679
16680 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16681
16682         * configure.ac: More strict check for AVX512 assembler support.
16683         * configure: Regenerated.
16684
16685         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16686         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16687         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16688         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16689         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16690         * sysdeps/x86_64/fpu/Versions: New versions added.
16691         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16692         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16693         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16694         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16695         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16696         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16697         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16698         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16699         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16700         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16701         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16702         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16703         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16704         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16705         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16706         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16707         test.
16708         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16709         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16710         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16711         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16712         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16713         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16714         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16715         * NEWS: Mention addition of x86_64 vector sin.
16716
16717 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16718
16719         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16720         comment.
16721
16722 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16723
16724         [BZ #18479]
16725         * nptl/pt-interp.c: New file.
16726         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16727         Add pt-interp.
16728         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16729         $(common-objpfx)runtime-linker.h.
16730
16731 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16732
16733         * Makeconfig (+interp): Remove unused variable.
16734         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16735         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16736         $(elf-objpfx)runtime-linker.h.
16737         ($(elf-objpfx)runtime-linker.h): Rename to
16738         $(common-objpfx)runtime-linker.h and move ...
16739         * Makerules [$(build-shared) = yes]: ... here.
16740         * elf/interp.c: Include <runtime-linker.h> instead of
16741         <elf/runtime-linker.h>.
16742
16743 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16744
16745         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16746         (__gettimeofday_syscall): Remove vsyscall fallback.
16747         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16748         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16749         Add syscall fallback function.
16750         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16751         if vDSO is not present.
16752         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16753         fallback function.
16754         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16755         present.
16756         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16757         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16758
16759 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16760
16761         [BZ #18497]
16762         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16763         of wcscmp.
16764         (wcscmp): Define as weak alias of WCSCMP.
16765         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16766         wcscoll.
16767         (USE_HIDDEN_DEF): Define.
16768         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16769         __wcscoll.  Don't use libc_hidden_weak.
16770         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16771         wcscmp.
16772         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16773         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16774         __GI_wcscmp.
16775         (weak_alias): Undefine and redefine.
16776         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16777         __wcscmp and define as weak alias of __wcscmp.
16778         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16779         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16780         (__wcscoll): Likewise.
16781         (wcscmp): Don't use libc_hidden_proto.
16782         (wcscoll): Likewise.
16783         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16784         wcscoll.
16785         * posix/regexec.c (check_node_accept_bytes): Likewise.
16786         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16787         variable.
16788         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16789         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16790
16791         [BZ #18507]
16792         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16793         __fstatvfs and define as weak alias of __fstatvfs.  Use
16794         libc_hidden_weak.
16795         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16796         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16797         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16798         Define as alias of __fstatvfs, not fstatvfs.
16799         (fstatvfs64): Likewise.
16800         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16801         Define as alias of __statvfs, not statvfs.
16802         (statvfs64): Likewise.
16803         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16804         Remove variable.
16805
16806 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16807
16808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16809         (HAVE_GETCPU_VSYSCALL): Define.
16810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16811         (HAVE_GETCPU_VSYSCALL): Likewise.
16812         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16813         * sysdeps/unix/sysv/linux/sched_getcpu.c
16814         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16815         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16816         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16817         prototype.
16818         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16819         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16820         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16821         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16822         Define.
16823         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16824         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16825         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16826         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16827
16828 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16829
16830         * sysdeps/x86_64/fpu/Makefile: New file.
16831         * sysdeps/x86_64/fpu/Versions: New file.
16832         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16833         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16834         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16835         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16836         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16837         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16838         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16839         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16840         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16841         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16842         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16843         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16844         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16845         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16846         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16847         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16848         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16849         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16850         * sysdeps/x86_64/configure: Regenerated.
16851         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16852         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16853         * manual/install.texi (Configuring and compiling): Document
16854         --disable-mathvec.
16855         * INSTALL: Regenerated.
16856         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16857
16858         * math/Makefile: Added rules for vector tests.
16859         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16860         declaration under condition.
16861         * math/test-double-vlen2.h: New file.
16862         * math/test-double-vlen4.h: New file.
16863         * math/test-double-vlen8.h: New file.
16864         * math/test-vec-loop.h: Added initialization macro.
16865         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16866         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16867         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16868         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16869         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16870         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16871         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16872         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16873         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16874         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16875         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16876
16877         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16878         * sysdeps/x86_64/fpu/Versions: New versions added.
16879         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16880         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16881         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16882         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16883         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16884         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16885         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16886         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16887         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16888         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16889         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16890         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16891         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16892         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16893         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16894         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16895         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16896         * NEWS: Mention addition of x86_64 vector cosf.
16897
16898         * math/Makefile: Added CFLAGS for new tests.
16899         * math/test-float-vlen16.h: New file.
16900         * math/test-float-vlen4.h: New file.
16901         * math/test-float-vlen8.h: New file.
16902         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16903         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16904         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16905         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16906         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16907         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16908         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16909         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16910         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16911         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16912         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16913
16914 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16915
16916         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16917         * locale/programs/ld-ctype.c: Likewise.
16918
16919 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16920
16921         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16922         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16923         bit_ZMM16_31_state): New macro.
16924         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16925         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16926
16927 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16928
16929         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16930
16931 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16932
16933         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16934
16935 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16936
16937         [BZ #18498]
16938         * libio/memstream.c (open_memstream): Rename to __open_memstream
16939         and define as weak alias of __open_memstream.
16940         * include/stdio.h (__open_memstream): Declare.  Use
16941         libc_hidden_proto.
16942         (open_memstream): Don't use libc_hidden_proto.
16943         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16944         open_memstream.
16945         * posix/getopt.c (_getopt_internal_r): Likewise.
16946         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16947         variable.
16948         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16949         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16950         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16951
16952         [BZ #18496]
16953         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16954         instead of wcrtomb.
16955
16956         [BZ #18483]
16957         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16958         [__USE_XOPEN2K8].  Remove redundant #endif.
16959         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16960         Remove redundant #if.
16961         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16962         Remove variable.
16963         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16964         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16965
16966         [BZ #18495]
16967         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16968         (__iswlower): Likewise.
16969         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16970         (__iswlower): Likewise.
16971         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16972         instead of towlower.
16973         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16974         instead of iswlower.  Call __towupper instead of towupper.
16975         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16976         instead of iswalnum.
16977
16978 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16979
16980         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16981         errors to stderr.
16982
16983 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16984
16985         [BZ #15661]
16986         [BZ #17322]
16987         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16988         Check for overflow properly.  Check for O_APPEND.  Ignore large
16989         file system block sizes.  Add comments about problems.
16990         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16991         * manual/filesys.texi (Storage Allocation): New node.
16992
16993 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16994
16995         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16996         cancellable syscalls.
16997         (SYS_ify): Add guard to no redefine it.
16998         (INLINE_SYSCALL): Likewise.
16999         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17000         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17001         SYSCALL_CANCEL instead.
17002         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17003         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17004         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17005         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17006         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17007         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17008         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17009         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17010         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17011         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17012         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17013         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17014         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17015         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17016         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17017         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17018         Likewise.
17019         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17020         (__libc_pread64): Likewise.
17021         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17022         (__libc_preadv): Likewise.
17023         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17024         (__libc_readv64): Likewise.
17025         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17026         (__libc_pwrite): Likewise.
17027         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17028         (__libc_pwrite64): Likewise.
17029         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17030         (__libc_pwritev): Likewise.
17031         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17032         (__libc_pwritev64): Likewise.
17033         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17034         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17035         (sync_file_range): Likewise.
17036         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17037         Likewise.
17038         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17039         Likewise.
17040         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17041         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17042         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17043         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17044         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17045         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17046         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17047         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17049         Likewise.
17050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17051         (__libc_read64): Likewise.
17052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17053         Likewise.
17054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17055         Likewise.
17056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17057         Likewise.
17058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17059         Likewise.
17060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17061         (__libc_pread64): Likewise.
17062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17063         Likewise.
17064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17065         (__libc_pwrite64): Likewise.
17066         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17067         (sync_file_range): Likewise.
17068         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17069         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17070         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17071         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17072         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17073         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17074         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17075         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17076         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17077         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17078         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17079         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17080         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17081         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17082         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17083         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17084         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17085         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17086         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17087         Likewise.
17088         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17089         Likewise.
17090         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17091         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17092         Likewise.
17093         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17094         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17095         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17096         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17097         Likewise.
17098         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17099         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17100         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17101         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17102         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17103
17104 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17105
17106         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17107         Include dl-vdso.
17108         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17109         Use VDSO routines for gettimeofday, clock_gettime if
17110         available.
17111         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17112         Declare VDSO symbols.
17113         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17114         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17115         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17116         * sysdeps/unix/sysv/linux/arm/Versions: Add
17117         __vdso_clock_gettime.
17118
17119 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17120
17121         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17122         be an inline implementation regardless of library is built within.
17123         (open_not_cancel_2): Likewise.
17124         (__read_nocancel): Likewise.
17125         (__write_nocancel): Likewise.
17126         (openat_not_cancel): Likewise.
17127         (openat_not_cancel_3): Likewise.
17128         (openat64_not_cancel): Likewise.
17129         (openat64_not_cancel_3): Likewise.
17130         (__close_nocancel): Likewise.
17131         (pause_not_cancel): Likewise.
17132         (nanosleep_not_cancel): Likewise.
17133         (sigsuspend_not_cancel): Likewise.
17134
17135 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17136
17137         [BZ #14958]
17138         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17139         wake-up.
17140         (__pthread_rwlock_rdlock_slow): Likewise.
17141         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17142         Likewise.
17143         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17144         Likewise.
17145         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17146         * nptl/tst-rwlock16.c: New file.
17147         * nptl/Makefile (tests): Add new test.
17148
17149 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17150
17151         [BZ #18324]
17152         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17153         missing wake-up of readers.
17154         * nptl/tst-rwlock15.c: New file.
17155         * nptl/Makefile (tests): Add new test.
17156
17157 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17158
17159         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17160         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17161         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17162         and __nacl_supply_interface_rtld.
17163         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17164         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17165         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17166         Add __nacl_supply_interface_rtld.
17167         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17168
17169 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17170
17171         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17172         isfinite.
17173         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17174         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17175
17176 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17177
17178         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17179         __signbit* with standard C99 macros.
17180         * math/e_exp10l.c: Likewise.
17181         * math/e_exp2l.c: Likewise.
17182         * math/e_scalb.c: Likewise.
17183         * math/e_scalbf.c: Likewise.
17184         * math/e_scalbl.c: Likewise.
17185         * math/s_ldexp.c: Likewise.
17186         * math/s_ldexpf.c: Likewise.
17187         * math/s_ldexpl.c: Likewise.
17188         * math/w_atan2.c: Likewise.
17189         * math/w_atan2f.c: Likewise.
17190         * math/w_atan2l.c: Likewise.
17191         * math/w_cosh.c: Likewise.
17192         * math/w_coshf.c: Likewise.
17193         * math/w_coshl.c: Likewise.
17194         * math/w_exp10.c: Likewise.
17195         * math/w_exp10f.c: Likewise.
17196         * math/w_exp10l.c: Likewise.
17197         * math/w_exp2.c: Likewise.
17198         * math/w_exp2f.c: Likewise.
17199         * math/w_exp2l.c: Likewise.
17200         * math/w_fmod.c: Likewise.
17201         * math/w_fmodf.c: Likewise.
17202         * math/w_fmodl.c: Likewise.
17203         * math/w_hypot.c: Likewise.
17204         * math/w_hypotf.c: Likewise.
17205         * math/w_hypotl.c: Likewise.
17206         * math/w_jnl.c: Likewise.
17207         * math/w_lgamma.c: Likewise.
17208         * math/w_lgamma_r.c: Likewise.
17209         * math/w_lgammaf.c: Likewise.
17210         * math/w_lgammaf_r.c: Likewise.
17211         * math/w_lgammal.c: Likewise.
17212         * math/w_lgammal_r.c: Likewise.
17213         * math/w_pow.c: Likewise.
17214         * math/w_powf.c: Likewise.
17215         * math/w_powl.c: Likewise.
17216         * math/w_remainder.c: Likewise.
17217         * math/w_remainderf.c: Likewise.
17218         * math/w_remainderl.c: Likewise.
17219         * math/w_scalb.c: Likewise.
17220         * math/w_scalbf.c: Likewise.
17221         * math/w_scalbl.c: Likewise.
17222         * math/w_scalbln.c: Likewise.
17223         * math/w_scalblnf.c: Likewise.
17224         * math/w_scalblnl.c: Likewise.
17225         * math/w_sinh.c: Likewise.
17226         * math/w_sinhf.c: Likewise.
17227         * math/w_sinhl.c: Likewise.
17228         * math/w_tgamma.c: Likewise.
17229         * math/w_tgammaf.c: Likewise.
17230         * math/w_tgammal.c: Likewise.
17231         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17232         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17233         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17234         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17235         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17236         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17237         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17238         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17239         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17240         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17241         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17242         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17243         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17244         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17245         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17246         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17247         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17248         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17249         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17250         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17251         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17252         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17253         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17254         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17255         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17256         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17257         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17258         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17259         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17260         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17261         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17262         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17263         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17264         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17265         * stdio-common/printf_fp.c: Likewise.
17266         * stdio-common/printf_fphex.c: Likewise.
17267         * stdio-common/printf_size.c: Likewise.
17268
17269 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17270
17271         [BZ #18470]
17272         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17273         strnlen.
17274         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17275         Remove variable.
17276         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17277         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17278         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17279         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17280         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17281         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17282         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17283         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17284         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17285         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17286
17287         [BZ #18468]
17288         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17289         weak alias of __wmemchr.  Use libc_hidden_weak.
17290         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17291         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17292         instead of wmemchr.
17293
17294 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17295
17296         [BZ #18383]
17297         * elf/tst-tlsalign-extern.c: New file.
17298         * elf/tst-tlsalign-extern-static.c: New file.
17299         * elf/tst-tlsalign-vars.c: New file.
17300         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17301         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17302         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17303         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17304         (test-xfail-tst-tlsalign-extern-static): New variable.
17305
17306 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17307
17308         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17309         Use variable name _sc_err instead of err.
17310         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17311         instead of ret.
17312         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17313         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17314         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17315         (INLINE_SYSCALL): Likewise.
17316
17317         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17318         * include/string.h (__strnlen): Use libc_hidden_proto.
17319         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17320         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17321         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17322         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17323         (libc_hidden_def): Undefine and redefine.
17324         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17325         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17326         __GI_strnlen.
17327         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17328         libc_hidden_def.
17329         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17330
17331         [BZ #18469]
17332         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17333         weak alias of __towlower.  Use libc_hidden_weak.
17334         (towupper): Rename to __towupper and define as weak alias of
17335         __towupper.  Use libc_hidden_weak.
17336         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17337         (__towupper): Likewise.
17338         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17339         __towlower instead of towlower.
17340
17341 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17342
17343         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17344         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17345
17346 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17347
17348         * sysdeps/aarch64/libm-test-ulps: Update.
17349
17350 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17351
17352         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17353         Define.
17354         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17355         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17356         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17357         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17358         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17359         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17360         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17361
17362 2015-06-01  Martin Sebor  <msebor@redhat.com>
17363
17364         [BZ #18116]
17365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17366         (__setcontext): Use extended four-operand version of mtsf whenever
17367         possible.
17368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17369         (__novec_swapcontext): Likewise.
17370
17371 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17372
17373         * benchtests/scripts/compare_bench.py: New file.
17374         * benchtests/scripts/import_bench.py (mean): New function.
17375         (split_list): Likewise.
17376         (do_for_all_timings): Likewise.
17377         (compress_timings): Likewise.
17378
17379         * benchtests/scripts/import_bench.py: New file.
17380         * benchtests/scripts/validate_benchout.py: Import import_bench
17381         instead of jsonschema.
17382         (validate_bench): Remove function.
17383         (main): Use import_bench.
17384
17385 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17386
17387         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17388         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17389
17390 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17391
17392         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17393
17394 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17395
17396         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17397         set THREAD_SELF->tid to a magic value and futex-wake it.
17398         Pass its address to the thread_exit system call.
17399         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17400         bit is clear.
17401         * sysdeps/nacl/lowlevellock.h: New file.
17402         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17403
17404         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17405         Add TIMEOUT to current time, don't subtract it.
17406
17407 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17408
17409         [BZ #2981]
17410         [BZ #18422]
17411         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17412         ($(objpfx)tst-audit2.out): Also depend on
17413         $(objpfx)tst-auditmod9b.so.
17414         * elf/tst-audit2.c: Include <dlfcn.h>.
17415         (calloc_called): New.
17416         (calloc): Allow to be called more than once.
17417         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17418
17419 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17420
17421         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17422         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17423
17424 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17425
17426         * stdlib/monetary.h: Fix comment.
17427
17428 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17429
17430         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17431         Avoid using variables in #defines that might cause shadowing.
17432         (INTERNAL_VSYSCALL_CALL): Likewise.
17433
17434 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17435
17436         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17437
17438         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17439         * nptl/lll_timedlock_wait.c: ... to this new file.
17440         * nptl/Makefile (libpthread-routines): Add it.
17441         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17442         * nptl/lll_timedwait_tid.c: ... to this new file.
17443         * nptl/Makefile (libpthread-routines): Add it.
17444         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17445         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17446         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17447         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17448         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17449         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17450         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17451         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17452         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17453         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17454
17455 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17456
17457         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17458         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17459         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17460         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17461         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17462         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17463         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17464         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17465         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17466         * sysdeps/unix/sysv/linux/tile/sysdep.h
17467         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17468         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17469         using vDSO syscall macro.
17470
17471 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17472
17473         [BZ #17293]
17474         * uk_UA: Fix sorting order for Ukrainian locale
17475
17476 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17477
17478         * stdlib/monetary.h: Fix comment.
17479
17480 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17481
17482         [BZ #18234]
17483         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17484         st_mtim and st_ctim members.
17485         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17486         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17487         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17488         (struct stat64): Likewise.
17489         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17490         (struct stat64): Likewise.
17491         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17492         (struct stat64): Likewise.
17493
17494 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17495
17496         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17497         Define and include sysdep-vdso.h.
17498         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17499         Likewise.
17500         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17501         Likewise.
17502         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17503         Define with VDSO_SYMBOL and use PTR_MANGLE.
17504         (__vdso_clock_gettime): Likewise.
17505         (__vdso_clock_getres): Likewise.
17506         (_libc_vdso_platform_setup): Likewise.
17507         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17508         Likewise.
17509         (_libc_vdso_platform_setup): Likewise.
17510         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17511         Likewise.
17512         (__vdso_clock_gettime): Likewise.
17513         (__vdso_clock_getres): Likewise.
17514         (__vdso_get_tbfreq): Likewise.
17515         (__vdso_getcpu): Likewise.
17516         (__vdso_time): Likewise.
17517         (__vdso_sigtramp_rt64): Likewise.
17518         (__vdso_signtramp32): Likewise.
17519         (__vdso_sigtramp_rt32): Likewise.
17520         (_libc_vdso_platform_setup): Likewise.
17521         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17522         Likewise.
17523         (__vdso_clock_gettime): Likewise.
17524         (__vdso_clock_getres): Likewise.
17525         (_libc_vdso_platform_setup): Likewise.
17526         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17527         Likewise.
17528         (__vdso_clock_gettime): Likewise.
17529         (_libc_vdso_platform_setup): Likewise.
17530         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17531         Likewise.
17532         (__vdso_getcpu): Likewise.
17533         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17534         Use VDSO_SYMBOL macro to define.
17535         (__vdso_clock_gettime): Likewise.
17536         (__vdso_clock_getres): Likewise.
17537         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17538         Likewise.
17539         (__vdso_clock_gettime): Likewise.
17540         (__vdso_clock_getres): Likewise.
17541         (__vdso_get_tbfreq): Likewise.
17542         (__vdso_getcpu): Likewise.
17543         (__vdso_time): Likewise.
17544         (__vdso_sigtramp_rt64): Likewise.
17545         (__vdso_signtramp32): Likewise.
17546         (__vdso_sigtramp_rt32): Likewise.
17547         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17548         Likewise.
17549         (__vdso_clock_gettime): Likewise.
17550         (__vdso_clock_getres): Likewise.
17551         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17552         Likewise.
17553         (__vdso_clock_gettime): Likewise.
17554         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17555         Likewise.
17556         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17557         macro.
17558         (INTERNAL_VSYSCALL): Likewise.
17559         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17560         Remove macro.
17561         (INTERNAL_VSYSCALL): Likewise.
17562         (INTERNAL_VSYSCALL_NCS): Likewise.
17563         (INTERNAL_VSYSCALL_CALL): New macro.
17564         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17565         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17566         Likewise.
17567         (INTERNAL_VSYSCALL): Likewise.
17568         (INTERNAL_VSYSCALL_NCS): Likewise.
17569         (INTERNAL_VSYSCALL_CALL): New macro.
17570         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17572         (INLINE_VSYSCALL): Remove macro.
17573         (INTERNAL_VSYSCALL): Remove macro.
17574         (INTERNAL_VSYSCALL_NCS): Remove macro.
17575         (INTERNAL_VSYSCALL_CALL): New macro.
17576         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17577         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17578         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17579         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17580         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17582         (INLINE_VSYSCALL): Remove macro.
17583         (INTERNAL_VSYSCALL): Likewise.
17584         (INTERNAL_VSYSCALL_NCS): Likewise.
17585         (INTERNAL_VSYSCALL_CALL): New macro.
17586         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17587         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17588         PTR_DEMANGLE on vDSO pointer.
17589         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17590         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17591         macro.
17592         (INTERNAL_SYSCALL): Likewise.
17593         (INTERNAL_VSYSCALL_NCS): Remove macro.
17594         (INTERNAL_VSYSCALL_CALL): New macro.
17595         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17596         Remove macro.
17597         (INTERNAL_VSYSCALL): Likewise.
17598         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17599         sysdep-vdso.h instead of libc-vdso.h.
17600         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17601         definition.
17602         (INLINE_VSYSCALL): Likewise.
17603         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17604         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17605         definition.
17606         (INLINE_VSYSCALL): Likewise.
17607         (INTERNAL_VSYSCALL): Likewise.
17608         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17609         * sysdeps/unix/sysv/linux/timespec_get.c
17610         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17611         (timespec_get): Use ANSI prototype.
17612         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17613         and definition for Linux.
17614
17615 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17616
17617         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17618         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17619
17620 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17621
17622         [BZ #2981]
17623         [BZ #18410]
17624         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17625         for missing DT_PLTRELSZ.
17626
17627 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17628
17629         Remove obsolete aliases that broke 'locale -a'
17630         [BZ #18412]
17631         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17632         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17633         breaking some applications that use 'locale -a' output.
17634         Change the encoding of this file from Latin-1 to ASCII to avoid
17635         other potential problems with people grepping this file.
17636
17637 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17638
17639         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17640         -fasynchronous-unwind-tables.
17641         (CFLAGS-sendto.c): Likewise.
17642         (CFLAGS-sendmsg.c): Likewise.
17643         (CFLAGS-connect.c): Likewise.
17644         (CFLAGS-recvmsg.c): Likewise.
17645         (CFLAGS-recvfrom.c): Likewise.
17646         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17647         (SOCKETCALL): New macro: non-cancellable socketcall.
17648         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17649         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17650         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17651         * sysdeps/unix/sysv/linux/accept.c: New file.
17652         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17653         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17654         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17655         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17656         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17657         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17658         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17659         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17660         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17661         * sysdeps/unix/sysv/linux/send.c: Likewise.
17662         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17663         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17664         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17665         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17666         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17667         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17668         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17669         prototype.
17670         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17671         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17672         instead of __internal_xxx function.
17673         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17674         prototype.
17675         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17676         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17677         instead of __internal_xxx function.
17678         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17679         prototype.
17680         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17681         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17682         instead of __internal_xxx function.
17683         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17684         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17685         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17686         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17687         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17688         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17689         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17690         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17691         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17692         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17693         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17694         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17695         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17696         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17697         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17698         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17699         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17700         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17701         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17702         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17705         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17706         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17707         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17708         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17709         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17710         * sysdeps/unix/sysv/linux/send.S: Likewise.
17711         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17712         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17713         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17714         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17715         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17716         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17717         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17718         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17719         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17720         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17721         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17722         socketcall is implemented in GLIBC.
17723
17724 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17725
17726         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17727         (__fma): Ignore uninitialized warnings around packing.
17728         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17729         (__fmaf): Ignore uninitialized warnings around packing.
17730         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17731         (__fmal): Ignore uninitialized warnings around packing.
17732
17733         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17734         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17735         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17736         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17737
17738         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17739         switch statement into default case.
17740         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17741
17742         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17743         a conditional in forcing "inexact".
17744         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17745         Likewise.
17746
17747 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17748
17749         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17750         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17751         for each INTERNAL_SYSCALL use.
17752
17753 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17754
17755         [BZ #438]
17756         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17757         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17758         variable.
17759
17760         [BZ #18444]
17761         * string/basename.c (basename): Rename to __basename and define as
17762         weak alias of __basename.  Use libc_hidden_weak.
17763         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17764         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17765         __basename instead of basename.
17766         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17767         Remove variable.
17768         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17769
17770 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17771
17772         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17773         (_IO_JUMPS_FILE_plus): New.
17774         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17775         _IO_CAST_FIELD_ACCESS.
17776         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17777         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17778         * libio/freopen.c (freopen): Likewise.
17779         * libio/freopen64.c (freopen64): Likewise.
17780         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17781         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17782         * libio/iofwide.c (_IO_fwide): Likewise.
17783         * libio/memstream.c (open_memstream): Likewise.
17784         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17785         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17786         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17787
17788 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17789
17790         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17791         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17792         NADJ.
17793         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17794         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17795         NADJ.
17796         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17797         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17798         NADJ.
17799
17800         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17801         (p == 4) case.
17802
17803         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17804         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17805         Remove variable.
17806         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17807         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17808         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17809
17810 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17811
17812         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17813         Adjust jump table label generation macros.
17814
17815 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17816
17817         * stdio-common/vfprintf.c (vfprintf): Move local variables
17818         args_malloced, specs, specs_malloced, and the code after
17819         do_positional to the printf_positional function.
17820         (printf_positional): New function.
17821
17822 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17823
17824         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17825         function.
17826         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17827         STEP4_TABLE, process_arg): Move macro definitions
17828         out of the vfprintf function.  (Cosmetic change only.)
17829
17830 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17831
17832         * benchtests/Makefile (stdio-common-bench): Define.
17833         (benchset): Add stdio-common-bench.
17834         * sprintf-inputs: New file.
17835         * sprintf-source.c: New file.
17836
17837 2015-05-21  Andreas Schwab  <schwab@suse.de>
17838
17839         [BZ #13028]
17840         [BZ #17053]
17841         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17842         of struct __res_state.
17843         * resolv/res_send.c (__libc_res_nsend): Likewise.
17844         (get_nsaddr): New function.
17845         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17846         statp directly.
17847
17848 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17849
17850         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17851         -D_POSIX_C_SOURCE=199506L.
17852
17853         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17854
17855         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17856         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17857         Do not mention otherwise.
17858         [POSIX] (_XOPEN_VERSION): Do not expect.
17859         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17860         [POSIX] (_POSIX2_C_BIND): Likewise.
17861         [POSIX] (_POSIX2_VERSION): Likewise.
17862         [POSIX] (_XOPEN_XPG2): Likewise.
17863         [POSIX] (_XOPEN_XPG3): Likewise.
17864         [POSIX] (_XOPEN_XPG4): Likewise.
17865         [POSIX] (_XOPEN_UNIX): Likewise.
17866         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17867         [POSIX] (_POSIX_BARRIERS): Likewise.
17868         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17869         [POSIX] (_POSIX_CPUTIME): Likewise.
17870         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17871         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17872         [POSIX] (_POSIX_SHELL): Likewise.
17873         [POSIX] (_POSIX_SPAWN): Likewise.
17874         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17875         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17876         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17877         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17878         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17879         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17880         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17881         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17882         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17883         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17884         [POSIX] (_POSIX2_PBS): Likewise.
17885         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17886         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17887         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17888         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17889         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17890         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17891         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17892         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17893         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17894         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17895         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17896         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17897         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17898         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17899         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17900         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17901         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17902         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17903         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17904         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17905         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17906         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17907         [POSIX] (_SC_2_C_BIND): Likewise.
17908         [POSIX] (_SC_2_C_VERSION): Likewise.
17909         [POSIX] (_SC_2_PBS): Likewise.
17910         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17911         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17912         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17913         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17914         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17915         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17916         [POSIX] (_SC_BARRIERS): Likewise.
17917         [POSIX] (_SC_BASE): Likewise.
17918         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17919         [POSIX] (_SC_DEVICE_IO): Likewise.
17920         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17921         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17922         [POSIX] (_SC_FD_MGMT): Likewise.
17923         [POSIX] (_SC_FIFO): Likewise.
17924         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17925         [POSIX] (_SC_FILE_LOCKING): Likewise.
17926         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17927         [POSIX] (_SC_IOV_MAX): Likewise.
17928         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17929         [POSIX] (_SC_NETWORKING): Likewise.
17930         [POSIX] (_SC_PAGE_SIZE): Likewise.
17931         [POSIX] (_SC_PASS_MAX): Likewise.
17932         [POSIX] (_SC_PIPE): Likewise.
17933         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17934         [POSIX] (_SC_REGEXP): Likewise.
17935         [POSIX] (_SC_SHELL): Likewise.
17936         [POSIX] (_SC_SIGNALS): Likewise.
17937         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17938         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17939         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17940         [POSIX] (_SC_USER_GROUPS): Likewise.
17941         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17942         [POSIX] (_SC_STREAMS): Likewise.
17943         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17944         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17945         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17946         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17947         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17948         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17949         [POSIX] (_PC_FILESIZEBITS): Likewise.
17950         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17951         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17952         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17953         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17954         [POSIX] (uid_t): Likewise.
17955         [POSIX] (gid_t): Likewise.
17956         [POSIX] (off_t): Likewise.
17957         [POSIX] (pid_t): Likewise.
17958         [POSIX] (cuserid): Allow.
17959         (_SC_2_CHAR_TERM): Require constant.
17960         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17961         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17962         variable.
17963
17964 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17965
17966         * sysdeps/nacl/pthread-pids.h: New file.
17967         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17968         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17969
17970         * nptl/pthread-pids.h: New file.
17971         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17972         * nptl/nptl-init.c: Include <pthread-pids.h>.
17973         (__pthread_initialize_minimal_internal):
17974         Call __pthread_initialize_pids instead of set_tid_address syscall.
17975
17976         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17977         * sysdeps/posix/usleep.c: ... here.
17978
17979 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17980
17981         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17982         call_pselect6 object.
17983         [$(subdir) = io]: Remove call_sync_file_range object.
17984         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17985         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17986         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17987         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17988
17989 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17990
17991         * math/s_cproj.c: Add include "math_private.h".
17992         * math/s_cprojf.c: Likewise.
17993         * math/s_cprojl.c: Likewise.
17994
17995 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17996
17997         [BZ #18244]
17998         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17999         high mantissa bit when testing whether P is a NaN.
18000         * math/libm-test.inc (remainder_test_data): Add more tests.
18001         (remquo_test_data): Likewise.
18002
18003         [BZ #18049]
18004         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18005         below -32, return the argument, with underflow if subnormal.
18006         * math/auto-libm-test-in: Add more tests of atanh.
18007         * math/auto-libm-test-out: Regenerated.
18008
18009 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18010
18011         [BZ #18434]
18012         * nptl/tst-sem15.c: New file.
18013         * nptl/Makefile (tests): Add it.
18014         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18015         s/<</>>/ to fix typo in EOVERFLOW check.
18016         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18017
18018 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18019
18020         * manual/strings.texi (envz_remove): Fix typo in safety
18021         annotations.
18022
18023 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18024             Steve Ellcey  <sellcey@imgtec.com>
18025
18026         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18027         in order to avoid strict alias warnings.
18028         (iruserok_af): Ditto for ra.
18029
18030 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18031
18032         [BZ #17581]
18033         * malloc/hooks.c
18034         (magicbyte): Convert to a function and avoid returning 0x01.
18035         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18036         (mem2chunk_check): Fix unsigned comparisons to zero.
18037         Hoist defs of sz and magic.
18038
18039 2015-05-19  Richard Henderson  <rth@redhat.com>
18040
18041         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18042
18043         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18044
18045 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18046
18047         [BZ #16159]
18048         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18049         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18050         (reused_arena): Find a non-corrupt arena.
18051         (heap_trim): Pass arena to unlink.
18052         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18053         malloc_printerr.
18054         (top_check): Likewise.
18055         (free_check): Likewise.
18056         (realloc_check): Likewise.
18057         * malloc/malloc.c (malloc_printerr): Add arena argument.
18058         (unlink): Likewise.
18059         (munmap_chunk): Adjust.
18060         (ARENA_CORRUPTION_BIT): New macro.
18061         (arena_is_corrupt): Likewise.
18062         (set_arena_corrupt): Likewise.
18063         (sysmalloc): Use mmap if there are no usable arenas.
18064         (_int_malloc): Likewise.
18065         (__libc_malloc): Don't fail if arena_get returns NULL.
18066         (_mid_memalign): Likewise.
18067         (__libc_calloc): Likewise.
18068         (__libc_realloc): Adjust for additional argument to
18069         malloc_printerr.
18070         (_int_free): Likewise.
18071         (malloc_consolidate): Likewise.
18072         (_int_realloc): Likewise.
18073         (_int_memalign): Don't touch corrupt arenas.
18074         * malloc/tst-malloc-backtrace.c: New test case.
18075
18076         * Makefile (summarize-tests): Fix return value on success.
18077
18078         * manual/string.texi (Envz Functions): Add envz_remove.
18079
18080 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18081
18082         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18083         (invalid_name): New function, broken out of ...
18084         (__opendirat): ... here.  Call it.
18085         (need_isdir_precheck): New function, broken out of ...
18086         (__opendirat): ... here.  Call it.
18087         Use __fxstatat64, not __xstatat64.
18088         (opendir_oflags): New function, broken out of ...
18089         (__opendirat): ... here.  Call it.
18090         (opendir_tail): New function, broken out of ...
18091         (__opendirat): ... here.  Call it.
18092         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18093         opendir_tail, rather than punting to __opendirat.
18094         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18095
18096 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18097
18098         * .gitignore: Ignore generated *.pyc.
18099
18100 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18101
18102         * include/stdio.h: Define __need_wint_t.
18103         * test-skeleton.c: Avoid `for' loop initial declaration.
18104         * nptl/tst-initializers1.c: Use test-skeleton.c.
18105
18106 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18107
18108         [BZ #18418]
18109         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18110
18111 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18112
18113         [BZ #16352]
18114         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18115         (__ieee754_atanh): Force underflow exception for results with
18116         small absolute value.
18117         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18118         (__ieee754_atanhf): Force underflow exception for results with
18119         small absolute value.
18120         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18121         (__ieee754_atanh): Force underflow exception for results with
18122         small absolute value.
18123         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18124         (__ieee754_atanhf): Force underflow exception for results with
18125         small absolute value.
18126         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18127         (__ieee754_atanhl): Force underflow exception for results with
18128         small absolute value.
18129         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18130         (__ieee754_atanhl): Force underflow exception for results with
18131         small absolute value.
18132         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18133         (__ieee754_atanhl): Force underflow exception for results with
18134         small absolute value.
18135         * math/auto-libm-test-in: Do not allow missing underflow
18136         exceptions from atanh.
18137         * math/auto-libm-test-out: Regenerated.
18138
18139         [BZ #18221]
18140         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18141         2**-28 as threshold for returning x or +/- 1/x.
18142         * math/auto-libm-test-in: Add more tests of tan.
18143         * math/auto-libm-test-out: Regenerated.
18144
18145         [BZ #18220]
18146         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18147         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18148         * math/auto-libm-test-in: Add another test of lgamma.
18149         * math/auto-libm-test-out: Regenerated.
18150
18151 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18152
18153         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18154         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18155         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18156         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18157         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18158         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18159         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18160         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18161         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18162         (log1): Use fabs.  (my_log2): Use fabs.
18163         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18164         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18165         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18166         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18167         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18168         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18169         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18170         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18171         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18172         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18173         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18174
18175 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18176
18177         [BZ #18217]
18178         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18179         as threshold for returning 1 - x.
18180         * math/auto-libm-test-in: Add more tests of erfc.
18181         * math/auto-libm-test-out: Regenerated.
18182
18183 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18184
18185         [BZ #18196]
18186         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18187         threshold for large arguments.
18188         * math/auto-libm-test-in: Add another test of atan.
18189         * math/auto-libm-test-out: Regenerated.
18190
18191         [BZ #16339]
18192         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18193         (__log1p): Force underflow exception for results with small
18194         absolute value.
18195         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18196         (__log1pf): Force underflow exception for results with small
18197         absolute value.
18198         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18199         (__log1p): Force underflow exception for results with small
18200         absolute value.
18201         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18202         (__log1pf): Force underflow exception for results with small
18203         absolute value.
18204         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18205         (__log1pl): Force underflow exception for results with small
18206         absolute value.
18207         * math/auto-libm-test-in: Do not allow missing underflow
18208         exceptions from log1p.
18209         * math/auto-libm-test-out: Regenerated.
18210
18211 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18212             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18213
18214         [BZ #16704]
18215         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18216
18217 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18218
18219         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18220         (libmvec): New variable.
18221         * configure.ac: Added option for mathvec build.
18222         * configure: Regenerated.
18223         * mathvec/Depend: New file.
18224         * mathvec/Makefile: New file.
18225         * shlib-versions: Added libmvec.
18226         * math/Makefile: Added rule for libm.so installation.
18227
18228         * bits/math-vector.h: New file.
18229         * bits/libm-simd-decl-stubs.h: New header.
18230         * math/Makefile (headers): Added new header
18231         libm-simd-decl-stubs.h.
18232         * math/math.h (__MATHCALL_VEC): New macro.
18233
18234         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18235         for conditions in testing functions.
18236         * math/Makefile: Added call of libm-have-vector-test.sh.
18237         * math/libm-test.inc (HAVE_VECTOR): New macros.
18238
18239         * math/libm-test.inc: START refactored.
18240         * math/test-double.c (TEST_MATHVEC): Add define.
18241         * math/test-float.c: Likewise.
18242         * math/test-idouble.c: Likewise.
18243         * math/test-ifloat.c: Likewise.
18244         * math/test-ildoubl.c: Likewise.
18245         * math/test-ldouble.c: Likewise.
18246         * sysdeps/generic/math-tests-arch.h
18247         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18248         architecture check.
18249
18250         * math/test-double.c (FUNC_TEST): New macro.
18251         * math/test-float.c: Likewise.
18252         * math/test-idouble.c: Likewise.
18253         * math/test-ifloat.c: Likewise.
18254         * math/test-ildoubl.c: Likewise.
18255         * math/test-ldouble.c: Likewise.
18256         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18257
18258 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18259
18260         * sysdeps/nacl/fdopendir.c: New file.
18261
18262         * dirent/scandir-tail.c: New file.
18263         * dirent/scandir64-tail.c: New file.
18264         * dirent/Makefile (routines): Add them.
18265         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18266         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18267         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18268         [!SCANDIR] (SCANDIR_TAIL): New macro.
18269         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18270         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18271         (SCANDIRAT): Macro removed.
18272         (SCANDIR_TAIL): New macro.
18273         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18274         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18275         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18276         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18277         (READDIR): Macro removed.
18278         (SCANDIR_TAIL): New macro.
18279         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18280         (SCANDIR_TAIL): New macro.
18281
18282         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18283         * dirent/scandir-cancel.c: ... to this new file.
18284         * dirent/Makefile (routines): Add it.
18285         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18286         * sysdeps/unix/sysv/linux/i386/scandir64.c
18287         (SKIP_SCANDIR_CANCEL): Macro removed.
18288         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18289
18290         * dirent/tst-scandir.c: New file.
18291         * dirent/tst-scandir64.c: New file.
18292         * dirent/Makefile (tests): Add them.
18293
18294 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18295
18296         [BZ #18409]
18297         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18298
18299 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18300
18301         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18302         list.
18303
18304 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18305
18306         * benchtests/bench-strcoll.c: New benchmark.
18307         * benchtests/Makefile: Generate locales and run benchmark.
18308         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18309         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18310         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18311         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18312         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18313         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18314         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18315         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18316         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18317         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18318         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18319         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18320         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18321         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18322         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18323         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18324         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18325         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18326         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18327         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18328         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18329         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18330         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18331         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18332
18333 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18334
18335         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18336         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18337
18338 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18339
18340         * posix/uname-values.h: New file.
18341         * posix/uname.c: Include that instead of <config-name.h>.
18342         * sysdeps/nacl/uname-values.h: New file.
18343         * sysdeps/arm/nacl/uname-values.h: New file.
18344
18345 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18346
18347         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18348         splitting into fields.
18349
18350 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18351
18352         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18353         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18354         * locale/localeinfo.h: Add enum collation_encoding_type.
18355         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18356         * programs/ld-collate.c (collate_output): Add encoding type info.
18357         * string/strcoll_l.c (STRDIFF): New function.
18358         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18359         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18360
18361 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18362
18363         [BZ #18397]
18364         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18365         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18366         <fpu_control.h> instead of <math/fpu_control.c>.
18367         * sysdeps/mips/mips32/fpu/Makefile: New file.
18368
18369 2015-05-11  Andreas Schwab  <schwab@suse.de>
18370
18371         [BZ #18007]
18372         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18373         nss_endgrent.
18374         (_nss_compat_endgrent): Call nss_endgrent.
18375         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18376         nss_endpwent.
18377         (_nss_compat_endpwent): Call nss_endpwent.
18378         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18379         needent, call nss_setspent only if non-zero.
18380         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18381         (internal_endspent): Don't call nss_endspent.
18382         (_nss_compat_endspent): Call nss_endspent.
18383         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18384         Remove.  All uses removed.
18385         (internal_setent): Remove parameter stayopen, add parameter
18386         stream.  Use it instead of global variable.
18387         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18388         (internal_endent, internal_getent): Add parameter stream.  Use it
18389         instead of global variable.
18390         (CONCAT(_nss_files_end,ENTNAME))
18391         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18392         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18393         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18394         uses removed.
18395         (internal_setent, internal_endent): Add parameter stream.  Use it
18396         instead of global variable.
18397         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18398         stream.
18399         (get_next_alias): Add parameter stream.
18400         (_nss_files_getaliasent_r): Pass global stream.
18401         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18402         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18403         (_nss_files_gethostbyname4_r): Pass local stream to
18404         internal_setent, internal_getent and internal_endent.  Remove
18405         locking.
18406
18407 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18408
18409         * tst-strfmon1.c (tests): Update expected currency symbol.
18410
18411 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18412
18413         * sysdeps/nacl/gethostname.c: New file.
18414
18415 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18416
18417         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18418         and sinh.
18419         * math/auto-libm-test-out: Regenerated.
18420         * sysdeps/i386/fpu/libm-test-ulps: Update.
18421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18422
18423 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18424
18425         [BZ #18125]
18426         * stdlib/tst-setcontext3.c: New file.
18427         * stdlib/tst-setcontext3.sh: New file.
18428         * stdlib/Makefile (tests): Add tst-setcontext3.
18429         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18430         to verify test program created output file.
18431         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18432         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18433         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18434         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18435
18436 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18437
18438         [BZ #18383]
18439         * elf/tst-tlsalign.c: New file.
18440         * elf/tst-tlsalign-static.c: New file.
18441         * elf/tst-tlsalign-lib.c: New file.
18442         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18443         (tests-static): Add tst-tlsalign-static.
18444         (modules-names): Add tst-tlsalign-lib.
18445         (test-xfail-tst-tlsalign): New variable.
18446         (test-xfail-tst-tlsalign-static): New variable.
18447
18448         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18449         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18450
18451 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18452
18453         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18454         csqrt, erfc, sin and sincos.
18455         * math/auto-libm-test-out: Regenerated.
18456         * sysdeps/i386/fpu/libm-test-ulps: Update.
18457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18458
18459 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18460
18461         * sysdeps/aarch64/libm-test-ulps: Update.
18462
18463 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18464
18465         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18466         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18467         * math/auto-libm-test-out: Regenerated.
18468         * sysdeps/i386/fpu/libm-test-ulps: Update.
18469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18470
18471 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18472
18473         [BZ #18265]
18474         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18475         (wcsncpy): Likewise.
18476
18477 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18478
18479         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18480         Assume __ASSUME_FALLOCATE is always true.
18481         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18482         (__posix_fallocate64_l64): Likweise.
18483         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18484         (posix_fallocate): Likewise.
18485         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18486         (__posix_fallocate64_l64): Likewise.
18487         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18488         [!__ASSUME_FALLOCATE]: Add comment.
18489
18490 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18491
18492         * sysdeps/unix/sysv/linux/i386/Makefile
18493         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18494         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18495         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18496         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18497         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18498         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18499         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18500
18501 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18502
18503         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18504         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18505         tgamma.
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 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18511
18512         * math/auto-libm-test-in: Add more tests of tgamma.
18513         * math/auto-libm-test-out: Regenerated.
18514         * sysdeps/i386/fpu/libm-test-ulps: Update.
18515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18516
18517         * math/auto-libm-test-in: Add more tests of tanh.
18518         * math/auto-libm-test-out: Regenerated.
18519         * sysdeps/i386/fpu/libm-test-ulps: Update.
18520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18521
18522         * math/auto-libm-test-in: Add more tests of tan.
18523         * math/auto-libm-test-out: Regenerated.
18524         * sysdeps/i386/fpu/libm-test-ulps: Update.
18525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18526
18527         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18528         * math/auto-libm-test-out: Regenerated.
18529         * sysdeps/i386/fpu/libm-test-ulps: Update.
18530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18531
18532         * math/auto-libm-test-in: Add another test of pow.
18533         * math/auto-libm-test-out: Regenerated.
18534         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18535
18536         * math/auto-libm-test-in: Add more tests of lgamma.
18537         * math/auto-libm-test-out: Regenerated.
18538         * sysdeps/i386/fpu/libm-test-ulps: Update.
18539         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18540
18541         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18542         log1p.
18543         * math/auto-libm-test-out: Regenerated.
18544         * sysdeps/i386/fpu/libm-test-ulps: Update.
18545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18546
18547 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18548
18549         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18550         Elf64_Chdr structs and ELFCOMPRESS constants.
18551
18552 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18553
18554         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18555         expm1.
18556         * math/auto-libm-test-out: Regenerated.
18557         * sysdeps/i386/fpu/libm-test-ulps: Update.
18558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18559
18560         * math/auto-libm-test-in: Add more tests of erf and erfc.
18561         * math/auto-libm-test-out: Regenerated.
18562         * sysdeps/i386/fpu/libm-test-ulps: Update.
18563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18564
18565 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18566
18567         * config.h.in (HAVE_AARCH64_BE): Add.
18568
18569 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18570
18571         * math/auto-libm-test-in: Add more tests of csqrt.
18572         * math/auto-libm-test-out: Regenerated.
18573         * sysdeps/i386/fpu/libm-test-ulps: Update.
18574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18575
18576         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18577         * math/auto-libm-test-out: Regenerated.
18578         * sysdeps/i386/fpu/libm-test-ulps: Update.
18579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18580
18581         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18582
18583 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18584
18585         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18586         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18587
18588         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18589         (euidaccess, eaccess): Define as weak aliases.
18590
18591         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18592         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18593         but __suseconds_t is often 'long int' so some sources assume that
18594         type is being used (e.g. they use %ld to print tv_usec).
18595
18596 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18597
18598         [BZ #18007]
18599         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18600         (CVE-2014-8121)
18601         * nss/tst-nss-getpwent.c: New file.
18602         * nss/Makefile (tests): Add new test.
18603
18604 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18605
18606         [BZ #18346]
18607         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18608         exponents less than 48 as cases where high part of mantissa needs
18609         examining to determine whether argument is integral.
18610         * math/libm-test.inc (round_test_data): Add more tests.
18611
18612 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18613
18614         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18615
18616 2015-04-27  David S. Miller  <davem@davemloft.net>
18617
18618         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18619         __tls_get_addr.
18620         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18621
18622 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18623
18624         [BZ#18333]
18625         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18626
18627 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18628
18629         [BZ#18333]
18630         * time/tzset.c (parse_tzname): Return error on memory allocation
18631         failure.
18632         * test-skeleton.c (struct temp_name_list): Change type of name
18633         member to non-const.
18634         (add_temp_file): Create a copy of the file name.
18635         (delete_temp_files): Deallocate memory.
18636         (create_temp_file): Add comment.
18637
18638 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18639
18640         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18641         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18642
18643 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18644
18645         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18646         * sysdeps/arm/configure: Regenerated.
18647
18648 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18649
18650         [BZ #17715]
18651         * time/tzfile.c (__tzfile_read): Check for large values of
18652         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18653         * time/tzset.c (__tzstring_len): New function, based on the old
18654         __tzstring function.
18655         (__tzstring): Call __tzstring_len.
18656         (parse_tzname): New helper function extracted from
18657         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18658         the input string.
18659         (parse_offset): New helper function extracted from
18660         __tzset_parse_tz.  Replace switch with fallthrough with
18661         initialization before sscanf.
18662         (parse_rule): Likewise.
18663         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18664         new-style function definition.
18665         * timezone/Makefile (tests): Add tst-tzset.
18666         (tst-tzset.out): Dependencies on time zone files.
18667         (tst-tzset-ENV): Set TZDIR.
18668         (testdata/XT%): Copy crafted time zone files.
18669         * timezone/README: Mention crafted time zone files.
18670         * timezone/testdata/XT1, timezone/testdata/XT2,
18671         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18672         files.
18673         * timezone/tst-tzset.c: New test.
18674
18675 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18676
18677         * Makeconfig (+gccwarn): Remove -Winline.
18678
18679 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18680
18681         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18682
18683 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18684
18685         * NEWS: Mention sysconf() cache information support for s390.
18686         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18687
18688 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18689
18690         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18691         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18692         (__nearbyint): Likewise.
18693         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18694         (copysignl): Likewise.
18695
18696 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18697
18698         [BZ #18287]
18699         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18700         based on padding.  (CVE-2015-1781)
18701
18702 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18703
18704         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18705         libc-vdso.h.
18706         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18707         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18708         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18709         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18710         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18711         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18712         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18713         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18714         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18715         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18716         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18717         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18718         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18719         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18720         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18721         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18722         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18723         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18724         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18725         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18726         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18727         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18728         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18729
18730 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18731
18732         * stdlib/setenv.c (__add_to_environ):
18733         Dump core quickly if setenv (..., NULL, ...) is called.
18734         This time, do it the right way, and pacify GCC with a pragma.
18735
18736 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18737
18738         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18739         IMAP->l_prev cannot be null, and #if out the code for the contrary
18740         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18741         believe that NS (&_dl_ns[NSID]) could point outside the array.
18742
18743         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18744         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18745         before using NSID as an index.
18746
18747 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18748
18749         [BZ #17825]
18750         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18751         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18752         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18753
18754 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18755
18756         Add preliminary port to Google Native Client on ARM.
18757         * abi-tags (.*-.*-nacl.*): New entry.
18758         * sysdeps/arm/nacl: New directory.
18759         * sysdeps/nacl: New directory.
18760
18761 2015-04-16  David S. Miller  <davem@davemloft.net>
18762
18763         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18764         lowlevellock-futex.h
18765
18766 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18767
18768         * sysdeps/tile/configure.ac: New file.
18769         * sysdeps/tile/configure: Regenerated.
18770
18771 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18772
18773         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18774         conditionals for weak_alias and libc_hidden_weak.
18775         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18776         libc_hidden_weak and weak_alias.
18777         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18778         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18779         and weak_alias for static one.
18780
18781 2015-04-15  David S. Miller  <davem@davemloft.net>
18782
18783         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18784
18785 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18786
18787         [BZ #18206]
18788         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18789           Use signed comparision instead of substraction to avoid
18790           overflow bug.
18791         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18792           Take the sign of ret.
18793         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18794           Do not expect precise return values. Only the sign matters.
18795         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18796         * wcsmbs/test-wcsncmp.c: New File.
18797         * string/test-strncmp.c: Add wcsncmp support.
18798
18799 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18800
18801         [BZ #6792]
18802         * math/w_log1p.c: New file.
18803         * math/w_log1pf.c: Likewise.
18804         * math/w_log1pl.c: Likewise.
18805         * math/Makefile (libm-calls): Add w_log1p.
18806         * math/s_log1pl.c (log1pl): Remove weak_alias.
18807         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18808         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18809         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18810         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18811         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18812         [NO_LONG_DOUBLE] (log1pl): Likewise.
18813         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18814         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18815         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18816         (log1p): Remove long_double_symbol.
18817         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18818         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18819         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18820         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18821         remove weak_alias for corresponding log1p function.
18822         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18823         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18824         * sysdeps/ia64/fpu/w_log1p.c: New file.
18825         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18826         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18827         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18828
18829 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18830
18831         [BZ #18247]
18832         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18833         decimal exponent by 1.
18834         * stdlib/tst-strtod-round-data: Add more tests.
18835         * stdlib/tst-strtod-round.c (tests): Regenerated.
18836
18837 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18838
18839         * math/auto-libm-test-in: Add more tests of clog and clog10.
18840         * math/auto-libm-test-out: Regenerated.
18841         * sysdeps/i386/fpu/libm-test-ulps: Update.
18842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18843
18844 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18845
18846         * Makeconfig (module-cppflags): Exclude all .v.i files.
18847         (skip-module-cppflags): Variable removed.
18848
18849         * configure.ac (libc_config_ok): Initialize before reading
18850         preconfigure scripts, not after.
18851         * configure: Regenerated.
18852
18853         * test-skeleton.c (TIMEOUT): Move #define to top level.
18854         (main): Grok environment variable TEST_DIRECT.  If set, print
18855         test expectation details into that file and then behave as if
18856         given --direct.
18857
18858 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18859
18860         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18861         warning on 32-bit.
18862
18863 2015-04-08  David S. Miller  <davem@davemloft.net>
18864
18865         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18866
18867 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18868
18869         * math/auto-libm-test-in: Add more tests of atanh.
18870         * math/auto-libm-test-out: Regenerated.
18871         * sysdeps/i386/fpu/libm-test-ulps: Update.
18872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18873
18874         * math/auto-libm-test-in: Add more tests of atan.
18875         * math/auto-libm-test-out: Regenerated.
18876         * sysdeps/i386/fpu/libm-test-ulps: Update.
18877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18878
18879 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18880
18881         * elf/pldd.c (main): Rewrite to use struct
18882         scratch_buffer instead of extend_alloca.
18883         * elf/pldd-xx.c (find_maps): Likewise.
18884         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18885         <alloca.h>.
18886         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18887         scratch_buffer instead of extend_alloca.
18888         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18889         grp/compat-initgroups.c.
18890         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18891         Rewrite to use struct scratch_buffer instead of extend_alloca.
18892         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18893         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18894
18895 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18896
18897         * math/auto-libm-test-in: Add more tests of cbrt.
18898         * math/auto-libm-test-out: Regenerated.
18899         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18900
18901         * math/auto-libm-test-in: Add more tests of cabs.
18902         * math/auto-libm-test-out: Regenerated.
18903         * sysdeps/i386/fpu/libm-test-ulps: Update.
18904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18905
18906         [BZ #18210]
18907         [BZ #18211]
18908         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18909         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18910         computations.
18911         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18912         clog10.
18913         * math/auto-libm-test-out: Regenerated.
18914         * sysdeps/i386/fpu/libm-test-ulps: Update.
18915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18916
18917         [BZ #18197]
18918         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18919         (atan): Set FE_TONEAREST mode for internal computations.
18920         * math/auto-libm-test-in: Add more tests of atan.
18921         * math/auto-libm-test-out: Regenerated.
18922
18923 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18924
18925         [BZ #17930]
18926         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18927
18928 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18929
18930         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18931
18932 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18933
18934         * include/scratch_buffer.h: New file.
18935         * malloc/scratch_buffer_grow.c: Likewise.
18936         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18937         * malloc/scratch_buffer_set_array_size.c: Likewise.
18938         * malloc/tst-scratch_buffer.c: Likewise.
18939         * malloc/Makefile (routines): Add scratch_buffer_grow.
18940         (tests): Add test case.
18941         * malloc/Versions (GLIBC_PRIVATE): Export
18942         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18943         __libc_scratch_buffer_set_array_size.
18944
18945 2015-04-06  Richard Henderson  <rth@redhat.com>
18946
18947         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18948         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18949
18950         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18951         unsigned int before printing.
18952
18953 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18954
18955         [BZ #17596]
18956         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18957         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18958
18959 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18960
18961         * include/libc-internal.h (libc_max_align_t): Define.
18962
18963 2015-04-02  Andreas Schwab  <schwab@suse.de>
18964
18965         [BZ #16850]
18966         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18967
18968 2015-04-02  Mel Gorman  <mgorman@suse.de>
18969
18970         [BZ #17195]
18971         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18972         as well as the main arena.
18973
18974 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18975
18976         [BZ #18185]
18977         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18978         sharing L2 cache to 2 for Silvermont/Knights Landing.
18979
18980 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18981
18982         [BZ #17711]
18983         * config.make.in (have-protected-data): New.
18984         * configure.ac: Check linker support for protected data symbol.
18985         * configure: Regenerated.
18986         * elf/Makefile (modules-names): Add tst-protected1moda and
18987         tst-protected1modb if $(have-protected-data) is yes.
18988         (tests): Add tst-protected1a and tst-protected1b if
18989         $(have-protected-data) is yes.
18990         ($(objpfx)tst-protected1a): New.
18991         ($(objpfx)tst-protected1b): Likewise.
18992         (tst-protected1modb.so-no-z-defs): Likewise.
18993         * elf/tst-protected1a.c: New file.
18994         * elf/tst-protected1b.c: Likewise.
18995         * elf/tst-protected1mod.h: Likewise.
18996         * elf/tst-protected1moda.c: Likewise.
18997         * elf/tst-protected1modb.c: Likewise.
18998
18999 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19000
19001         [BZ #17711]
19002         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19003         indicates it is called from do_lookup_x on relocation against
19004         protected data, skip the data definion in the executable from
19005         copy reloc.
19006         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19007         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19008         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19009         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19010         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19011         otherwise to 0.
19012         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19013         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19014         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19015         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19016         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19017         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19018
19019 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19020
19021         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19022         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19023
19024 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19025
19026         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19027         THREAD_SETMEM_NC.
19028         * sysdeps/x86_64/nptl/tls.h: Ditto.
19029
19030 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19031
19032         * dlfcn/tststatic.c (main): Converted to ...
19033         (do_test): ... this.
19034         (TEST_FUNCTION): New macro.
19035         Include test-skeleton.c.
19036
19037 2015-03-26  Alan Modra  <amodra@gmail.com>
19038
19039         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19040         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19041         zero for undefined weak.
19042         (elf_machine_plt_conflict): Similarly.
19043
19044 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19045
19046         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19047         atanh.
19048         * math/auto-libm-test-out: Regenerated.
19049         * sysdeps/i386/fpu/libm-test-ulps: Update.
19050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19051
19052         * math/auto-libm-test-in: Add another test of asin.
19053         * math/auto-libm-test-out: Regenerated.
19054         * sysdeps/i386/fpu/libm-test-ulps: Update.
19055         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19056
19057         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19058         Remove macro.
19059         (LLL_EBX_REG): Likewise.
19060         (LLL_ENTER_KERNEL): Likewise.
19061
19062         * math/auto-libm-test-in: Add more tests of asin.
19063         * math/auto-libm-test-out: Regenerated.
19064         * sysdeps/i386/fpu/libm-test-ulps: Update.
19065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19066
19067         [BZ #18138]
19068         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19069         libc_do_syscall_args): New structure.
19070         (INTERNAL_SYSCALL_MAIN_0): New macro.
19071         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19072         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19073         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19074         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19075         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19076         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19077         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19078         Replace conditional definitions by conditional definitions of ....
19079         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19080         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19081         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19082         (libpthread-sysdep_routines): Add libc-do-syscall.
19083         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19084         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19085         to __NR_futex not 240.
19086
19087 2015-03-25  Alan Modra  <amodra@gmail.com>
19088
19089         * NEWS: Advertise TLS optimization.
19090         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19091         (DT_PPC_NUM): Increment.
19092         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19093         (CHECK_STATIC_TLS): Use here.
19094         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19095         TLS descriptors.
19096         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19097         * sysdeps/powerpc/dl-tls.c: New file.
19098         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19099         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19100         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19101         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19105
19106 2015-03-25  Alan Modra  <amodra@gmail.com>
19107
19108         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19109         for overlapping .opd entries" to "support...".
19110         * sysdeps/powerpc/powerpc64/configure: Regenerate
19111
19112 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19113
19114         * math/auto-libm-test-in: Add more tests of acos.
19115         * math/auto-libm-test-out: Regenerated.
19116         * sysdeps/i386/fpu/libm-test-ulps: Update.
19117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19118
19119         * math/auto-libm-test-in: Add more tests of expm1.
19120         * math/auto-libm-test-out: Regenerated.
19121         * sysdeps/i386/fpu/libm-test-ulps: Update.
19122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19123
19124 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19125
19126         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19127         * math/auto-libm-test-out: Regenerated.
19128         * sysdeps/i386/fpu/libm-test-ulps: Update.
19129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19130
19131         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19133
19134         * math/auto-libm-test-in: Add more tests of log2.
19135         * math/auto-libm-test-out: Regenerated.
19136         * sysdeps/i386/fpu/libm-test-ulps: Update.
19137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19138
19139 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19140
19141         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19142         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19143         _IO_IS_APPENDING bit in READ_WRITE instead.
19144
19145 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19146
19147         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19148         (__determine_cpumask_size): Replace extend_alloca with a
19149         variable-length array.  Do not treat res == 0 as an error.
19150
19151 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19152
19153         [BZ #18100]
19154         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19155         and integer overflow.
19156         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19157         (main): Add integer overflow tests.
19158         * manual/pattern.texi (Calling Wordexp): Document additional use
19159         for WRDE_SYNTAX.
19160
19161 2015-03-23  Alan Modra  <amodra@gmail.com>
19162
19163         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19164         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19165         and false branch of conditional.
19166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19167         Likewise.
19168
19169 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19170
19171         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19172         libc-modules.h
19173         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19174         unused declaration of _hurd_intr_rpc_msg_in_trap.
19175         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19176         defined instead of whether it is non-zero.
19177         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19178         input constraint instead of both input and output constraint.  Use ecx
19179         clobber instead of %ecx.
19180         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19181         mutex_unlock): Use a statement expression instead of an expression list.
19182         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19183         type to vm_size_t instead of vm_address_t.
19184         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19185         defined instead of whether it is non-zero.
19186         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19187         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19188         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19189         comparisons with mapaddr.
19190         * nscd/nscd-client.h: Include <time.h>.
19191         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19192         9th parameter to __vm_region instead of int.
19193         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19194         * scripts/check-local-headers.sh (exclude): Add device/,
19195         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19196         cthreads.h.
19197
19198 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19199
19200         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19201         to account for alignment padding.
19202         * sysdeps/arm/memmove.S: Likewise.
19203
19204 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19205
19206         * sysdeps/unix/sysv/linux/generic/README: New file.
19207
19208 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19209
19210         [BZ #18138]
19211         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19212         (futex_abstimed_wait)
19213         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19214         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19215         of lll_futex_timed_wait.
19216
19217 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19218
19219         [BZ #17542]
19220         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19221
19222 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19223
19224         [BZ #17090]
19225         [BZ #17620]
19226         [BZ #17621]
19227         [BZ #17628]
19228         * NEWS: Update.
19229         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19230         entries with Static TLS too.  Skip entries past the end of the
19231         allocated DTV, from Alan Modra.
19232         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19233         Static TLS DTV entry set up from...
19234         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19235         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19236         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19237         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19238         for Static TLS.
19239         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19240         that the slot we find is associated with the given map before
19241         using its generation count.
19242         * nptl_db/db_info.c: Include ldsodefs.h.
19243         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19244         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19245         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19246         (link_map::l_tls_offset): New struct field.
19247         (dtv_t::counter): Likewise.
19248         (rtld_global): New struct.
19249         (_rtld_global): New rtld variable.
19250         (dl_tls_dtv_slotinfo_list): New rtld global field.
19251         (dtv_slotinfo_list): New struct.
19252         (dtv_slotinfo): Likewise.
19253         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19254         (td_lookup): Rename to...
19255         (td_mod_lookup): ... this.  Use new mod parameter instead of
19256         LIBPTHREAD_SO.
19257         * nptl_db/td_thr_tlsbase.c: Include link.h.
19258         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19259         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19260         addresses even if the DTV is out of date or missing them.
19261         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19262         index zero-length arrays.
19263         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19264         (td_lookup): Make it a macro implemented in terms of...
19265         (td_mod_lookup): ... this declaration.
19266         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19267         (DB_MAIN_VARIABLE): Likewise.
19268
19269 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19270
19271         [BZ #18134]
19272         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19273
19274 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19275
19276         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19277
19278 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19279
19280         [BZ #18128]
19281         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19282         (atomic_add, atomic_increment_and_test)
19283         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19284
19285 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19286
19287         * stdlib/setenv.c (__add_to_environ):
19288         Dump core quickly if setenv (..., NULL, ...) is called.
19289
19290 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19291
19292         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19293         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19294         all the necessary asm magic in one place.
19295         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19296         using those.
19297
19298 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19299
19300         [BZ #14906]
19301         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19302         traced file mtime. Use consistent log message.
19303         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19304         (register_traced_file): Call install_watches. Always set mtime.
19305         (invalidate_cache): Iterate over all trace files. Call install_watches.
19306         (inotify_check_files): Don't inline. Handle watching parent
19307         directories and configuration file movement in and out.
19308         (handle_inotify_events): New function.
19309         (main_loop_poll): Call handle_inotify_events.
19310         (main_loop_epoll): Likewise.
19311         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19312         (struct traced_file): Use array of inotify fds. Add parent directory,
19313         and basename.
19314         (struct database_dyn): Remove unused file_mtime.
19315         (init_traced_file): New inline function.
19316         (define_traced_file): New macro.
19317         * nss/nss_db/db-init.c: Use define_traced_file.
19318         (_nss_db_init): Use init_traced_file.
19319         * nss/nss_files/files-init.c: Use define_traced_file.
19320         (_nss_files_init): Use init_traced_file.
19321
19322 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19323
19324         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19325         [_LIBC]: Do not include <stdlib.h>.
19326         [!_LIBC] (abort): Remove declaration.
19327         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19328         _FP_STATIC_ASSERT instead of conditionally calling abort.
19329         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19330         (_FP_EXTEND_CNAN): Likewise.
19331         (FP_TRUNC): Likewise.
19332         (__FP_CLZ): Likewise.
19333         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19334
19335 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19336
19337         * manual/string.texi (XPG basename): Fix prototype.
19338
19339 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19340
19341         [BZ #18080]
19342         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19343         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19344         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19345         (__setcontext): Likewise.
19346         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19347         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19348         Call rt_sigprocmask syscall one time to set new signal mask
19349         and retrieve the current signal mask instead of two calls.
19350         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19351         (__swapcontext): Likewise.
19352         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19353         * stdlib/tst-setcontext2.c: New file.
19354
19355 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19356
19357         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19358
19359 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19360
19361         [BZ #18093]
19362         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19363         the wrong size.
19364
19365 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19366
19367         [BZ #18043]
19368         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19369
19370 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19371
19372         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19373         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19374         Remove define.
19375         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19376         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19377         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19378         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19379         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19380         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19381         define.
19382         * nptl_db/td_symbol_list.c (td_lookup): Remove
19383         HAVE_ASM_GLOBAL_DOT_NAME code.
19384         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19385         HAVE_ASM_GLOBAL_DOT_NAME check.
19386         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19387         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19388         (DOT_LABEL): Remove define.
19389         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19390         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19391         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19392         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19393         (__TLS_GET_ADDR): Likewise.
19394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19395         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19396
19397 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19398
19399         [BZ #18111]
19400         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19401         (_FPU_SETCW): Initialize cw from fpsr before storing.
19402         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19403         (fesetexceptflag): Rewrite using fpu_control.h.
19404         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19405
19406 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19407
19408         [BZ #18110]
19409         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19410         asms.
19411         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19412
19413 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19414
19415         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19416         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19417         abort.
19418         (_FP_FMA): Likewise.
19419         (_FP_DIV): Likewise.
19420
19421 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19422
19423         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19424         with 0 in that case.
19425         * Makefile (summarize-tests): New canned sequence, factored out of
19426         commands for targets tests and xtests.  Display summary lines that
19427         don't start with PASS: or XFAIL: rather than ones that do start with
19428         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19429         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19430         do start with ERROR: or FAIL:.
19431         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19432         (except for [$(build-shared) = yes]).
19433         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19434         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19435         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19436         * nptl/Makefile: Revert 2015-03-04 changes.
19437         [$(CXX) empty] (tests-unsupported): New variable.
19438         * debug/Makefile: Likewise.
19439
19440         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19441         gnulib file.  Replace __attribute with __attribute__ throughout.
19442
19443 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19444
19445         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19446
19447 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19448
19449         [BZ #18104]
19450         * math/auto-libm-test-in: Add another test of pow.
19451         * math/auto-libm-test-out: Regenerated.
19452
19453 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19454
19455         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19456         $(config-cflags-nofma).
19457
19458 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19459
19460         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19461         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19462         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19463         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19464         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19465         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19466         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19467         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19468         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19469         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19470         Add comment on closing #endif.
19471
19472 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19473
19474         * posix/wordexp.c (CHAR_IN_SET): New macro.
19475         (parse_param): Use it.
19476
19477 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19478
19479         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19480
19481 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19482
19483         [BZ #18043]
19484         * posix/wordexp.c (parse_param): Fix buffer overflow.
19485         * posix/wordexp-test.c (test_case): Add test case.
19486
19487 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19488
19489         [BZ #18042]
19490         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19491         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19492
19493 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19494
19495         [BZ #18043]
19496         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19497         (do_bz18043): Delete.
19498         (at_page_end): New.
19499         (testit): Refactor to have words at the edge of unreadable page.
19500
19501 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19502
19503         [BZ #16734]
19504         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19505         Cleanup read-only streams as well.
19506         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19507
19508 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19509
19510         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19511         <bits/libc-lockP.h>
19512
19513 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19514
19515         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19516         on [__KERNEL__].
19517         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19518         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19519         * soft-fp/op-common.h (_FP_DECL): Likewise.
19520
19521 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19522
19523         * elf/ifuncdep2.c (global): Replace
19524         __attribute__((visibility("protected"))) with
19525         asm (".protected global").
19526         * elf/ifuncmod1.c (global): Likewise.
19527         * elf/ifuncmod5.c (global): Likewise.
19528
19529 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19530
19531         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19532         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19533
19534 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19535
19536         * manual/install.texi (Configuring and compiling):
19537         Document test-wrapper-env-only.
19538         * INSTALL: Regenerated.
19539
19540 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19541
19542         [BZ #18043]
19543         * posix/wordexp.c (parse_param): Fix buffer overflow.
19544         * posix/wordexp-test.c (do_bz18043): Add test case.
19545
19546 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19547
19548         * time/tst-strptime2.c (do_test): Ensure failing tests are
19549         reported correctly.
19550         * time/tst-strptime3.c (do_test): Likewise.
19551
19552 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19553
19554         Fix aio_error thread-safety.
19555         * sysdeps/pthread/aio_error.c: New file
19556         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19557         synchronization.
19558
19559 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19560
19561         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19562         (group_number, vfprintf): Use it.
19563         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19564         (JUMP, REF): Use it.
19565         (WORK_BUFFER_SIZE): New enum constant.
19566         (process_arg, vfprintf): Use it.
19567
19568 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19569
19570         * manual/errno.texi (Error Messages): Complete example function
19571         by adding missing #define.
19572         (program_invocation_name): Add statement indicating GNU
19573         extension and reference which header file declares the variable.
19574         (program_invocation_short_name): Likewise.
19575
19576 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19577
19578         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19579         compatibility note.
19580
19581 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19582
19583         * Makeconfig (test-wrapper-env-only): New variable.
19584         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19585         then use that with $(test-wrapper-env-only) rather than using
19586         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19587
19588 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19589
19590         [BZ #18082]
19591         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19592         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19593         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19594         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19595         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19596         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19597         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19598         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19599         Likewise.
19600         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19601         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19602         Likewise.
19603         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19604         Likewise.
19605         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19606         Likewise.
19607         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19608         Likewise.
19609         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19610         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19611         Likewise.
19612         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19613         Likewise.
19614         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19615         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19616
19617 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19618
19619         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19620         (ETH_ALEN): New macro.
19621         (struct ether_addr): Use it for length of ether_addr_octet.
19622
19623         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19624         (setdb): Don't call __nss_configure_lookup for "rpc".
19625         (do_test): Don't call test_rpc.
19626         (output_rpcent, test_rpc): Functions moved ...
19627         * sunrpc/test-rpcent.c: ... to this new file.
19628         * sunrpc/Makefile (tests): Add it.
19629
19630         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19631         __xpg_sigpause.
19632         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19633         * nptl/tst-signal6.c: Likewise.
19634         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19635         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19636
19637         * configure.ac (libc_cv_cxx_link_ok): New check.
19638         Reset CXX to empty if it fails to link.
19639         * configure: Regenerated.
19640         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19641         bug-atexit3-lib only if $(CXX) is nonempty.
19642         * nptl/Makefile (tests): Likewise for tst-cancel24.
19643         (tests, tests-static): Likewise for tst-cancel24-static.
19644         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19645         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19646         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19647         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19648
19649 2015-03-04  Andreas Schwab  <schwab@suse.de>
19650
19651         [BZ #17631]
19652         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19653         for non-GCC compilers.
19654         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19655         Likewise.
19656
19657 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19658
19659         [BZ #17776]
19660         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19661         integer before bitwise and assembly operations.
19662         (feclearexcept): Likewise.
19663         * math/test-fenvinline.c: New file.
19664         * math/Makefile: Add test-fenvinline test.
19665
19666 2015-03-03  Alan Modra  <amodra@gmail.com>
19667
19668         [BZ #16512]
19669         * scripts/localplt.awk: Strip off symbol version.
19670         * NEWS: Mention bug fix.
19671
19672 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19673
19674         * sysdeps/pthread/timer_routines.c
19675         (timer_free_list, thread_free_list, thread_active_list): Make static.
19676
19677 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19678
19679         [BZ #17779]
19680         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19681         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19682         Undefine.
19683         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19684         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19685         Likewise.
19686         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19687         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19688         Likewise.
19689
19690 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19691
19692         [BZ #18036]
19693         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19694         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19695
19696 2015-03-02  Andreas Schwab  <schwab@suse.de>
19697
19698         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19699         variable name.
19700
19701 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19702
19703         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19704         Return error status.
19705
19706 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19707
19708         [BZ #15969]
19709         * locale/findlocale.c (_nl_find_locale): Introduce const
19710         version of loc_name and drop unsafe type casts.
19711
19712 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19713
19714         * dlfcn/tststatic2.c (main): Converted to ...
19715         (do_test): ... this.
19716         (TEST_FUNCTION): New macro.
19717         Include test-skeleton.c.
19718
19719 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19720
19721         [BZ #17711]
19722         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19723         (tests-pie): Add vismain.
19724         (CFLAGS-vismain.c): New.
19725         * elf/vismain.c: Add comments for PIE requirement.
19726
19727 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19728
19729         [BZ #18046]
19730         [BZ #18047]
19731         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19732         0x1p-56L as threshold for just returning the argument.
19733         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19734         0x1p-32L as threshold for just returning the argument.
19735         * math/auto-libm-test-in: Add more tests of atanh.
19736         * math/auto-libm-test-out: Regenerated.
19737         * sysdeps/i386/fpu/libm-test-ulps: Update.
19738         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19739
19740 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19741
19742         * string/bcopy.c (bcopy): Call memmove for performance.
19743
19744 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19745
19746         * string/bzero.c (__bzero): Call memset for performance.
19747
19748 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19749
19750         [BZ #18068]
19751         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19752         to 00100000.
19753
19754 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19755
19756         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19757
19758 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19759
19760         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19761         (__kernel_standard): Use CSTR macro when setting exc.name.
19762         * sysdeps/ieee754/Makefile [$(subdir) = math]
19763         (CFLAGS-k_standard.c): Remove variable.
19764
19765         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19766         setting p and q from "else if" to "else".
19767         (qzero): Likewise.
19768         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19769         (qone): Likewise.
19770         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19771         (qzerof): Likewise.
19772         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19773         (qonef): Likewise.
19774         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19775         (qzero): Likewise.
19776         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19777         (qone): Likewise.
19778
19779         [BZ #18038]
19780         [BZ #18039]
19781         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19782         return pi/2 for arguments below 0x1p-113L.
19783         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19784         return pi/2 for arguments below 0x1p-106L.
19785         * math/auto-libm-test-in: Add more tests of acos.
19786         * math/auto-libm-test-out: Regenerated.
19787
19788         [BZ #16351]
19789         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19790         (MO): New macro.
19791         (__ieee754_asin): Force underflow exception for results with small
19792         absolute value.
19793         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19794         (MO): New macro.
19795         (__ieee754_asinf): Force underflow exception for results with
19796         small absolute value.
19797         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19798         (__ieee754_asin): Force underflow exception for results with small
19799         absolute value.
19800         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19801         (__ieee754_asinf): Force underflow exception for results with
19802         small absolute value.
19803         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19804         (__ieee754_asinl): Force underflow exception for results with
19805         small absolute value.
19806         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19807         (__ieee754_asinl): Force underflow exception for results with
19808         small absolute value.
19809         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19810         (__ieee754_asinl): Force underflow exception for results with
19811         small absolute value.
19812         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19813         Include <math.h>.
19814         * math/auto-libm-test-in: Do not mark underflow exceptions as
19815         possibly missing for bug 16351.
19816         * math/auto-libm-test-out: Regenerated.
19817
19818         [BZ #18030]
19819         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19820         of power of 2 down when low part has opposite sign.
19821         * math/libm-test.inc (logb_test_data): Add more tests.
19822
19823 2015-02-26  Andreas Schwab  <schwab@suse.de>
19824
19825         [BZ #18032]
19826         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19827         over collating symbol inside a bracket expression.  Minor cleanup.
19828         * posix/tst-fnmatch3.c (do_test): Add test case.
19829
19830 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19831
19832         [BZ #18029]
19833         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19834         Adjust exponent of power of 2 down when low part has opposite
19835         sign.
19836         * math/libm-test.inc (ilogb_test_data): Add more tests.
19837
19838 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19839
19840         [BZ #15969]
19841         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19842         the previous change.
19843
19844         [BZ #15969]
19845         * locale/findlocale.c (_nl_find_locale): Retry archive search
19846         after alias expansion.
19847
19848 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19849
19850         * iconv/tst-iconv3.c (main): Converted to ...
19851         (do_test): ... this.
19852         (TEST_FUNCTION): New macro.
19853         Include test-skeleton.c.
19854
19855         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19856         (convert): Make function static.
19857         (test_unalign): Likewise.  Add const to argument pointee types.
19858         (main): Replace with static function do_test.
19859         Print "Succeeded." only if RET is zero.
19860         (TEST_FUNCTION): New macro.
19861         Include test-skeleton.c.
19862
19863         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19864         returns a null pointer.
19865
19866 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19867
19868         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19869         to __memcpy_ppc only for static builds.
19870
19871 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19872
19873         [BZ #18020]
19874         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19875         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19876         * math/auto-libm-test-in: Add more tests of asinh.
19877         * math/auto-libm-test-out: Regenerated.
19878         * sysdeps/i386/fpu/libm-test-ulps: Update.
19879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19880
19881 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19882
19883         [BZ #15850]
19884         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19885         and ip6_mtuinfo definitions here.
19886         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19887         in this define too.  Update comment.
19888
19889 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19890
19891         * elf/sprof.c (load_shobj): Tweak error message to match others.
19892
19893 2015-02-24  Kevin Easton  <kevin@guarana.org>
19894
19895         [BZ #16145] (partial fix)
19896         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19897         to reduce lock contention.
19898
19899 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19900
19901         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19902         (struct timex): Update time comment.
19903         (ADJ_SETOFFSET): Define.
19904
19905 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19906
19907         [BZ #18019]
19908         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19909         2**56 not 2**28 as threshold for log (2x) formula.
19910         * math/auto-libm-test-in: Add more tests of acosh.
19911         * math/auto-libm-test-out: Regenerated.
19912         * sysdeps/i386/fpu/libm-test-ulps: Update.
19913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19914
19915 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19916
19917         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19918         parenthesis around the buf assignment.
19919         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19920
19921 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19922
19923         [BZ #16783]
19924         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19925         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19926         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19927         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19928         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19929         * math/libm-test.inc (scalb_test_data): Add more tests.
19930
19931 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19932
19933         [BZ #17916]
19934         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19935         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19936
19937 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19938
19939         [BZ #17523]
19940         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19941         * io/bits/fcntl2.h (open): Use it.
19942         (openat): Likewise.
19943         * io/open.c (__libc_open): Likewise.
19944         * io/open64.c (__libc_open64): Likewise.
19945         * io/open64_2.c (__open64_2): Likewise.
19946         * io/open_2.c (__open_2): Likewise.
19947         * io/openat.c (__openat): Likewise.
19948         * io/openat64.c (__openat64): Likewise.
19949         * io/openat64_2.c (__openat64_2): Likewise.
19950         * io/openat_2.c (__openat_2): Likewise.
19951         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19952         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19953         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19954         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19955         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19956         (__open_nocancel): Likewise.
19957         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19958         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19959         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19960
19961 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19962
19963         [BZ #14841]
19964         * resolv/gethnamaddr.c (getanswer): Skip logging if
19965         RES_USE_DNSSEC is set.
19966         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19967
19968 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19969
19970         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19971
19972 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19973
19974         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19975         201304L, for Unicode 7.
19976
19977 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19978
19979         [BZ #17836]
19980         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19981         shared library.  Add gmon-start.os otherwise.
19982         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19983         $(objpfx)gmon-start.os if builing shared library.
19984         ($(objpfx)g$(static-start-installed-name)): Likewise.
19985
19986 2015-02-23  Andreas Schwab  <schwab@suse.de>
19987
19988         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19989
19990 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19991
19992         [BZ #17269]
19993         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19994         (enlarge_userbuf): Likewise.
19995
19996 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19997
19998         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19999         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20000         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20001         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20002
20003 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20004
20005         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20006         expression inside statement expression.
20007
20008 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20009
20010         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20011         <sysdeps/nptl/lowlevellock.h> and remove macros and
20012         functions that are now defined there.
20013         (SYS_futex): Remove.
20014         (lll_compare_and_swap): Remove.
20015         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20016
20017 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20018
20019         [BZ #17999]
20020         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20021         instead of scandirat.
20022         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20023         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20024         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20025         __scandirat.
20026         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20027         (__scandirat): Declare.  Use libc_hidden_proto.
20028         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20029         Remove variable.
20030         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20031
20032 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20033
20034         [BZ #15319]
20035         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20036         (MO): New macro.
20037         (__ieee754_atan2): For results with small absolute value, force
20038         underflow exception and remove excess range and precision from
20039         return value.
20040         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20041         (MO): New macro.
20042         (__ieee754_atan2f): For results with small absolute value, force
20043         underflow exception and remove excess range and precision from
20044         return value.
20045         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20046         (MO): New macro.
20047         (__atan): For results with small absolute value, force underflow
20048         exception and remove excess range and precision from return value.
20049         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20050         (MO): New macro.
20051         (__atanf): For results with small absolute value, force underflow
20052         exception and remove excess range and precision from return value.
20053         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20054         <math.h>.
20055         (__ieee754_atan2): Force underflow exception for results with
20056         small absolute value.
20057         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20058         <math_private.h>.
20059         (atan): Force underflow exception for results with small absolute
20060         value.
20061         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20062         (__atanf): Force underflow exception for results with small
20063         absolute value.
20064         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20065         <math.h>.
20066         (__atanl): Force underflow exception for results with small
20067         absolute value.
20068         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20069         (__atanl): Force underflow exception for results with small
20070         absolute value.
20071         * sysdeps/x86/fpu/bits/mathinline.h
20072         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20073         (__ieee754_atan2): Only define inline for long double.
20074         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20075         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20076         * math/auto-libm-test-in: Do not mark underflow exceptions as
20077         possibly missing for bug 15319.  Add more tests of atan2.
20078         * math/auto-libm-test-out: Regenerated.
20079         * math/libm-test.inc (casin_test_data): Do not mark underflow
20080         exceptions as possibly missing for bug 15319.
20081         (casinh_test_data): Likewise.
20082         * sysdeps/i386/fpu/libm-test-ulps: Update.
20083
20084 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20085
20086         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20087         * sysdeps/mips/bits/endian.h: Fix comments.
20088
20089 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20090
20091         [BZ #17996]
20092         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20093         (hdestroy_r): Likewise.
20094         (hsearch_r): Likewise.
20095         (__hcreate_r): Declare and use libc_hidden_proto.
20096         (__hdestroy_r): Likewise.
20097         (__hsearch_r): Likewise.
20098         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20099         (hcreate): Call __hcreate_r instead of hcreate_r.
20100         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20101         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20102         as weak alias of __hcreate_r.
20103         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20104         __hdestroy_r.
20105         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20106         __hsearch_r.
20107         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20108         Remove variable.
20109         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20110         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20111         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20112         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20113
20114 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20115
20116         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20117         arena_lock into a single arena_get.
20118
20119 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20120
20121         * dl-reloc.c: Inlucde libc-internal.h.
20122         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20123         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20124         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20125         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20126         (grow_heap): Likewise.
20127         * malloc/malloc.c: Include libc-internal.h.
20128         (do_check_malloc): Call powerof2.
20129         (sysmalloc): Use pagesize. Call ALIGN_UP.
20130         (systrim): Use pagesize.
20131         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20132         (__libc_valloc): Use pagesize.
20133         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20134
20135 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20136
20137         [BZ #17991]
20138         * include/sys/resource.h (__getrlimit64): Declare.  Use
20139         libc_hidden_proto.
20140         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20141         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20142         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20143         getrlimit64.
20144         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20145         __getrlimit64.
20146         [!getrlimit64] (getrlimit64): Define as weak alias of
20147         __getrlimit64.  Use libc_hidden_weak.
20148         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20149         using __getrlimit64 not __new_getrlimit64.
20150         (__GI_getrlimit64): Likewise.
20151         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20152         Likewise.
20153         (__GI_getrlimit64): Likewise.
20154         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20156         (getrlimit): Add __getrlimit64 alias.
20157         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20158         Likewise.
20159         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20160         Remove variable.
20161         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20162         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20163
20164 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20165
20166         * libio/fileops.c: Add missing sys/mman.h
20167         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20168
20169 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20170
20171         * manual/math.texi (Errors in Math Functions): Clarify goals
20172         regarding inexact and underflow exceptions.
20173
20174 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20175
20176         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20177         * sysdeps/mips/memset.S: Ditto.
20178
20179 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20180
20181         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20182
20183 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20184
20185         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20186         (__v1longjmp): Remove versioned symbol.
20187         (__v1siglongjmp): Remove alias and versioned symbol.
20188         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20189         (__v2siglongjmp): Likewise.
20190
20191 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20192
20193         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20194
20195 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20196
20197         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20198
20199 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20200
20201         [BZ #17987]
20202         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20203         zero result does not depend on the sign resulting from
20204         subtraction.
20205         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20206         Likewise.
20207         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20208         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20209         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20210         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20211         * math/libm-test.inc (remquo_test_data): Add more tests.
20212
20213 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20214
20215         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20216         Problem reported by J William Piggott.
20217
20218 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20219
20220         [BZ #17978]
20221         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20222         products 4 * y and 2 * y where those would overflow.
20223         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20224         Likewise.
20225         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20226         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20227         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20228         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20229         * math/libm-test.inc (remquo_test_data): Add more tests.
20230
20231         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20232
20233         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20234         [defined _COMPILING_NEWLIB].
20235         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20236         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20237
20238         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20239         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20240
20241 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20242
20243         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20244         acquired.
20245
20246 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20247
20248         [BZ #17792]
20249         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20250         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20251         HOST_STACK_END_ADDR): Likewise.
20252
20253 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20254
20255         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20256         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20257         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20258
20259 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20260
20261         * sysdeps/generic/c++-types.data: New file.
20262         * sysdeps/generic/ld.abilist: New file.
20263         * sysdeps/generic/libBrokenLocale.abilist: New file.
20264         * sysdeps/generic/libanl.abilist: New file.
20265         * sysdeps/generic/libc.abilist: New file.
20266         * sysdeps/generic/libcrypt.abilist: New file.
20267         * sysdeps/generic/libdl.abilist: New file.
20268         * sysdeps/generic/libm.abilist: New file.
20269         * sysdeps/generic/libpthread.abilist: New file.
20270         * sysdeps/generic/libresolv.abilist: New file.
20271         * sysdeps/generic/librt.abilist: New file.
20272
20273 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20274
20275         [BZ #17569]
20276         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20277         Compute absolute value of x as modified by fmod, not original
20278         value of x.
20279         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20280         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20281         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20282         RUN_TEST_ffI_f1_mod8.
20283         (remquo_test_data): Add more tests.
20284
20285 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20286
20287         * sysdeps/init_array/pt-crti.S: New file.
20288
20289 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20290
20291         [BZ #17967]
20292         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20293         __builtin_fmaf instead of relying on contraction of a * b + c.
20294
20295 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20296
20297         [BZ #17969]
20298         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20299         node.
20300
20301 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20302
20303         [BZ #17964]
20304         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20305         __builtin_fma instead of relying on contraction of a * b + c.
20306
20307 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20308
20309         * Makeconfig (ASFLAGS): Add -Werror=undef.
20310         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20311         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20312         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20313
20314         * Makeconfig (after-link): New variable.
20315         (+link-pie, +link-pie-tests): Use it.
20316         (+link-static, +link-static-tests): Likewise.
20317         (+link, +link-tests): Likewise.
20318         * Makerules (build-module, build-module-asneeded): Likewise.
20319         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20320         Likewise.
20321         * elf/Makefile ($(objpfx)ld.so): Likewise.
20322
20323 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20324
20325         [BZ #17965]
20326         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20327         both struct timeval and struct timespec.
20328
20329 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20330
20331         [BZ #16560]
20332         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20333         and redefine.
20334         (__ieee754_exp2l): Do not multiply small fractional parts by
20335         M_LN2l.
20336         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20337         small argument.
20338         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20339         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20340         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20341         * math/auto-libm-test-in: Add more tests of exp2.
20342         * math/auto-libm-test-out: Regenerated.
20343
20344 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20345
20346         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20347         unaligned path.
20348
20349 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20350
20351         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20352         little endian.
20353
20354 2015-02-12  Andreas Schwab  <schwab@suse.de>
20355
20356         [BZ #15790]
20357         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20358         Filter out elision flags from value returned in kind.
20359         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20360         * nptl/tst-pthread-mutexattr.c: New file.
20361
20362 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20363
20364         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20365         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20366         into gnu-gnu, and update comment to refer to abi-tags.
20367
20368 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20369
20370         [BZ #15467]
20371         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20372         (__sincos): Set errno to EDOM for infinite argument.
20373         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20374         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20375         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20376         (__sincosl): Set errno to EDOM for infinite argument.
20377         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20378         (__sincosl): Set errno to EDOM for infinite argument.
20379         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20380         (__sincosl): Set errno to EDOM for infinite argument.
20381         * math/libm-test.inc (sincos_test_data): Test errno setting.
20382
20383 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20384
20385         * string/strxfrm_l.c: Remove #define STRCMP.
20386         * string/strcoll_l.c: Remove #define STRLEN.
20387         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20388         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20389
20390 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20391
20392         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20393         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20394         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20395         * sysdeps/mips/mips64/Makefile: ... here.
20396         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20397         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20398         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20399         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20400         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20401         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20402         * sysdeps/mips/mips64/n64/Implies: Likewise.
20403
20404 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20405
20406         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20407         <sys/time.h>, <string.h>, and <errno.h>.
20408         (dest_offset, dest_address, value, zero): Remove unused variables.
20409         (ldouble): Remove typedef.
20410         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20411         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20412         1).  Fix code style.
20413         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20414         (check): Function removed.
20415         (CHECK): New macro.
20416         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20417         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20418         Don't call set_sigaction_FP and remove_sigaction_FP here.
20419         (ldouble_test): Just use 'long double' as macro argument, no need for
20420         the 'ldouble' typedef.
20421         (do_test): Set up SIGFPE handler at start, using plain signal rather
20422         than sigaction.  Fix code style.
20423
20424 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20425
20426         [BZ #17949]
20427         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20428         jump label.
20429
20430 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20431
20432         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20433         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20434
20435         * sysdeps/powerpc/configure.ac: Remove file.
20436         * sysdeps/powerpc/configure: Likewise.
20437
20438         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20439         [sysdep_routines]: Remove wordcopy-power6 object.
20440         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20441         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20442         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20443         (__memmove_ppc32): Likewise.
20444         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20445         file.
20446         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20447         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20448         Remove preprocessor.
20449
20450         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20451         [sysdep_routines]: Remove wide chars objects.
20452         [wcsmbs]: New rule for wide char objects.
20453
20454         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20455         Remove wordcopy-power6 obejct.
20456         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20457         Use local call for wordcopy and memcpy symbols.
20458         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20459         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20460         implementation for loader.
20461         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20462
20463         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20464         Remove wordcopy-power7 object.
20465         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20466         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20467         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20468         (_wordcopy_fwd_dest_aligned): Likewise.
20469         (_wordcopy_bwd_aligned): Likewise.
20470         (_wordcopy_bwd_dest_aligned): Likewise.
20471
20472         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20473         Rewrite to call __memmove_ppc instead of include default
20474         implementation.
20475
20476         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20477         Remove wide chars objects.
20478         [wcsmbs]: New rule for wide char objects.
20479
20480 2015-02-09  Andreas Schwab  <schwab@suse.de>
20481
20482         [BZ #17912]
20483         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20484         in terms of __O_DIRECTORY.
20485
20486 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20487
20488         * time/getdate.c: Include <stdbool.h>.
20489         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20490         call PTR_MANGLE.
20491         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20492         PTR_DEMANGLE.
20493
20494 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20495
20496         Add ersatz _Static_assert on older C hosts
20497         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20498         pre-C11 C platform that is not known to support _Static_assert.
20499
20500 2015-02-07  Richard Braun  <rbraun@sceen.net>
20501
20502         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20503         sigstate.
20504         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20505
20506 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20507
20508         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20509         priority against unexistent AIO_PRIO_DELTA_MAX.
20510         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20511         instead of int.
20512         * misc/fchflags.c (fchflags): Likewise.
20513         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20514         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20515         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20516         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20517         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20518         Declare macros.
20519         [__USE_MISC] (chflags, fchflags): Declare functions.
20520         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20521         EINVAL when nfds is greater than FD_SETSIZE.
20522         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20523         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20524         45.
20525         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20526         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20527         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20528         MACH_RCV_TIMED_OUT.
20529         * hurd/hurd/signal.h (_hurd_self_sigstate,
20530         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20531         Explicit casts from void *.
20532         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20533         * abi-tags: Rename gnu-gnu os into gnu.
20534
20535         [BZ #4719]
20536         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20537         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20538         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20539         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20540         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20541         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20542
20543         [BZ #17944]
20544         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20545         duplicates ADDR->sun_path with sockaddr LEN limitation.
20546         * sysdeps/mach/hurd/connect.c: Include <string.h>
20547         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20548         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20549         * sysdeps/mach/hurd/sendto.c: Likewise.
20550         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20551         implementing it by hand.
20552
20553 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20554
20555         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20556         Use sfi_breg on ldr.
20557         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20558         Likewise.
20559
20560         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20561         it's defined.
20562         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20563         Test SIGSETXID only if it's defined.
20564
20565         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20566
20567         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20568         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20569
20570         * nptl/tst-align2.c: Moved ...
20571         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20572         * nptl/Makefile (tests): Remove tst-align2.
20573         * sysdeps/unix/sysv/linux/Makefile
20574         [$(subdir) = nptl] (tests): Add tst-align-clone.
20575         * nptl/tst-getpid1.c: Moved ...
20576         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20577         * nptl/tst-getpid2.c: Moved ...
20578         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20579         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20580         * sysdeps/unix/sysv/linux/Makefile
20581         [$(subdir) = nptl] (tests): ... here.
20582         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20583         * sysdeps/unix/sysv/linux/Makefile
20584         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20585
20586         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20587         Drop trailing \n from perror argument.  Use return rather than exit.
20588
20589         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20590         on [SA_SIGINFO].
20591         * nptl/tst-cancel21.c (do_test): Likewise.
20592         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20593         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20594         [!SA_SIGINFO]: Make it a stub test.
20595
20596         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20597         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20598
20599         * posix/tst-getlogin.c: Move to ...
20600         * login/tst-getlogin.c: ... here.
20601         * posix/Makefile (tests): Move tst-getlogin to ...
20602         * login/Makefile (tests): ... here.
20603
20604         * libio/tst-atime.c (do_test): Move local variables SV and E
20605         inside [ST_NOATIME] conditional.
20606
20607         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20608
20609         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20610
20611         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20612         (wait_code): New function replaces macro.
20613         Call nanosleep rather than syscall.
20614
20615         * nptl/pt-system.c: Rewritten.  Put everything under
20616         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20617         Use IFUNC to redirect when possible.
20618
20619         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20620         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20621         Use IFUNC to redirect when possible.
20622
20623         * nptl/pt-fork.c: Rewritten.  Put everything under
20624         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20625         Use IFUNC to redirect when possible.
20626         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20627
20628         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20629         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20630         unconditionally nowadays.  This included the only reference to
20631         __vdso_clock_gettime that appears outside libc proper.
20632         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20633         Remove version set (containing only __vdso_clock_gettime).
20634         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20635         Add attribute_hidden.
20636         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20637         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20638         libc_hidden_data_def.
20639         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20640         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20641
20642         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20643         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20644         setrpcent, and getrpcport to ...
20645         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20646         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20647         getrpcbynumber_r, and getrpcent_r to ...
20648         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20649         * inet/getrpcbyname.c: Moved ...
20650         * sunrpc/getrpcbyname.c: ... here.
20651         * inet/getrpcbyname_r.c: Moved ...
20652         * sunrpc/getrpcbyname_r.c: ... here.
20653         * inet/getrpcbynumber.c: Moved ...
20654         * sunrpc/getrpcbynumber.c: ... here.
20655         * inet/getrpcbynumber_r.c: Moved ...
20656         * sunrpc/getrpcbynumber_r.c: ... here.
20657         * inet/getrpcent.c: Moved ...
20658         * sunrpc/getrpcent.c: ... here.
20659         * inet/getrpcent_r.c: Moved ...
20660         * sunrpc/getrpcent_r.c: ... here.
20661         * inet/Makefile (routines): Move those to ...
20662         * sunrpc/Makefile (routines): ... here.
20663         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20664         the $(subdirs) list.
20665         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20666         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20667         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20668         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20669
20670         * elf/Makefile (routines): Include $(all-dl-routines), not just
20671         $(dl-routines).
20672         (rtld-routines): Likewise.  Use = rather than :=.
20673         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20674         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20675         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20676         * sysdeps/arm/Makefile: Likewise.
20677         * sysdeps/i386/Makefile: Likewise.
20678         * sysdeps/x86_64/Makefile: Likewise.
20679         * sysdeps/hppa/Makefile [$(subdir) = elf]
20680         (sysdep_routines, sysdep-rtld-routines): Don't add
20681         $(sysdep-dl-routines) to these.
20682         * sysdeps/ia64/Makefile: Likewise.
20683         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20684         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20685         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20686         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20687         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20688         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20689         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20690         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20691         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20692         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20693         these; sysdep-dl-routines alone is enough.
20694
20695 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20696
20697         [BZ #17932]
20698         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20699         where multiplication results in zero and third argument is finite
20700         and nonzero.
20701         * math/auto-libm-test-in: Add more tests of fma.
20702         * math/auto-libm-test-out: Regenerated.
20703
20704         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20705         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20706         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20707         (_FP_CMP_EQ): Likewise.
20708         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20709
20710         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20711         extra argument CHECK_NAN.  Redefine as wrapper around
20712         _FP_EXTEND_CNAN.
20713
20714 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20715
20716         * version.h (RELEASE): Set to "stable".
20717         (VERSION): Set to "2.21"
20718         * include/features.h (__GLIBC_MINOR__): Set to 21.
20719
20720         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20721
20722 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20723             Paul Eggert  <eggert@cs.ucla.edu>
20724
20725         [BZ #16618]
20726         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20727         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20728         size in bytes. Store needed elements in wpmax. Use needed size
20729         in bytes for extend_alloca.
20730
20731 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20732
20733         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20734         binutls 2.25, and texinfo 5.2.
20735         * INSTALL: Regenerate.
20736         * sysdeps/nios2/configure: Regenerate.
20737         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20738         * manual/contrib.texi: Update.
20739         * po/be.po: Update.
20740         * po/bg.po: Update.
20741         * po/ca.po: Update.
20742         * po/cs.po: Update.
20743         * po/da.po: Update.
20744         * po/de.po: Update.
20745         * po/el.po: Update.
20746         * po/eo.po: Update.
20747         * po/es.po: Update.
20748         * po/fi.po: Update.
20749         * po/fr.po: Update.
20750         * po/gl.po: Update.
20751         * po/hr.po: Update.
20752         * po/hu.po: Update.
20753         * po/ia.po: Update.
20754         * po/id.po: Update.
20755         * po/it.po: Update.
20756         * po/ja.po: Update.
20757         * po/ko.po: Update.
20758         * po/lt.po: Update.
20759         * po/nb.po: Update.
20760         * po/nl.po: Update.
20761         * po/pl.po: Update.
20762         * po/pt_BR.po: Update.
20763         * po/ru.po: Update.
20764         * po/rw.po: Update.
20765         * po/sk.po: Update.
20766         * po/sl.po: Update.
20767         * po/sv.po: Update.
20768         * po/tr.po: Update.
20769         * po/uk.po: Update.
20770         * po/vi.po: Update.
20771         * po/zh_CN.po: Update.
20772         * po/zh_TW.po: Update.
20773
20774         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20775         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20776         * sysdeps/hppa/dl-irel.h: Remove #warning.
20777         * sysdeps/hppa/entry.h: Provide prototype for
20778         __canonicalize_funcptr_for_compare and cast argument.
20779         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20780         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20781         * sysdeps/hppa/sotruss-lib.c: New file.
20782         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20783         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20784         (atomic_compare_and_exchange_bool_acq): Likewise.
20785         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20786         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20787
20788         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20789         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20790         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20791
20792 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20793
20794         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20795         called function in non-PIC case.
20796
20797 2015-01-31  David S. Miller  <davem@davemloft.net>
20798
20799         * sysdeps/sparc/sparc32/bits/atomic.h
20800         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20801         unlock not after it.
20802         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20803         volatile register usage warnings from the compiler.
20804
20805         * sysdeps/sparc/nptl/sem_init.c: Delete.
20806         * sysdeps/sparc/nptl/sem_post.c: Delete.
20807         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20808         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20809         * sysdeps/sparc/sparc32/sem_init.c: New file.
20810         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20811         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20812         padding explicitly initialized.
20813         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20814         padding for in-semaphore spinlock.
20815         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20816         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20817         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20818         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20819         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20820         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20821         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20822         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20823         version.
20824         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20825         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20826
20827 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20828
20829         [BZ #17801]
20830         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20831         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20832         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20833         New.
20834         (index_AVX_Fast_Unaligned_Load): Likewise.
20835         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20836         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20837         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20838         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20839         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20840         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20841         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20842         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20843         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20844
20845 2015-01-29  Andreas Schwab  <schwab@suse.de>
20846
20847         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20848
20849 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20850
20851         [BZ #17892]
20852         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20853
20854 2015-01-28  Martin Sebor  <msebor@redhat.com>
20855
20856         * math/README.libm-test: Clarify. Add "How to read the test output."
20857
20858 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20859
20860         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20861         Define to 0.
20862
20863 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20864
20865         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20866         (__HAVE_64B_ATOMICS): Define to 0.
20867
20868 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20869
20870         [BZ #17885]
20871         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20872         value to set as new flag.
20873
20874         [BZ #16576]
20875         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20876         and use _ARCH_PPCSQ instead.
20877         (__ieee754_sqrt): Likewise.
20878         (__ieee754_sqrtf): Likewise.
20879         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20880         _ARCH_PPCSQ is defined.
20881         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20882         fsqrt instruction.
20883         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20884         _ARCH_PPCSQ is defined.
20885         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20886         fsqrts instruction.
20887         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20888
20889 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20890
20891         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20892         bug (GCC BZ #64739).
20893
20894 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20895
20896         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20897         Mark _retval as used.
20898         (lll_futex_wake_unlock): Likewise.
20899         (lll_futex_timed_wait_requeue_pi): Likewise.
20900
20901         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20902         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20903         register variables.
20904
20905         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20906         libm_hidden_def.
20907
20908         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20909         (__bswap_64): Mark as __always_inline.
20910
20911 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20912
20913         [BZ #15378]
20914         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20915         when none of the search directories exist.
20916
20917 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20918
20919         [BZ #17869]
20920         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20921         power8 in .machine directive.
20922
20923         [BZ #17868]
20924         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20925         set dependency from opd value.
20926
20927 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20928
20929         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20930         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20931         architecture.
20932
20933 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20934
20935         [BZ #17870]
20936         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20937         with uint64_t.
20938         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20939         (uint64_t) 1.
20940         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20941         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20942         Replace 1UL with (uint64_t) 1.
20943         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20944         int with uint64_t.
20945
20946 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20947
20948         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20949         (if_freenameindex): Likewise.
20950
20951         * resource/getrlimit64.c: Add missing libc_hidden_def.
20952
20953 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20954
20955         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20956         __label__.
20957         (_FP_FMA): Likewise.
20958         (_FP_TO_INT_ROUND): Likewise.
20959         (_FP_FROM_INT): Likewise.
20960
20961 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20962
20963         [BZ #16418]
20964         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20965         Make code racy and cancel safe.
20966
20967 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20968
20969         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20970         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20971         attribution.
20972
20973         * pwd/tst-getpw.c: Rewrite.
20974
20975         [BZ #17702]
20976         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20977         (modules-names): Add moddummy1 and moddummy2.
20978         ($(objpfx)tst-rec-dlopen): Define.
20979         * dlfcn/moddummy1.c: New file.
20980         * dlfcn/moddummy2.c: New file.
20981         * dlfcn/tst-rec-dlopen.c: New file.
20982         * elf/dl-cache.c (_dl_load_cache_lookup):
20983         Return char*. Copy result with alloca/strcpy/strdup.
20984         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20985         returns char*. Free cached. If not saving realname
20986         free cached.
20987         * elf/dl-open.c (dl_open_worker): Do not assert that
20988         _r_debug->r_state is RT_CONSISTENT.
20989         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20990         returns char*.
20991
20992 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20993             Carlos O'Donell  <carlos@redhat.com>
20994
20995         [BZ #12674]
20996         * nptl/sem_waitcommon.c: New file.
20997         * nptl/sem_wait.c: Include sem_waitcommon.c.
20998         (__sem_wait_cleanup, do_futex_wait): Remove.
20999         (__new_sem_wait): Adapt.
21000         (__new_sem_trywait): New function.
21001         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21002         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21003         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21004         (sem_timedwait): Adapt.
21005         * nptl/sem_post.c (__new_sem_post): Adapt.
21006         (futex_wake): New function.
21007         (__old_sem_post): Add release MO fence.
21008         * nptl/sem_open.c (sem_open): Adapt.
21009         * nptl/sem_init.c (__new_sem_init): Adapt.
21010         (futex_private_if_supported): New function.
21011         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21012         (__old_sem_getvalue): Add using previous code.
21013         * sysdeps/nptl/internaltypes.h: Adapt.
21014         * nptl/tst-sem13.c (do_test): Adapt.
21015         * nptl/tst-sem11.c (main): Adapt.
21016         * nptl/sem_trywait.c: Remove.
21017         * nptl/DESIGN-sem.txt: Remove.
21018         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21019         (gen-as-const-headers): Remove structsem.sym.
21020         * nptl/structsem.sym: Remove.
21021         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21022         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21023         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21024         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21025         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21026         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21027         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21028         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21029         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21030         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21031         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21032         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21033         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21034         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21035         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21036         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21037         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21038         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21039         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21040         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21041         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21042         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21043
21044 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21045
21046         * INSTALL: Regenerated.
21047
21048         * po/libc.pot: Regenerated.
21049
21050 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21051             Sandra Loosemore  <sandra@codesourcery.com>
21052             Andrew Jenner  <andrew@codesourcery.com>
21053             Joseph Myers  <joseph@codesourcery.com>
21054             Nathan Sidwell  <nathan@codesourcery.com>
21055
21056         * NEWS: Mention new Nios II port.
21057         * sysdeps/nios2/Implies: New file.
21058         * sysdeps/nios2/Makefile: New file.
21059         * sysdeps/nios2/Subdirs: New file.
21060         * sysdeps/nios2/Versions: New file.
21061         * sysdeps/nios2/__longjmp.S: New file.
21062         * sysdeps/nios2/abort-instr.h: New file.
21063         * sysdeps/nios2/backtrace.c: New file.
21064         * sysdeps/nios2/bits/endian.h: New file.
21065         * sysdeps/nios2/bits/fenv.h: New file.
21066         * sysdeps/nios2/bits/link.h: New file.
21067         * sysdeps/nios2/bits/setjmp.h: New file.
21068         * sysdeps/nios2/bsd-_setjmp.S: New file.
21069         * sysdeps/nios2/bsd-setjmp.S: New file.
21070         * sysdeps/nios2/configure: New generated file.
21071         * sysdeps/nios2/configure.ac: New file.
21072         * sysdeps/nios2/crti.S: New file.
21073         * sysdeps/nios2/crtn.S: New file.
21074         * sysdeps/nios2/dl-init.c: New file.
21075         * sysdeps/nios2/dl-machine.h: New file.
21076         * sysdeps/nios2/dl-sysdep.h: New file.
21077         * sysdeps/nios2/dl-tls.h: New file.
21078         * sysdeps/nios2/dl-trampoline.S: New file.
21079         * sysdeps/nios2/gccframe.h: New file.
21080         * sysdeps/nios2/gmp-mparam.h: New file.
21081         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21082         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21083         * sysdeps/nios2/ldsodefs.h: New file.
21084         * sysdeps/nios2/libc-tls.c: New file.
21085         * sysdeps/nios2/libm-test-ulps: New file.
21086         * sysdeps/nios2/machine-gmon.h: New file.
21087         * sysdeps/nios2/math-tests.h: New file.
21088         * sysdeps/nios2/math_private.h: New file.
21089         * sysdeps/nios2/memusage.h: New file.
21090         * sysdeps/nios2/nptl/Makefile: New file.
21091         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21092         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21093         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21094         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21095         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21096         * sysdeps/nios2/nptl/tls.h: New file.
21097         * sysdeps/nios2/preconfigure: New file.
21098         * sysdeps/nios2/s_fma.c: New file.
21099         * sysdeps/nios2/s_fmaf.c: New file.
21100         * sysdeps/nios2/setjmp.S: New file.
21101         * sysdeps/nios2/sfp-machine.h: New file.
21102         * sysdeps/nios2/sotruss-lib.c: New file.
21103         * sysdeps/nios2/stackguard-macros.h: New file.
21104         * sysdeps/nios2/stackinfo.h: New file.
21105         * sysdeps/nios2/start.S: New file.
21106         * sysdeps/nios2/sysdep.h: New file.
21107         * sysdeps/nios2/tls-macros.h: New file.
21108         * sysdeps/nios2/tst-audit.h: New file.
21109         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21110         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21111         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21112         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21113         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21114         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21115         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21116         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21117         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21118         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21119         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21120         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21121         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21122         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21123         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21124         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21125         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21126         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21127         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21128         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21129         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21130         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21131         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21132         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21133         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21134         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21135         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21136         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21137         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21138         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21139         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21140         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21141         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21142         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21143         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21144         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21145         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21146         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21147         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21148         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21149         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21150         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21151         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21152         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21153
21154 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21155
21156         [BZ #17844]
21157         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21158         (getutent): Use weak_alias in non SHARED case
21159         and default_symbol_version in SHARED case.
21160         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21161         (getutent_r, pututline): Likewise.
21162         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21163         (getutid): Likewise.
21164         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21165         (getutid_r): Likewise.
21166         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21167         (getutline): Likewise.
21168         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21169         (getutline_r): Likewise.
21170         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21171         (updwtmp): Likewise.
21172
21173 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21174
21175         [BZ #17848]
21176         * sysdeps/s390/s390-32/memcmp.S
21177         (memcmp_g5): Rename to __memcmp_g5.
21178         * sysdeps/s390/s390-32/memcpy.S
21179         (memcpy_g5): Rename to __memcpy_g5.
21180         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21181         (memcpy_mvcle) Rename to __memcpy_mvcle.
21182         * sysdeps/s390/s390-32/memset.S
21183         (memset_g5): Rename to __memset_g5.
21184         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21185         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21186         and use prefixed functions.
21187         * sysdeps/s390/s390-32/multiarch/memcmp.S
21188         (memcmp_z196): Rename to __memcmp_z196.
21189         (memcmp_z10): Rename to __memcmp_z10.
21190         (memcmp): Set alias to __memcmp_g5.
21191         (bcmp): Set alias to __memcmp_g5.
21192         * sysdeps/s390/s390-32/multiarch/memcpy.S
21193         (memcpy_z196): Rename to __memcpy_z196.
21194         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21195         (memcpy_z10): Rename to __memcpy_z10.
21196         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21197         (memcpy): Set alias to __memcpy_g5.
21198         * sysdeps/s390/s390-32/multiarch/memset.S
21199         (memset_z196): Rename to __memset_z196.
21200         Jump to __memset_mvcle instead of memset_mvcle.
21201         (memset_z10): Rename to __memset_z10.
21202         Jump to __memset_mvcle instead of memset_mvcle.
21203         (memset_mvcle) Rename to __memset_mvcle.
21204         (memset): Set alias to __memset_g5.
21205         * sysdeps/s390/s390-64/memcmp.S
21206         (memcmp_z900): Rename to __memcmp_z900.
21207         * sysdeps/s390/s390-64/memcpy.S
21208         (memcpy_z900): Rename to __memcpy_z900.
21209         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21210         (memcpy_mvcle) Rename to __memcpy_mvcle.
21211         * sysdeps/s390/s390-64/memset.S
21212         (memset_z900): Rename to __memset_z900.
21213         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21214         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21215         and use prefixed functions.
21216         * sysdeps/s390/s390-64/multiarch/memcmp.S
21217         (memcmp_z196): Rename to __memcmp_z196.
21218         (memcmp_z10): Rename to __memcmp_z10.
21219         (memcmp): Set alias to __memcmp_z900.
21220         (bcmp): Set alias to __memcmp_z900.
21221         * sysdeps/s390/s390-64/multiarch/memcpy.S
21222         (memcpy_z196): Rename to __memcpy_z196.
21223         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21224         (memcpy_z10): Rename to __memcpy_z10.
21225         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21226         (memcpy): Set alias to __memcpy_z900.
21227         * sysdeps/s390/s390-64/multiarch/memset.S
21228         (memset_z196): Rename to __memset_z196.
21229         Jump to __memset_mvcle instead of memset_mvcle.
21230         (memset_z10): Rename to __memset_z10.
21231         Jump to __memset_mvcle instead of memset_mvcle.
21232         (memset_mvcle) Rename to __memset_mvcle.
21233         (memset): Set alias to __memset_z900.
21234
21235 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21236
21237         [BZ #17748]
21238         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21239         __fesetenv instead of fesetenv.
21240
21241 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21242
21243         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21244         macro.
21245
21246 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21247
21248         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21249         regression on LE.
21250
21251         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21252         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21253         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21254         strncmp-power8 object.
21255         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21256         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21257         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21258         * NEWS: Update.
21259
21260 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21261             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21262
21263         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21264         trailing byte check.
21265
21266 2015-01-13  David S. Miller  <davem@davemloft.net>
21267
21268         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21269
21270 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21271
21272         * login/logout.c (logout): Use memset rather than bzero.
21273         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21274         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21275         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21276         (_gethtbyaddr): Likewise.
21277         * locale/programs/simple-hash.c (bcopy): Macro removed.
21278
21279 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21280
21281         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21282         Add strcmp-power8 object.
21283         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21284         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21285         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21286         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21287         __strcmp_power8 implementation.
21288         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21289         * NEWS: Update.
21290
21291         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21292         Add strncpy-power8 and stpncpy-power8 objects.
21293         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21294         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21295         implementations.
21296         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21297         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21298         __stpncpy_power8 implementation.
21299         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21300         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21301         __strncpy_power8 implementation.
21302         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21303         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21304         * NEWS: Update.
21305
21306         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21307         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21308         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21309
21310         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21311         strncat-power8 object.
21312         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21313         __strcat_power8 implementation.
21314         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21315         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21316         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21317         optimized strcat for power8.
21318
21319         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21320         strcpy-power8 and stpcpy-power8 objects.
21321         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21322         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21323         implementations.
21324         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21325         multiarch stpcpy implementation for POWER8.
21326         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21327         multiarch strcpy implementation for POWER8.
21328         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21329         __strcpy_power8 function.
21330         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21331         stpcpy for POWER8.
21332         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21333         strcpy for POWER8.
21334         * NEWS: Update.
21335
21336 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21337
21338         [BZ #16009]
21339         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21340         weights and rules. Use do_xfrm_cached if data fits in cache,
21341         do_xfrm otherwise.  Moved former main loop to...
21342         * (do_xfrm_cached): New function.
21343         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21344         find_idx, find_position and stack_push.
21345         * (find_idx): New function.
21346         * (find_position): Likewise.
21347         * localedata/sort-test.sh: Added test run for do_xfrm.
21348         * localedata/xfrm-test.c (main): Added command line option
21349         -nocache to run the test with strings that are too large for
21350         the STRXFRM cache.
21351
21352 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21353
21354         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21355         variable to lll_futex_wake call, not the value itself.
21356
21357 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21358
21359         [BZ #17803]
21360         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21361         twom64.  Adjust value to 0x1p-64L.
21362         (__scalblnl): Only return standard underflowing result for K <=
21363         -64 not K <= -63; adjust exponent for underflowing result by 64
21364         not 63.
21365         * math/libm-test.inc (scalbn_test_data): Add more tests.
21366         (scalbln_test_data): Likewise.
21367
21368         [BZ #17834]
21369         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21370         0x1p63L.
21371         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21372         not HX.
21373         * math/libm-test.inc (scalbn_test_data): Add more tests.
21374         (scalbln_test_data): Likewise.
21375
21376 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21377             Stefani Seibold  <stefani@seibold.net>
21378
21379         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21380         (sysdep_routines): Add dl-vdso here, ...
21381         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21382         (sysdep_routines): ... not here.
21383         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21384         fallback when vDSO is not presented.
21385         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21386         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21387         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21388         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21389         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21390         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21391         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21392         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21393         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21394         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21395         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21396         fallback configurable symbol when vDSO is not available.
21397         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21398         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21399         be able to redefine fallback symbol when vDSO is not available.
21400         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21401         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21402
21403 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21404
21405         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21406         (TLS_INIT_TP): Add tm_capable initialization.
21407         (TLS_DEFINE_INIT_TP): Likewise.
21408         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21409         TCB.
21410         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21411         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21412         calculation.
21413         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21414         transactoion is lock elision is built and TCB tm_capable is set.
21415         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21417         (INTERNAL_SYSCALL_NCS): Likewise.
21418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21419         (INTERNAL_SYSCALL_NCS): Likewise.
21420         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21421
21422         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21423         for powerpc.
21424         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21425         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21426         and remove it for 32 bits case.
21427         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21428         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21429         initialization.
21430         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21431         Disable lock elision with rdlocks if elision is not available.
21432
21433         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21434         (sysdep_routines): Add lock elision objects.
21435         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21436         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21437         [pthread_mutex_t] (__elision): Add field.
21438         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21439         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21440         elision definitions for powerpc.
21441         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21442         implementation of lock elision for powerpc.
21443         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21444         implementation of timed lock elision for powerpc.
21445         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21446         implementation of trylock with lock elision for powerpc.
21447         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21448         implementaion of unlock for lock elision for powerpc.
21449         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21450         automatic enable lock elision for mutexes.
21451         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21452         transaction execution definitions for powerpc.
21453         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21454         definitions.
21455         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21456         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21457         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21458         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21459         * NEWS: Update.
21460
21461 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21462
21463         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21464         for #include of <shm-directory.h>.
21465
21466 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21467
21468         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21469         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21470
21471 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21472
21473         [BZ #17791]
21474         * NEWS: Mention bug fix.
21475         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21476         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21477         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21478
21479 2015-01-09  Torvald Riegel <triegel@redhat.com>
21480
21481         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21482
21483 2015-01-09  Torvald Riegel <triegel@redhat.com>
21484
21485         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21486
21487 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21488
21489         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21490         pointer and cast to uintptr_t.
21491
21492 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21493
21494         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21495         removed.
21496         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21497
21498 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21499
21500         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21501         of 0.
21502
21503 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21504
21505         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21506         <nptl/pthreadP.h> instead.
21507         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21508
21509         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21510         already defined.
21511         [__SIGRTMIN] (init): Function removed.
21512         [__SIGRTMIN] (initialized): Variable removed.
21513         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21514         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21515         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21516         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21517         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21518         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21519         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21520         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21521         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21522         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21523         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21524         * sysdeps/nptl/allocrtsig.c: New file.
21525         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21526         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21527         * sysdeps/generic/testrtsig.h: File removed.
21528
21529         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21530         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21531
21532         * nptl/nptl-init.c (pthread_functions): Conditionalize
21533         .ptr__nptl_setxid initialization on [SIGSETXID].
21534
21535         * sysdeps/nptl/sys/procfs.h: New file.
21536         * nptl_db/Makefile (headers): Add it.
21537         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21538
21539         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21540         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21541         * nptl/pthread_attr_setaffinity.c: Include it.
21542         * nptl/pthread_setattr_default_np.c: Likewise.
21543         * nptl/check-cpuset.h: New file.
21544
21545 2015-01-08  Richard Henderson  <rth@redhat.com>
21546
21547         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21548         (CFLAGS-tst-execstack-prog.c): Likewise.
21549         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21550
21551 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21552             Sandra Loosemore  <sandra@codesourcery.com>
21553             Andrew Jenner  <andrew@codesourcery.com>
21554             Joseph Myers  <joseph@codesourcery.com>
21555             Nathan Sidwell  <nathan@codesourcery.com>
21556
21557         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21558         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21559         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21560         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21561         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21562         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21563         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21564         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21565         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21566         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21567         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21568         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21569         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21570         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21571         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21572         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21573         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21574
21575 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21576
21577         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21578         timespec struct member in syscall macro.
21579         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21580         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21581         first timeval struct member in syscall macro.
21582         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21583
21584 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21585
21586         [BZ #17748]
21587         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21588         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21589         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21590         __feupdateenv and define as weak alias of __feupdateenv.  Use
21591         libm_hidden_weak.
21592         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21593         libm_hidden_def.
21594         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21595         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21596         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21597         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21598         libm_hidden_def.
21599         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21600         __feupdateenv and define as weak alias of __feupdateenv.  Use
21601         libm_hidden_weak.
21602         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21603         libm_hidden_def.
21604         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21605         __feupdateenv and define as weak alias of __feupdateenv.  Use
21606         libm_hidden_weak.
21607         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21608         libm_hidden_def.
21609         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21610         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21611         (__feupdateenv): Likewise.
21612         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21613         __feupdateenv and define as weak alias of __feupdateenv.  Use
21614         libm_hidden_weak.
21615         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21616         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21617         libm_hidden_def.
21618         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21619         function.
21620         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21621         libm_hidden_def.
21622         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21623         __feupdateenv instead of feupdateenv.
21624         (default_libc_feupdateenv_test): Likewise.
21625         (libc_feresetround_ctx): Likewise.
21626
21627 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21628
21629         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21630         prototype.
21631
21632 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21633
21634         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21635         COLL_SYM in a couple of places to avoid uninitialized variable
21636         wanings on tilegx gcc 4.8.2.
21637
21638 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21639
21640         * sysdeps/aarch64/strcpy.S: New file.
21641         * sysdeps/aarch64/stpcpy.S: New file.
21642         * NEWS: Updated.
21643
21644 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21645
21646         * sysdeps/aarch64/strrchr.S: New file.
21647         * NEWS: Updated.
21648
21649 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21650
21651         [BZ #17658]
21652         * stdlib/setenv.c: Fix memory leak when setting large,
21653         duplicate string.
21654
21655 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21656
21657         [BZ #17273]
21658         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21659         and tabs from buffer before parsing fstab entry.
21660         * misc/tst-mntent.c (main): Add test for mount entry with
21661         trailing spaces and tabs.
21662
21663 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21664
21665         [BZ #17748]
21666         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21667         * math/fesetround.c (fesetround): Rename to __fesetround and
21668         define as weak alias of __fesetround.  Use libm_hidden_weak.
21669         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21670         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21671         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21672         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21673         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21674         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21675         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21676         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21677         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21678         __fesetround_inline.
21679         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21680         __fesetround_inline instead of __fesetround.
21681         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21682         __fesetround and define as weak alias of __fesetround.  Use
21683         libm_hidden_weak.  Call __fesetround_inline instead of
21684         __fesetround.
21685         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21686         __fesetround and define as weak alias of __fesetround.  Use
21687         libm_hidden_weak.
21688         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21689         Likewise.
21690         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21691         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21692         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21693         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21694         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21695         __fesetround and define as weak alias of __fesetround.  Use
21696         libm_hidden_weak.
21697         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21698         __fesetround instead of fesetround.
21699         (default_libc_feholdexcept_setround): Likewise.
21700         (libc_feholdsetround_ctx): Likewise.
21701         (libc_feholdsetround_noex_ctx): Likewise.
21702
21703         [BZ #17748]
21704         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21705         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21706         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21707         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21708         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21709         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21710         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21711         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21712         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21713         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21714         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21715         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21716         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21717         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21718         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21719         libm_hidden_def.
21720         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21721         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21722         Likewise.
21723         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21724         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21725         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21726         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21727         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21728         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21729         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21730         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21731         __fesetenv instead of fesetenv.
21732         (libc_feresetround_noex_ctx): Likewise.
21733         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21734         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21735         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21736         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21737         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21738         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21739         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21740         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21741         (__feupdateenv): Likewise.
21742         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21743         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21744         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21745         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21746
21747 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21748
21749         [BZ #17806]
21750         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21751         addresses have been freed.
21752
21753 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21754
21755         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21756         and nservall.
21757
21758 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21759
21760         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21761         Clean up check_pf allocation pattern. addresses
21762
21763 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21764
21765         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21766         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21767         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21768         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21769         * nptl/pthread_join.c (pthread_join): Likewise.
21770         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21771         * sysdeps/posix/waitid.c (__waitid): Likewise.
21772         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21773         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21774         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21775         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21776         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21777         Likewise.
21778         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21779         (__libc_pread64): Likewise.
21780         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21781         (__libc_pwrite): Likewise.
21782         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21783         (__libc_pwrite64): Likewsie.
21784         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21785         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21786         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21787         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21788         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21789         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21790         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21792         Likewise.
21793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21794         (__libc_pread64): Likewise.
21795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21796         Likewise.
21797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21798         (__libc_pwrite64): Likewise.
21799         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21800         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21801         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21802         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21803         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21804         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21805         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21806         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21807         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21808         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21809         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21810         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21811         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21812         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21813         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21814         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21815         Likewise.
21816
21817 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21818
21819         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21820         (CFLAGS-test-double.c): Likewise.
21821         (CFLAGS-test-ldouble.c): Likewise.
21822         (CPPFLAGS-test-ifloat.c): Likewise.
21823         (CPPFLAGS-test-idouble.c): Likewise.
21824         (CPPFLAGS-test-ildoubl.c): Likewise.
21825         (CFLAGS-test-test-fenv.c): Remove variable.
21826         (CFLAGS-test-misc.c): Likewise.
21827
21828 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21829
21830         [BZ #17797]
21831         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21832         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21833         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21834         CLOCKS_PER_SEC == 1000000.
21835         * time/clocktest.c (main): Replace %ld with %jd and cast to
21836         intmax_t.
21837
21838 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21839
21840         * sysdeps/generic/unwind-resume.h: New file.
21841         * sysdeps/gnu/unwind-resume.c: Include it.
21842         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21843         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21844         argument list.
21845         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21846         global rather than static.
21847         (_Unwind_Resume): Update user.
21848         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21849         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21850         rather than static.  Add __attribute__ ((cold)).
21851         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21852         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21853         * sysdeps/arm/arm-unwind-resume.S: New file.
21854         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21855         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21856         * sysdeps/arm/Makefile [$(subdir) = csu]
21857         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21858         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21859         Add rt-arm-unwind-resume.
21860         [$(subdir) = nptl]
21861         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21862         Add pt-arm-unwind-resume.
21863         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21864         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21865
21866 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21867
21868         [BZ #17748]
21869         * include/fenv.h (__feholdexcept): Declare.  Use
21870         libm_hidden_proto.
21871         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21872         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21873         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21874         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21875         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21876         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21877         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21878         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21879         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21880         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21881         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21882         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21883         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21884         (feholdexcept): Likewise.
21885         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21886         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21887         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21888         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21889         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21890         __feholdexcept instead of feholdexcept.
21891         (default_libc_feholdexcept_setround): Likewise.
21892
21893 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21894
21895         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21896         to avoid using stl/str to align destination.
21897
21898 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21899
21900         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21901
21902 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21903
21904         [BZ #17796]
21905         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21906         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21907         Define as weak alias not strong alias.
21908
21909 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21910
21911         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21912         bltzal with addiupc.
21913         (RTLD_START): Ditto.
21914
21915 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21916
21917         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21918         for __vdso_* functions in declarations.
21919         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21920         definitions.
21921         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21922         INTERNAL_VSYSCALL): Use struct return types to check for error.
21923
21924         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21925         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21926         function with cast from llround().
21927         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21928         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21929         Define.
21930
21931 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21932
21933         [BZ #17793]
21934         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21935         Define as weak alias not strong alias.
21936
21937         [BZ #17635]
21938         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21939         ...
21940         * ctype/ctype-extn.c: ... here.
21941         (__isblank_l): Move to ...
21942         * ctype/ctype-c99_l.c: ... here.  New file.
21943         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21944         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21945         Remove variable.
21946         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21947         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21948         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21949         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21950         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21951
21952         [BZ #17777]
21953         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21954         (posix_fadvise64): Define as weak alias not strong alias.
21955         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21956         (posix_fallocate64): Likewise.
21957         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21958         Remove variable.
21959         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21960         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21961         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21962         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21963         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21964
21965 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21966
21967         [BZ #16191]
21968         * NEWS: Mention bug fix.
21969         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21970         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21971         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21972         (HOST_STACK_END_ADDR): Likewise.
21973
21974 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21975
21976         [BZ #17748]
21977         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21978         * math/fegetround.c (fegetround): Rename to __fegetround and
21979         define as weak alias of __fegetround.  Use libm_hidden_weak.
21980         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21981         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21982         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21983         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21984         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21985         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21986         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21987         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21988         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21989         Undefine after rather than before function definition; use
21990         parentheses around function name in definition.
21991         (__fegetround): Also undefine macro after function definition.
21992         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21993         __fegetround and define as weak alias of __fegetround.  Use
21994         libm_hidden_weak.  Do not undefine as macro.
21995         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21996         Likewise.
21997         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21998         __fegetround and define as weak alias of __fegetround.  Use
21999         libm_hidden_weak.
22000         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22001         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22002         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22003         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22004         __fegetround and define as weak alias of __fegetround.  Use
22005         libm_hidden_weak.
22006         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22007         __fegetround instead of fegetround.
22008
22009         [BZ #17782]
22010         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22011         Condition macro definition on [__USE_MISC].
22012
22013         [BZ #17781]
22014         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22015         (struct sigaction): Change type of sa_flags field to int.
22016
22017         [BZ #17780]
22018         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22019         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22020         __glibc_reserved0.
22021
22022         * nptl/version.c (banner): Use single year in copyright notice.
22023
22024         * NEWS: Update copyright dates.
22025         * catgets/gencat.c (print_version): Likewise.
22026         * csu/version.c (banner): Likewise.
22027         * debug/catchsegv.sh: Likewise.
22028         * debug/pcprofiledump.c (print_version): Likewise.
22029         * debug/xtrace.sh (do_version): Likewise.
22030         * elf/ldconfig.c (print_version): Likewise.
22031         * elf/ldd.bash.in: Likewise.
22032         * elf/pldd.c (print_version): Likewise.
22033         * elf/sotruss.sh: Likewise.
22034         * elf/sprof.c (print_version): Likewise.
22035         * iconv/iconv_prog.c (print_version): Likewise.
22036         * iconv/iconvconfig.c (print_version): Likewise.
22037         * locale/programs/locale.c (print_version): Likewise.
22038         * locale/programs/localedef.c (print_version): Likewise.
22039         * login/programs/pt_chown.c (print_version): Likewise.
22040         * malloc/memusage.sh (do_version): Likewise.
22041         * malloc/memusagestat.c (print_version): Likewise.
22042         * malloc/mtrace.pl: Likewise.
22043         * manual/libc.texinfo: Likewise.
22044         * nptl/version.c (banner): Likewise.
22045         * nscd/nscd.c (print_version): Likewise.
22046         * nss/getent.c (print_version): Likewise.
22047         * nss/makedb.c (print_version): Likewise.
22048         * posix/getconf.c (main): Likewise.
22049         * scripts/test-installation.pl: Likewise.
22050         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22051
22052 2015-01-02  Will Newton  <will.newton@linaro.org>
22053
22054         * sysdeps/arm/armv7/configure: Removed.
22055         * sysdeps/arm/armv7/configure.ac: Likewise.
22056
22057 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22058
22059         * All files with FSF copyright notices: Update copyright dates
22060         using scripts/update-copyrights.
22061         * intl/plural.c: Regenerated.
22062         * locale/programs/charmap-kw.h: Likewise.
22063         * locale/programs/locfile-kw.h: Likewise.
22064
22065 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22066
22067         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22068
22069 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22070
22071         [BZ #17748]
22072         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22073         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22074         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22075         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22076         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22077         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22078         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22079         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22080         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22081         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22082         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22083         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22084         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22085         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22086         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22087         libm_hidden_def.
22088         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22089         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22090         Likewise.
22091         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22092         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22093         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22094         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22095         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22096         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22097         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22098         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22099         __fegetenv instead of fegetenv.
22100         (libc_feholdsetround_noex_ctx): Likewise.
22101
22102 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22103
22104         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22105         (Elf_MIPS_ABIFlags_v0): New structure.
22106         (EF_MIPS_FP64): Define.
22107         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22108         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22109         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22110         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22111         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22112         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22113         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22114         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22115         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22116         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22117         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22118         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22119         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22120         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22121         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22122         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22123         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22124         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22125         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22126         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22127         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22128         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22129         field.
22130         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22131         EF_MIPS_FP64.
22132         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22133         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22134         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22135         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22136         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22137         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22138         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22139         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22140         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22141         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22142         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22143         record the current FP ABI extension.
22144         (mips-mode-switch): Define to show if kernel headers support mode
22145         switching.
22146         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22147         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22148         supported SYSV ABI version to 3.
22149         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22150         feature.
22151
22152 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22153             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22154
22155         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22156         path.
22157         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22158
22159 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22160
22161         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22162         __fegetround and redefine to call __fegetround.  Remove condition
22163         on [!__NO_MATH_INLINES].
22164         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22165         function.
22166         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22167         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22168         Remove macro.
22169         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22170         instead of <fenv_libc.h>.
22171         (__llrintl): Call fegetround instead of __fegetround.
22172         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22173         instead of <fenv_libc.h>.
22174         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22175         (__lrintl): Call fegetround instead of __fegetround.
22176         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22177         instead of <fenv_libc.h>.
22178         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22179         (__rintl): Call fegetround instead of __fegetround.
22180
22181 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22182
22183         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22184         arrays.
22185
22186 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22187
22188         [BZ #17775]
22189         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22190         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22191         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22192
22193 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22194
22195         * sysdeps/i386/tls-macros.h: Include <features.h>.
22196         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22197         (TLS_IE): Likewise.
22198         (TLS_LD): Likewise.
22199         (TLS_GD): Likewise.
22200         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22201         define for GCC >= 5.0.
22202
22203 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22204
22205         * math/test-fenv.c (test_single_exception, set_single_exc,
22206         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22207         feexcp_mask_test, feenable_test, fe_single_test): Add
22208         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22209         case where they are not used.
22210         * math/libm-test.inc: Likewise.
22211         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22212         unused in the absence of FP rounding/exception support.
22213         * stdio-common/tst-printf-round.c: Likewise.
22214         * stdlib/tst-strtod-round.c: Likewise.
22215         * stdlib/tst-strtod-underflow.c: Likewise.
22216
22217 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22218
22219         [BZ #17723]
22220         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22221         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22222         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22223         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22224         libm_hidden_weak.
22225         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22226         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22227         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22228         libm_hidden_def.
22229         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22230         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22231         libm_hidden_weak.
22232         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22233         Likewise.
22234         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22235         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22236         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22237         libm_hidden_weak.
22238         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22239         libm_hidden_def.
22240         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22241         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22242         (__feraiseexcept): Likewise.
22243         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22244         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22245         libm_hidden_weak.
22246         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22247         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22248         libm_hidden_def.
22249         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22250         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22251         Use libm_hidden_def.
22252         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22253         libm_hidden_def.
22254         (feraiseexcept): Define as weak not strong alias.  Use
22255         libm_hidden_weak.
22256         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22257         New inline function.  Factored out of ...
22258         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22259         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22260         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22261         feraiseexcept.
22262         * math/w_acos.c (__acos): Likewise.
22263         * math/w_asin.c (__asin): Likewise.
22264         * math/w_ilogb.c (__ilogb): Likewise.
22265         * math/w_j0.c (y0): Likewise.
22266         * math/w_j1.c (y1): Likewise.
22267         * math/w_jn.c (yn): Likewise.
22268         * math/w_log.c (__log): Likewise.
22269         * math/w_log10.c (__log10): Likewise.
22270         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22271         * sysdeps/aarch64/fpu/math_private.h
22272         (libc_feupdateenv_test_aarch64): Likewise.
22273         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22274         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22275         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22276         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22277         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22278         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22279         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22280         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22281         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22282         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22283
22284 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22285
22286         [BZ #17732]
22287         * io/test-utime.c (main): Replace %ld with %jd and cast to
22288         intmax_t.
22289         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22290         * nptl/tst-mutex5.c: Include <stdint.h>.
22291         (do_test): Replace %ld with %jd and cast to intmax_t.
22292         * posix/tst-regex.c (run_test): Likewise.
22293         (run_test_backwards): Likewise.
22294         * rt/tst-clock.c: Include <stdint.h>.
22295         (clock_test): Replace %ld with %jd and cast to intmax_t.
22296         * rt/tst-cpuclock1.c: Include <stdint.h>.
22297         (do_test): Replace %lu with %ju and cast to uintmax_t.
22298         * rt/tst-cpuclock2.c: Include <stdint.h>.
22299         (do_test): Replace %lu with %ju and cast to uintmax_t.
22300         * rt/tst-mqueue1.c: Include <stdint.h>.
22301         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22302         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22303         intmax_t.
22304         * rt/tst-mqueue4.c (do_test): Likewise.
22305         * rt/tst-timer4.c: Include <stdint.h>.
22306         (check_ts): Replace %ld with %jd and cast to intmax_t.
22307         (do_test): Likewise.
22308         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22309         and cast to intmax_t.
22310         * sysdeps/pthread/tst-timer.c (main): Likewise.
22311         * time/clocktest.c (main): Likewise.
22312         * time/tst-posixtz.c (do_test): Likewise.
22313         * timezone/tst-timezone.c (main): Likewise.
22314
22315 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22316             H.J. Lu  <hongjiu.lu@intel.com>
22317
22318         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22319         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22320         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22321         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22322         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22323         version if bit_Fast_Unaligned_Load is set.
22324         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22325         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22326         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22327         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22328         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22329         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22330         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22331         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22332         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22333         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22334         to 4.
22335         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22336         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22337         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22338         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22339
22340 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22341
22342         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22343         instead of #if to avoid a Wundef warning.
22344         * stdlib/tst-limits.c (do_test): Likewise.
22345
22346         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22347         parallel other exception macros.
22348         (fegetenv): Convert from macro to extern inline so that it applies
22349         retroactively to inline functions already seen by the compiler.
22350         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22351
22352         * posix/Makefile (before-compile): Use $(objpfx) for
22353         posix-conf-vars-def.h.
22354
22355 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22356
22357         * posix/getconf.c (main): Use size_t for type of I.
22358         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22359         NSPEC.
22360
22361         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22362         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22363         * posix/posix-envs.def: Likewise.
22364         * sysdeps/posix/sysconf.c: Likewise.
22365         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22366         (specs): Remove array.
22367         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22368         array.
22369
22370         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22371         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22372         (__sysconf): Use CONF_IS_* macros.
22373
22374         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22375         ($(objpfx)posix-conf-vars-def.h): New target.
22376         * posix/posix-conf-vars.list: New file.
22377         * posix/posix-conf-vars.h: New file.
22378         * posix/confstr.c: Include posix-conf-vars.h.
22379         (confstr): Use CONF_IS_* macros.
22380         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22381         CONF_IS_* macros.
22382         * scripts/gen-posix-conf-vars.awk: New file.
22383
22384 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22385
22386         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22387         fegetround): Add no-op macros to avoid linknamespace issues.
22388
22389         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22390         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22391
22392         * sysdeps/unix/sysv/linux/tile/sysdep.h
22393         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22394         assembly-specific section to avoid a redefinition warning.
22395
22396         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22397         long before casting to pointer to avoid a cast warning.
22398
22399 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22400
22401         * sysdeps/tile/tilegx/Implies: New file.
22402
22403 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22404
22405         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22406
22407 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22408
22409         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22410
22411 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22412
22413         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22414         not define.
22415         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22416         <kernel-features.h>.
22417         (__utimes) [__NR_utimes]: Make code unconditional.
22418         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22419         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22420         (__ASSUME_UTIMES): Do not undefine.
22421         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22422         (__ASSUME_UTIMES): Likewise.
22423         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22424         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22425         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22426         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22427
22428 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22429
22430         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22431
22432 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22433
22434         [BZ #17747]
22435         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22436         alias to weak alias for j0l, y0l.
22437         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22438         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22439
22440         [BZ #17746]
22441         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22442         conversion.
22443
22444 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22445
22446         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22447         to zero if not already defined.
22448
22449 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22450
22451         [BZ #17724]
22452         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22453         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22454         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22455         (char *) casts added.
22456         * sysdeps/ieee754/k_standardf.c: New file.
22457         * sysdeps/ieee754/k_standardl.c: Likewise.
22458         * math/Makefile (libm-support): Remove k_standard.
22459         (libm-calls): Add k_standard.
22460
22461 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22462
22463         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22464         Optimize to avoid an unnecessary FPCR read.
22465
22466 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22467
22468         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22469         Optimize to reduce FPCR/FPSR accesses.
22470
22471 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22472
22473         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22474         Call libc_fetestexcept_aarch64.
22475
22476 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22477
22478         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22479         Call libc_fesetround_aarch64.
22480
22481 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22482
22483         [BZ #17733]
22484         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22485         (__bind): Do not define as weak alias.
22486         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22487         define.
22488         (__getsockname): Do not define as weak alias.
22489
22490 2014-12-22  Will Newton  <will.newton@linaro.org>
22491
22492         * manual/install.texi: Document that we require bison 2.7
22493         or above.
22494         * INSTALL: Regenerate.
22495         * configure.ac: Use AC_CHECK_PROG_VER instead of
22496         AC_PATH_PROG when checking for bison and check for
22497         version 2.7 or above.
22498         * configure: Regenerate.
22499
22500 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22501
22502         [BZ #17745]
22503         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22504         * sysdeps/tile/ffsll.c (ffsll): To here.
22505
22506         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22507
22508 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22509
22510         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22511         if not defined.
22512         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22513         definition.
22514         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22515         hidden ___tls_get_addr.
22516         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22517         hidden __tls_get_addr.
22518         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22519         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22520         Likewise.
22521
22522 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22523
22524         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22525         _dl_init call.
22526
22527 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22528
22529         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22530         from "call _dl_init@PLT".
22531         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22532
22533 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22534
22535         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22536         guarantees.
22537
22538 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22539
22540         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22541
22542 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22543
22544         [BZ #17744]
22545         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22546         strnlen.
22547
22548 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22549
22550         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22551         of multu on MIPSr6.
22552         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22553         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22554         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22555         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22556         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22557
22558 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22559
22560         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22561         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22562         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22563         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22564         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22565         mips32r6/mips64r6.
22566         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22567
22568 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22569
22570         * string/strncat.c (STRNCAT): Simplify implementation.
22571
22572 2014-12-19  David S. Miller  <davem@davemloft.net>
22573
22574         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22575         access the quad as both a long double and as a series of 4 words.
22576
22577         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22578         link_map->l_info array access.
22579
22580 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22581
22582         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22583
22584         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22585         * math/atest-exp2.c (TIMEOUT): Likewise.
22586         * math/atest-sincos.c (TIMEOUT): Likewise.
22587
22588 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22589
22590         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22591         -Wno-error with -fno-builtin-lround.
22592
22593 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22594
22595         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22596         Contains futex constants and functions moved over from ...
22597         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22598         <lowlevellock-futex.h>.
22599         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22600         (lll_timedwait_tid): Add comments and parentheses around macro
22601         arguments.
22602
22603 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22604
22605         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22606         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22607         (__lll_private_flag): Remove.
22608         (lll_futex_wait): Likewise.
22609         (lll_futex_timed_wait): Likewise.
22610         (lll_futex_wake): Likewise.
22611         (lll_futex_requeue): Likewise.
22612         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22613         (__lll_timedwait_tid): Spell out argument names.
22614         (lll_timedwait_tid): Add comments and parentheses around macro
22615         arguments.
22616         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22617         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22618
22619 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22620
22621         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22622         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22623         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22624         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22625         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22626         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22627         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22628         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22629         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22630         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22631         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22632         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22633         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22634         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22635         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22636         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22637         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22638         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22639         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22640
22641 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22642
22643         * sysdeps/x86_64/x32/Makefile: New file.
22644
22645 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22646
22647         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22648         1L with (mp_limb_t) 1.
22649
22650 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22651
22652         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22653         * nptl/libc_pthread_init.c: ... here.
22654         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22655         * nptl/register-atfork.c: ... here.
22656
22657         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22658         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22659         Use assert_perror to check its return value.
22660         (__gai_create_helper_thread): Likewise.
22661
22662         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22663
22664         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22665
22666 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22667
22668         [BZ #17725]
22669         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22670         __profil_counter.
22671         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22672         Likewise.
22673         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22674         Likewise.
22675         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22676         Likewise.
22677         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22678         (profil_counter): Likewise.
22679         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22680         (profil_counter): Likewise.
22681         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22682         Likewise.
22683         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22684         Likewise.
22685         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22686         (profil_counter): Likewise.
22687         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22688         Likewise.
22689         [!__profil_counter] (profil_counter): Define as weak alias of
22690         __profil_counter.
22691         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22692         (profil_counter): Rename to __profil_counter.
22693         [!__profil_counter] (profil_counter): Define as weak alias of
22694         __profil_counter.
22695         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22696         (profil_counter): Rename to __profil_counter.
22697         [!__profil_counter] (profil_counter): Define as weak alias of
22698         __profil_counter.
22699         * sysdeps/posix/profil.c: Update comment referring to
22700         profil_counter.
22701         (__profil): Use __profil_counter instead of profil_counter.
22702         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22703         __profil_counter.  Use __profil_counter_ushort and
22704         __profil_counter_uint in definitions.
22705         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22706         instead of profil_counter_uint and profil_counter_ushort.
22707
22708         [BZ #17722]
22709         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22710         define as weak alias of __inet_makeaddr.
22711         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22712         as weak alias of __inet_addr.
22713         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22714         as weak alias of __inet_pton.  Use libc_hidden_weak.
22715         * include/arpa/inet.h (__inet_pton): Declare.  Use
22716         libc_hidden_proto.
22717         (inet_makeaddr): Don't use libc_hidden_proto.
22718         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22719         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22720         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22721         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22722         Remove variable.
22723         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22724         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22725
22726 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22727
22728         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22729
22730 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22731
22732         * stdio-common/bug-vfprintf-nargs.c (do_test):
22733         Cast value to intptr_t to avoid format warning
22734         for usage with PRIdPTR printing macro.
22735
22736 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22737
22738         * libio/tst-widetext.c (do_test):
22739         Use format type %td instead of %Zd for ptrdiff_t
22740         in order to avoid format warning.
22741
22742 2014-12-17  Andreas Schwab  <schwab@suse.de>
22743
22744         * nscd/mem.c (gc): Add size_t cast to match printf format.
22745
22746 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22747
22748         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22749         (init): Apply PTR_MANGLE to pointers before storing them.
22750         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22751         before using them.
22752
22753 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22754
22755         [BZ #17719]
22756         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22757         define as weak alias of __memrchr.
22758         (__memrchr): Do not define as strong alias of memrchr.
22759         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22760         Remove variable.
22761         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22762         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22763         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22764
22765         [BZ #17717]
22766         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22767         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22768         (if_indextoname): Rename to __if_indextoname and define as weak
22769         alias of __if_indextoname.  Use libc_hidden_weak.
22770         (if_freenameindex): Rename to __if_freenameindex and define as
22771         weak alias of __if_freenameindex.
22772         (if_nameindex): Rename to __if_nameindex and define as weak alias
22773         of __if_nameindex.
22774         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22775         __if_nametoindex and define as weak alias of __if_nametoindex.
22776         Use libc_hidden_weak.
22777         (if_freenameindex): Rename to __if_freenameindex and define as
22778         weak alias of __if_freenameindex.
22779         (if_nameindex): Rename to __if_nameindex and define as weak alias
22780         of __if_nameindex.
22781         (if_indextoname): Rename to __if_indextoname and define as weak
22782         alias of __if_indextoname.  Use libc_hidden_weak.
22783         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22784         __if_nametoindex and define as weak alias of __if_nametoindex.
22785         Use libc_hidden_weak.
22786         (if_freenameindex): Rename to __if_freenameindex and define as
22787         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22788         (if_nameindex_netlink): Use __if_freenameindex instead of
22789         if_freenameindex.
22790         (if_nameindex): Rename to __if_nameindex and define as weak alias
22791         of __if_nameindex.  Use libc_hidden_weak.
22792         (if_indextoname): Rename to __if_indextoname and define as weak
22793         alias of __if_indextoname.  Use libc_hidden_weak.
22794         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22795         libc_hidden_proto.
22796         [!_ISOMAC] (__if_freenameindex): Likewise.
22797         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22798         if_nametoindex.
22799         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22800         variable.
22801         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22802         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22803         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22804         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22805         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22806         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22807         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22808
22809         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22810         Remove variable.
22811         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22812         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22813
22814 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22815
22816         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22817         subscript above bounds'
22818
22819         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22820         bounds.
22821
22822 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22823
22824         * libio/tst-fopenloc.c: Use test-skeleton.c.
22825
22826         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22827         (entry): Rename to ITEM.
22828         (do_test, comp): Adjust.
22829
22830         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22831
22832 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22833
22834         * string/tester.c: Include <libc-internal.h>.
22835         (test_memset): Ignore -Wmemset-transposed-args.
22836
22837 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22838
22839         * misc/tst-mntent2.c (do_test): Fix warning.
22840
22841 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22842
22843         * elf/tst-unique4lib.cc(a): Mark as used.
22844
22845 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22846
22847         [BZ #17630]
22848         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22849         names.
22850
22851 2014-12-16  Allan McRae  <allan@archlinux.org>
22852
22853         * stdio-common/Makefile (tests): Re-add bug26.
22854
22855 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22856
22857         [BZ #17657]
22858         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22859         static array.
22860
22861 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22862
22863         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22864         (__lll_lock_wait): Likewise.
22865         (__lll_timedlock_wait): Likewise.
22866         (__lll_timedwait_tid): Likewise.
22867         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22868         (__lll_robust_timedlock_wait): Likewise.
22869         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22870         (lll_cond_trylock): Likewise.
22871         (__lll_lock): Likewise.
22872         (__lll_robust_lock): Likewise.
22873         (__lll_cond_lock): Likewise.
22874         (lll_robust_cond_lock): Likewise.
22875         (__lll_timedlock): Likewise.
22876         (__lll_robust_timedlock): Likewise.
22877         (__lll_unlock): Likewise.
22878         (__lll_robust_unlock): Likewise.
22879         (lll_wait_tid): Likewise.
22880         (lll_timedwait_tid): Likewise.
22881
22882 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22883
22884         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22885
22886 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22887
22888         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22889
22890 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22891
22892         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22893         * stdio-common/tst-sprintf.c: Likewise.
22894
22895 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22896
22897         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22898
22899 2014-12-15  Jeff Law  <law@redhat.com>
22900
22901         [BZ #16617]
22902         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22903         on the heap.  (CVE-2012-3406)
22904         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22905         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22906         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22907
22908 2014-12-15  Will Newton  <will.newton@linaro.org>
22909
22910         * manual/install.texi: Bump required version of texinfo
22911         to 4.7 from 4.5.
22912         * INSTALL: Regenerated.
22913         * configure.ac: Check for makeinfo version 4.7 and above.
22914         * configure: Regenerated.
22915
22916 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22917
22918         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22919         PREFIX, string constant to insert between directory and name.
22920         * sysdeps/posix/shm_open.c: Update caller.
22921         * sysdeps/posix/shm_unlink.c: Likewise.
22922         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22923         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22924         (SEM_SHM_PREFIX): New macro.
22925         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22926         [$(have-thread-library) = no].
22927         * nptl/Makefile (libpthread-routines): Add shm-directory.
22928         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22929         * sysdeps/nptl/shm-directory.h: New file.
22930         * sysdeps/posix/shm-directory.c
22931         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22932         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22933         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22934         INTERNAL_SYSCALL.
22935         (__where_is_shmfs): Function removed.
22936         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22937         Variables removed.
22938         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22939         Use SHM_GET_NAME.
22940         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22941
22942         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22943         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22944         unconditional for use inside libpthread.
22945         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22946
22947 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22948
22949         * nptl/pthread_getaffinity.c: New file.
22950         * nptl/pthread_setaffinity.c: New file.
22951         * nptl/pthread_getname.c: New file.
22952         * nptl/pthread_setname.c: New file.
22953
22954         * nptl/pthread_create.c (START_THREAD_DEFN)
22955         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22956
22957 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22958             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22959
22960         * resolv/res_send.c (send_vc): Disable warning resplen may
22961         be used uninitialized.
22962
22963 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22964
22965         * nptl/tst-mutex6.c
22966         (ATTR_NULL): New define checks ATTR against NULL.
22967         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22968         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22969
22970 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22971
22972         [BZ #17581]
22973         * malloc/hooks.c
22974         (mem2mem_check): Revert my previous change.
22975         (malloc_check_get_size): Revert my previous change.
22976         (mem2chunk_check): Revert my previous change.
22977
22978 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22979
22980         * sysdeps/posix/shm-directory.c: New file.
22981         * sysdeps/posix/shm-directory.h: New file.
22982         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22983         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22984         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22985         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22986         Transmute EPERM to EACCES.
22987         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22988         from ...
22989         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22990         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22991
22992 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22993
22994         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22995         pointer and cast to uintptr_t.
22996         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22997         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22998         Add cast to avoid warning.
22999         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23000
23001 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23002
23003         * nptl/semaphore.h: Move to ...
23004         * sysdeps/pthread/semaphore.h: ... here.
23005         * Makefile (installed-headers): Change nptl/semaphore.h to
23006         sysdeps/pthread/semaphore.h.
23007
23008 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23009
23010         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23011         generated error format strings.
23012
23013         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23014         -Wformat-extra-args warnings for scanf formats.
23015         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23016         test of zero-length format (duh).
23017         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23018         corner-case scanf format test.
23019         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23020         generated fprintf format string.
23021         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23022         corner-case sprintf format tests.
23023         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23024         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23025         -Wformat-extra-args warnings throughout.
23026         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23027         (CFLAGS-scanf4.c): Likewise.
23028         (CFLAGS-scanf7.c): Likewise.
23029         (CFLAGS-tst-sprintf.c): Likewise.
23030         (CFLAGS-tst-printf.c): Likewise.
23031         (CFLAGS-tst-printfsz.c): Likewise.
23032
23033 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23034
23035         * include/cpio.h: New file.
23036         * include/fmtmsg.h: Likewise.
23037
23038         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23039         corresponding format argument to size_t.
23040         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23041         arguments.
23042         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23043         corresponding format argument to size_t.
23044         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23045         arguments.
23046         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23047         corresponding format argument to size_t.
23048         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23049         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23050         (CFLAGS-tst-mbswcs2.c): Likewise.
23051         (CFLAGS-tst-mbswcs3.c): Likewise.
23052         (CFLAGS-tst-mbswcs4.c): Likewise.
23053         (CFLAGS-tst-mbswcs5.c): Likewise.
23054         (CFLAGS-tst-trans.c): Likewise.
23055
23056 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23057
23058         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23059         rather than assuming they won't contain any '%'s.
23060
23061 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23062
23063         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23064         inhibit_loop_to_libcall to avoid recursive calls.
23065         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23066         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23067
23068 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23069
23070         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23071         prototype.
23072
23073 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23074
23075         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23076         integer value instead of boolean.
23077
23078 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23079
23080         * malloc/malloc.c: Fix powerof2 check.
23081
23082 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23083
23084         * locale/programs/locfile.h (maybe_swap_uint32):
23085         Remove inline and add unused attribute.
23086
23087 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23088
23089         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23090         Truncating assembler expression to a .long expression.
23091
23092 2014-12-11  Andreas Schwab  <schwab@suse.de>
23093
23094         * elf/rtld.c (struct map_args): Constify str member.
23095         (do_preload): Constify fname argument.
23096
23097 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23098
23099         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23100         constants definition.
23101
23102 2014-12-11  Andreas Schwab  <schwab@suse.de>
23103
23104         [BZ #16657]
23105         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23106         FORCE_ELISION instead of DO_ELISION.
23107         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23108         Remove.
23109         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23110         Likewise.
23111
23112         * iconvdata/gconv-modules: Remove duplicate entry.
23113
23114 2014-12-11  Will Newton  <will.newton@linaro.org>
23115
23116         Merge gettext 0.19.3 into intl/.
23117
23118         This involves a number of cosmetic changes to comments
23119         and ANSI function definitions and prototypes throughout
23120         all the files. The gettext copyright header is used but
23121         with the date ranges taken from the glibc copy.
23122
23123         * NEWS: Add gettext merge to 2.21.
23124         * intl/bindtextdom.c: Switch to gettext copyright.
23125         Use ANSI definitions and prototypes.
23126         Use gl_* locking primitives rather than __libc_* ones.
23127         Use __builtin_expect rather than __glibc_likely/unlikely.
23128         * intl/dcgettext.c: Switch to gettext copyright.
23129         Use ANSI definitions and prototypes.
23130         * intl/dcigettext.c: Switch to gettext copyright.
23131         Use ANSI definitions and prototypes.
23132         (INTDIV0_RAISES_SIGFPE): New define.
23133         Use gl_* locking primitives rather than __libc_* ones.
23134         Include eval-plural.h instead of plural-eval.c.
23135         Use __builtin_expect rather than __glibc_likely/unlikely.
23136         * intl/dcngettext.c: Switch to gettext copyright.
23137         Use ANSI definitions and prototypes.
23138         * intl/dgettext.c: Likewise.
23139         * intl/dngettext.c: Likewise.
23140         * intl/plural-eval.c: Renamed to...
23141         * intl/eval-plural.h: ...this.
23142         * intl/explodename.c: Switch to gettext copyright.
23143         Use ANSI definitions and prototypes.
23144         (_nl_explode_name): Use strchr instead of __rawmemchr.
23145         * intl/finddomain.c: Switch to gettext copyright.
23146         Use ANSI definitions and prototypes.
23147         Use gl_* locking primitives rather than __libc_* ones.
23148         (_nl_find_domain): Use malloc rather than alloca for
23149         allocation of temporary locale name.
23150         * intl/gettext.c: Switch to gettext copyright.
23151         Use ANSI definitions and prototypes.
23152         * intl/gettextP.h: Switch to gettext copyright.
23153         Use ANSI definitions and prototypes.
23154         Use gl_* locking primitives rather than __libc_* ones.
23155         * intl/gmo.h: Switch to gettext copyright.
23156         (struct sysdep_string): Move struct segment_pair outside of
23157         struct definition.
23158         * intl/hash-string.c: Use ANSI definitions and prototypes.
23159         * intl/hash-string.h: Switch to gettext copyright.
23160         Use ANSI definitions and prototypes.
23161         * intl/l10nflist.c: Switch to gettext copyright.
23162         Use ANSI definitions and prototypes.
23163         (_nl_normalize_codeset): Avoid integer overflow.
23164         * intl/loadinfo.h: Switch to gettext copyright.
23165         Use ANSI definitions and prototypes.
23166         (LIBINTL_DLL_EXPORTED): New define.
23167         (PATH_SEPARATOR): New define.
23168         * intl/loadmsgcat.c: Switch to gettext copyright.
23169         * intl/localealias.c: Switch to gettext copyright.
23170         Use ANSI definitions and prototypes.
23171         (_nl_expand_alias): Use PATH_SEPARATOR.
23172         * intl/ngettext.c: Switch to gettext copyright.
23173         Use ANSI definitions and prototypes.
23174         * intl/plural-exp.c: Likewise.
23175         * intl/plural-exp.h: Switch to gettext copyright.
23176         Use ANSI definitions and prototypes.
23177         (struct expression): Move definition of enum operator outside
23178         of struct definition.
23179         * intl/plural.c: Regenerate.
23180         * intl/plural.y: Switch to gettext copyright.
23181         Use ANSI definitions and prototypes.
23182         Port to bison 3.0.
23183         * intl/textdomain.c: Switch to gettext copyright.
23184         Use ANSI definitions and prototypes.
23185         Use gl_* locking primitives rather than __libc_* ones.
23186
23187 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23188
23189         * debug/warning-nop.c: Add used atrribute.
23190
23191 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23192
23193         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23194
23195         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23196         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23197         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23198
23199 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23200             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23201
23202         [BZ #17634]
23203         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23204         Undefine after defining function.  Define as weak alias of
23205         __wcschr.  Use libc_hidden_weak.
23206         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23207         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23208         (libc_hidden_def): Also define __GI___wcschr alias.
23209         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23210         __wcschr and define as weak alias of __wcschr.
23211         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23212         __wcschr.
23213         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23214         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23215         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23216         libc_hidden_weak.  Do not use libc_hidden_def.
23217         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23218         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23219         __GI___wcschr alias.
23220         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23221         [IS_IN (libc)] (wcschr): Define as macro expanding to
23222         __redirect_wcschr.
23223         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23224         [IS_IN (libc)] (__wcschr_power6): Likewise.
23225         [IS_IN (libc)] (__wcschr_power7): Likewise.
23226         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23227         instead of wcschr.
23228         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23229         __libc_wcschr.
23230         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23231         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23232         __wcschr and define as weak alias of __wcschr.  Use
23233         libc_hidden_builtin_def.
23234         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23235         as weak alias of __wcschr.  Use libc_hidden_weak.
23236         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23237         wcschr.
23238         * time/era.c (_nl_init_era_entries): Likewise.
23239         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23240         variable.
23241         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23242         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23243
23244 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23245
23246         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23247         format for long int variable.
23248
23249 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23250
23251         [BZ #10672]
23252         * manual/search.texi: (Array Sort Function): Remove claim how to make
23253         qsort stable.
23254
23255 2014-12-10  Andreas Schwab  <schwab@suse.de>
23256
23257         [BZ #12847]
23258         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23259         user-controlled locks.
23260
23261 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23262
23263         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23264         register.
23265
23266 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23267
23268         * configure.ac (--disable-werror): New configure option.
23269         (enable_werror): New AC_SUBST.
23270         * configure: Regenerated.
23271         * config.make.in (enable-werror): New variable.
23272         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23273         -Wno-error=undef.
23274         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23275         * manual/install.texi (Configuring and compiling): Document
23276         --disable-werror.
23277         * INSTALL: Regenerated.
23278         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23279         (CFLAGS-tst-chk2.c): Likewise.
23280         (CFLAGS-tst-chk3.c): Likewise.
23281         (CFLAGS-tst-chk4.cc): Likewise.
23282         (CFLAGS-tst-chk5.cc): Likewise.
23283         (CFLAGS-tst-chk6.cc): Likewise.
23284         (CFLAGS-tst-lfschk1.c): Likewise.
23285         (CFLAGS-tst-lfschk2.c): Likewise.
23286         (CFLAGS-tst-lfschk3.c): Likewise.
23287         (CFLAGS-tst-lfschk4.cc): Likewise.
23288         (CFLAGS-tst-lfschk5.cc): Likewise.
23289         (CFLAGS-tst-lfschk6.cc): Likewise.
23290
23291         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23292         (main): Disable -Wdeprecated-declarations around calls to
23293         register_printf_function.
23294
23295         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23296         (do_test): Disable -Wdiv-by-zero around some calls to
23297         fwrite_unlocked and fread_unlocked.
23298
23299         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23300         (DIAG_POP_NEEDS_COMMENT): Likewise.
23301         (_DIAG_STR1): Likewise.
23302         (_DIAG_STR): Likewise.
23303         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23304         * stdio-common/bug21.c: Include <libc-internal.h>.
23305         (do_test): Disable -Wformat around call to sscanf.
23306         * stdio-common/scanf14.c: Include <libc-internal.h>.
23307         (main): Disable -Wformat around some calls to scanf functions.
23308
23309 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23310
23311         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23312
23313 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23314
23315         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23316         stack variable alignment.
23317
23318 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23319
23320         [BZ #17682]
23321         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23322         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23323         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23324         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23325         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23326         __getrlimit instead of getrlimit.
23327         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23328         __gettimeofday instead of gettimeofday.
23329         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23330         Likewise.
23331         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23332         Likewise.
23333         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23334         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23335         Remove variable.
23336         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23337         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23338
23339 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23340
23341         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23342         for wide-character tests.
23343
23344 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23345
23346         * io/openat64.c: #include <libc-internal.h>
23347         (__openat64): Prototypify.  Use ignore_value on MODE.
23348         * io/openat.c: Likewise.
23349         * misc/reboot.c: #include <libc-internal.h>
23350         (reboot): Prototypify.  Use ignore_value on HOWTO.
23351         * misc/ptrace.c: #include <libc-internal.h>
23352         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23353
23354 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23355
23356         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23357         XPG4, UNIX98 and XOPEN2K.
23358         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23359         Remove variable.
23360         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23361
23362 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23363
23364         * libio/fileops.c: Use ISO C style for function definitions.
23365         * libio/iofopen.c: Likewise.
23366         * libio/wfileops.c: Likewise.
23367
23368         [BZ #17653]
23369         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23370         offset on EOF.
23371         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23372         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23373         (fgets_func): Function pointer to fgets and fgetws.
23374         (do_ftell_test): Add test to verify ftell value after read
23375         EOF.
23376         (do_test): Set fgets_func.
23377
23378         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23379         O_TRUNC flag for w and w+ modes.
23380         (do_rewind_test): Likewise.
23381         (do_ftell_test): Likewise.
23382         (do_write_test): Likewise.
23383
23384         [BZ #17647]
23385         * libio/fileops.c (do_ftell): Seek only when there are
23386         unflushed writes.
23387         * libio/wfileops.c (do_ftell_wide): Likewise.
23388         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23389         test case.
23390         (do_one_test): Call it.
23391
23392 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23393
23394         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23395         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23396         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23397         Remove variable.
23398         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23399         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23400         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23401
23402 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23403
23404         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23405         Remove variable.
23406         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23407
23408         [BZ #17668]
23409         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23410         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23411         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23412         __freeifaddrs.  Use libc_hidden_weak.
23413         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23414         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23415         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23416         __freeifaddrs.  Use libc_hidden_weak.
23417         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23418         __getifaddrs and define as weak alias of __getifaddrs.  Use
23419         libc_hidden_weak.
23420         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23421         __freeifaddrs.  Use libc_hidden_weak.
23422         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23423         Remove variable.
23424         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23425         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23426
23427 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23428
23429         [BZ #17601]
23430         * sysdeps/mips/start.S (__start): Use indirect jump to call
23431         __libc_start_main.
23432
23433 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23434
23435         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23436
23437         * nptl/tst-mutex1.c: Include <stdbool.h>.
23438         [!ATTR] (ATTR_NULL): New macro.
23439         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23440         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23441         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23442
23443         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23444         to char *.
23445
23446         [BZ #17665]
23447         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23448         Change conditional to [__USE_MISC].
23449
23450         [BZ #17664]
23451         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23452         fgets_unlocked.
23453         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23454         __fgets_unlocked.
23455         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23456         fgets_unlocked.
23457         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23458         Remove variable.
23459         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23460         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23461         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23462         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23463         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23464         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23465         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23466         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23467         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23468
23469         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23470
23471 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23472
23473         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23474         Remove strpbrk objects.
23475         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23476         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23477         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23478         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23479         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23480         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23481
23482         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23483         Remove strcspn objects.
23484         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23485         (__libc_ifunc_impl_list): Remove strcspn implementation.
23486         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23487         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23488         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23489         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23490
23491         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23492         Remove strspn objetcs.
23493         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23494         (__libc_ifunc_impl_list): Remove strspn implementation.
23495         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23496         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23497         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23498         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23499
23500 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23501
23502         [BZ #17581]
23503         * malloc/hooks.c
23504         (mem2mem_check): Add a terminator to the chain of checking blocks.
23505         (malloc_check_get_size): Use it here.
23506         (mem2chunk_check): Ditto.
23507
23508 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23509
23510         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23511         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23512
23513 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23514
23515         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23516
23517         * nptl/nptl-init.c: Include libc-internal.h.
23518         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23519
23520         * elf/ldconfig.c (search_dir): Expand comment.
23521
23522 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23523
23524         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23525         variable.
23526         (linknamespace-symlist-stdlibs-tests): Likewise.
23527         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23528         instead of $(objpfx)symlist-stdlibs.
23529         (linknamespace-libs-isoc): New variable.
23530         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23531         (linknamespace-libs-ISO): New variable.
23532         (linknamespace-libs-ISO99): Likewise.
23533         (linknamespace-libs-ISO11): Likewise.
23534         (linknamespace-libs-XPG3): Likewise.
23535         (linknamespace-libs-XPG4): Likewise.
23536         (linknamespace-libs-POSIX): Likewise.
23537         (linknamespace-libs-UNIX98): Likewise.
23538         (linknamespace-libs-XOPEN2K): Likewise.
23539         (linknamespace-libs-POSIX2008): Likewise.
23540         (linknamespace-libs-XOPEN2K8): Likewise.
23541         ($(objpfx)symlist-stdlibs): Replace by
23542         $(linknamespace-symlist-stdlibs-tests).  Use
23543         $(linknamespace-libs-$*) as set of libraries.
23544         ($(linknamespace-header-tests)): Update dependencies.  Use
23545         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23546         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23547         * conform/linknamespace.pl: Remove comment about considering
23548         definitions of symbols from irrelevant libraries.
23549
23550 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23551
23552         [BZ #13862]
23553         * elf/dl-tls.c: Include <atomic.h>.
23554         (oom): Remove #ifdef SHARED/#endif.
23555         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23556         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23557         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23558         big enough.
23559         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23560         * nptl/Makefile (tests): Add tst-stack4.
23561         (modules-names): Add tst-stack4mod.
23562         ($(objpfx)tst-stack4): New.
23563         (tst-stack4mod.sos): Likewise.
23564         ($(objpfx)tst-stack4.out): Likewise.
23565         ($(tst-stack4mod.sos)): Likewise.
23566         (clean): Likewise.
23567         * nptl/tst-stack4.c: New file.
23568         * nptl/tst-stack4mod.c: Likewise.
23569
23570 2014-11-27  J. Brown  <jb999@gmx.de>
23571
23572         * sysdeps/x86/bits/string.h: Add recent CPUs.
23573
23574 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23575
23576         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23577         sigblock.
23578
23579         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23580         feof.
23581
23582         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23583         variable.
23584
23585 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23586
23587         * nscd/connections.c: Include libc-internal.h because of macro
23588         usage ignore_value.
23589
23590 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23591
23592         * string/bits/string3.h (__warn_memset_zero_len): Don't
23593         declare for gcc newer than 5.0.
23594         (memset): Don't test for zero-length __LEN for gcc newer than
23595         5.0.
23596
23597 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23598
23599         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23600         size_t for %zu format.
23601
23602         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23603         difference, not %ju.
23604
23605 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23606
23607         * include/libc-internal.h (ignore_value): New macro.
23608         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23609         with ignore_value.
23610
23611         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23612         definition.
23613
23614         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23615         pthread_cleanup_push to void *.
23616
23617         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23618         Undefine.
23619
23620         [BZ #16619]
23621         [BZ #16740]
23622         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23623         instead of 1L << 52.
23624
23625         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23626         * libio/bug-rewind2.c (do_test): Likewise.
23627
23628         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23629         * debug/test-strcpy_chk-ifunc.c: Likewise.
23630         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23631         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23632         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23633         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23634         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23635         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23636         * Rules [$(multi-arch) = no] (tests): Do not filter out
23637         $(tests-ifunc).
23638         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23639         * debug/Makefile (tests-ifunc): Remove variable.
23640         (tests): Do not add $(tests-ifunc).
23641         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23642         (tests): Do not add $(tests-ifunc).
23643         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23644         [TEST_IFUNC]: Remove conditionals.
23645         * string/test-string.h (TEST_IFUNC): Remove macro.
23646         [TEST_IFUNC]: Remove conditionals.
23647
23648         * string/test-strchr.c [!WIDE] (L): New macro.
23649         [WIDE] (L): Likewise.
23650         (check1): Use CHAR instead of char.  Use L on string and character
23651         constants.
23652
23653 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23654
23655         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23656         tests.
23657         * sysdeps/powerpc/bits/atomic.h
23658         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23659         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23660         (atomic_exchange_and_add_acq): Likewise.
23661         (atomic_exchange_and_add_rel): Likewise.
23662         * sysdeps/powerpc/powerpc32/bits/atomic.h
23663         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23664         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23665         * sysdeps/powerpc/powerpc64/bits/atomic.h
23666         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23667         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23668
23669 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23670
23671         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23672         Change synchronization of __sched_fifo_min_prio and
23673         __sched_fifo_max_prio.
23674         * nptl/pthread_mutexattr_getprioceiling.c
23675         (pthread_mutexattr_getprioceiling): Likewise.
23676         * nptl/pthread_mutexattr_setprioceiling.c
23677         (pthread_mutexattr_setprioceiling): Likewise.
23678         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23679         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23680         Likewise.
23681
23682 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23683
23684         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23685         void.
23686
23687 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23688
23689         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23690         third argument const.
23691
23692 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23693
23694         fnmatch: work around GCC compiler warning bug with uninit var
23695         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23696         This works around a bug with x86-64 GCC 4.9.2 and earlier
23697         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23698         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23699         used uninitialized in this function [-Wmaybe-uninitialized]".
23700
23701 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23702
23703         * posix/bug-regex31.c (main): Return RES not 0.
23704
23705 2014-11-25  Anton Blanchard <anton@samba.org>
23706
23707         * sysdeps/powerpc/bits/atomic.h
23708         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23709
23710 2014-11-24  Sterling Augustine  <saugustine@google.com>
23711
23712         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23713
23714 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23715
23716         [BZ #17608]
23717         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23718
23719 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23720
23721         [BZ #17633]
23722         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23723         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23724         variable.
23725         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23726         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23727
23728 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23729
23730         * string/strncpy.c (strncpy): Improve performance by using memset.
23731
23732 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23733
23734         * string/strcpy.c (strcpy):
23735         Improve performance by using strlen and memcpy.
23736
23737 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23738
23739         * string/strcoll_l.c (get_next_seq): __always_inline.
23740         * string/strcoll_l.c (do_compare): __always_inline.
23741
23742 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23743
23744         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23745         defined.
23746         * include/mqueue.h: Likewise.
23747         * include/stdlib.h: Likewise.
23748
23749         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23750         (get_null_defines): Adjust.
23751         * sunrpc/Makefile: Adjust comment.
23752         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23753         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23754         (CFLAGS-interp.c): Likewise.
23755         (CFLAGS-ldconfig.c): Likewise.
23756         (CPPFLAGS-.os): Likewise.
23757         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23758         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23759         * extra-modules.mk (extra-modules.mk): Likewise.
23760         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23761         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23762         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23763         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23764         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23765         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23766         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23767         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23768         * iconvdata/Makefile (CPPFLAGS): Likewise.
23769         (cpp-srcs-left): Add libof for all iconvdata routines.
23770         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23771         * include/assert.h: Likewise.
23772         * include/ctype.h: Likewise.
23773         * include/errno.h: Likewise.
23774         * include/libc-symbols.h: Likewise.
23775         * include/math.h: Likewise.
23776         * include/netdb.h: Likewise.
23777         * include/resolv.h: Likewise.
23778         * include/stdio.h: Likewise.
23779         * include/stdlib.h: Likewise.
23780         * include/string.h: Likewise.
23781         * include/sys/stat.h: Likewise.
23782         * include/wctype.h: Likewise.
23783         * intl/l10nflist.c: Likewise.
23784         * libidn/idn-stub.c: Likewise.
23785         * libio/libioP.h: Likewise.
23786         * nptl/libc_multiple_threads.c: Likewise.
23787         * nptl/pthreadP.h: Likewise.
23788         * posix/regex_internal.h: Likewise.
23789         * resolv/res_hconf.c: Likewise.
23790         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23791         * sysdeps/arm/memmove.S: Likewise.
23792         * sysdeps/arm/sysdep.h: Likewise.
23793         * sysdeps/generic/_itoa.h: Likewise.
23794         * sysdeps/generic/symbol-hacks.h: Likewise.
23795         * sysdeps/gnu/errlist.awk: Likewise.
23796         * sysdeps/gnu/errlist.c: Likewise.
23797         * sysdeps/i386/i586/memcpy.S: Likewise.
23798         * sysdeps/i386/i586/memset.S: Likewise.
23799         * sysdeps/i386/i686/memcpy.S: Likewise.
23800         * sysdeps/i386/i686/memmove.S: Likewise.
23801         * sysdeps/i386/i686/mempcpy.S: Likewise.
23802         * sysdeps/i386/i686/memset.S: Likewise.
23803         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23804         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23805         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23806         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23807         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23808         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23809         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23810         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23811         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23812         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23813         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23814         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23815         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23816         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23817         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23818         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23819         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23820         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23821         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23822         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23823         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23824         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23825         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23826         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23827         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23828         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23829         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23830         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23831         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23832         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23833         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23834         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23835         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23836         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23837         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23838         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23839         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23840         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23841         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23842         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23843         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23844         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23845         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23846         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23847         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23848         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23849         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23850         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23851         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23852         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23853         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23854         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23855         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23856         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23857         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23858         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23859         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23860         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23861         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23862         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23863         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23864         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23865         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23866         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23867         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23868         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23869         * sysdeps/posix/closedir.c: Likewise.
23870         * sysdeps/posix/opendir.c: Likewise.
23871         * sysdeps/posix/readdir.c: Likewise.
23872         * sysdeps/posix/rewinddir.c: Likewise.
23873         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23874         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23875         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23876         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23877         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23878         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23879         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23880         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23881         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23882         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23883         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23884         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23885         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23886         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23887         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23888         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23889         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23890         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23891         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23892         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23893         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23894         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23895         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23896         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23897         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23898         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23899         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23900         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23901         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23902         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23903         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23904         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23905         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23906         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23907         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23908         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23909         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23910         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23911         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23912         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23913         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23914         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23915         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23916         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23917         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23918         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23919         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23920         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23921         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23922         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23923         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23924         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23925         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23926         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23927         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23928         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23929         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23930         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23931         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23932         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23933         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23934         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23935         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23936         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23937         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23938         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23939         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23940         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23941         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23942         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23943         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23944         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23945         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23946         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23947         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23948         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23949         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23950         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23951         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23952         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23953         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23954         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23955         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23956         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23957         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23958         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23959         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23960         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23961         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23962         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23963         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23964         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23965         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23966         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23967         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23968         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23969         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23970         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23971         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23972         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23973         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23974         * sysdeps/unix/alpha/sysdep.S: Likewise.
23975         * sysdeps/unix/alpha/sysdep.h: Likewise.
23976         * sysdeps/unix/make-syscalls.sh: Likewise.
23977         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23978         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23979         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23980         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23981         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23982         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23983         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23984         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23985         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23986         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23987         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23988         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23989         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23990         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23991         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23992         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23993         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23994         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23995         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23996         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23997         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23998         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23999         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24000         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24001         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24002         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24003         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24006         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24007         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24008         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24009         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24010         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24011         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24012         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24013         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24014         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24015         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24016         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24017         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24018         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24019         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24020         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24021         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24022         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24023         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24024         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24025         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24026         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24027         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24028         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24029         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24030         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24031         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24032         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24033         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24034         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24035         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24036         * sysdeps/x86_64/memcpy.S: Likewise.
24037         * sysdeps/x86_64/memmove.c: Likewise.
24038         * sysdeps/x86_64/memset.S: Likewise.
24039         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24040         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24041         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24042         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24043         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24044         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24045         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24046         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24047         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24048         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24049         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24050         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24051         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24052         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24053         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24054         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24055         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24056         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24057         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24058         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24059         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24060         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24061         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24062         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24063         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24064         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24065         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24066         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24067         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24068         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24069         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24070         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24071         * sysdeps/x86_64/strcmp.S: Likewise.
24072
24073         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24074
24075         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24076         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24077         * elf/rtld-Rules: Likewise.
24078         * elf/setup-vdso.h: Likewise.
24079         * include/assert.h: Likewise.
24080         * include/bits/stdlib-float.h: Likewise.
24081         * include/errno.h: Likewise.
24082         * include/sys/stat.h: Likewise.
24083         * include/unistd.h: Likewise.
24084         * sysdeps/aarch64/setjmp.S: Likewise.
24085         * sysdeps/alpha/setjmp.S: Likewise.
24086         * sysdeps/arm/__longjmp.S: Likewise.
24087         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24088         * sysdeps/arm/setjmp.S: Likewise.
24089         * sysdeps/arm/sysdep.h: Likewise.
24090         * sysdeps/generic/_itoa.h: Likewise.
24091         * sysdeps/generic/dl-sysdep.h: Likewise.
24092         * sysdeps/generic/ldsodefs.h: Likewise.
24093         * sysdeps/i386/dl-tls.h: Likewise.
24094         * sysdeps/i386/setjmp.S: Likewise.
24095         * sysdeps/m68k/setjmp.c: Likewise.
24096         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24097         * sysdeps/mach/hurd/opendir.c: Likewise.
24098         * sysdeps/posix/getcwd.c: Likewise.
24099         * sysdeps/posix/opendir.c: Likewise.
24100         * sysdeps/posix/profil.c: Likewise.
24101         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24102         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24103         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24104         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24105         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24106         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24107         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24108         * sysdeps/s390/dl-tls.h: Likewise.
24109         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24110         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24111         * sysdeps/sh/sh3/setjmp.S: Likewise.
24112         * sysdeps/sh/sh4/setjmp.S: Likewise.
24113         * sysdeps/unix/alpha/sysdep.h: Likewise.
24114         * sysdeps/unix/arm/sysdep.S: Likewise.
24115         * sysdeps/unix/i386/sysdep.S: Likewise.
24116         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24117         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24118         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24119         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24120         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24121         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24122         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24123         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24124         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24125         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24126         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24127         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24128         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24131         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24132         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24133         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24134         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24135         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24136         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24137         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24138         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24139         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24140         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24141         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24142         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24143         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24144         * sysdeps/x86_64/setjmp.S: Likewise.
24145
24146         * include/math.h: Use IS_IN instead of IS_IN_libm.
24147         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24148         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24149         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24150         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24151         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24152         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24153         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24154         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24155         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24156         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24157         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24158         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24159         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24160         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24161         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24162         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24163         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24164         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24165         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24166         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24167         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24168         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24169         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24170         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24171         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24172         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24173         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24174         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24175         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24176         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24177         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24178         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24179         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24181         Likewise.
24182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24183         Likewise.
24184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24185         Likewise.
24186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24187         Likewise.
24188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24189         Likewise.
24190         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24191         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24192         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24193         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24194         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24195         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24196         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24198         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24201         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24202         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24203         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24204         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24205         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24206         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24207         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24208         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24209         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24210         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24211         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24212         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24213         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24214         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24216         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24217
24218         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24219         * nptl/pthreadP.h: Likewise.
24220         * nptl_db/structs.def: Likewise.
24221         * sysdeps/arm/sysdep.h: Likewise.
24222         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24223         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24224         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24225         * sysdeps/unix/alpha/sysdep.h: Likewise.
24226         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24227         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24228         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24229         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24230         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24231         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24232         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24233         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24234         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24235         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24236         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24237         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24238         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24239         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24242         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24243         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24244         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24245         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24246         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24247         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24248         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24249         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24250         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24251         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24252
24253         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24254         * nptl/pthreadP.h: Likewise.
24255         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24256         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24257         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24258         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24259         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24260         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24261         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24262         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24263         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24264         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24265         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24266         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24268         Likewise.
24269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24270         Likewise.
24271         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24272         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24273         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24274         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24275         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24276         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24277         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24278         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24279
24280         * dlfcn/dladdr.c: Use IS_IN.
24281         * dlfcn/dladdr1.c: Likewise.
24282         * dlfcn/dlclose.c: Likewise.
24283         * dlfcn/dlerror.c: Likewise.
24284         * dlfcn/dlinfo.c: Likewise.
24285         * dlfcn/dlmopen.c: Likewise.
24286         * dlfcn/dlopen.c: Likewise.
24287         * dlfcn/dlsym.c: Likewise.
24288         * dlfcn/dlvsym.c: Likewise.
24289
24290         * include/ifaddrs.h: Use IS_IN.
24291         * inet/check_pf.c: Likewise.
24292         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24293         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24294
24295         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24296         IS_IN_ldconfig.
24297         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24298         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24299
24300         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24301         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24302         IS_IN (libc).
24303
24304         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24305
24306         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24307         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24308         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24309         * include/libc-symbols.h (IS_IN_LIB): New macro.
24310         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24311         * include/netdb.h: Likewise.
24312         * include/stap-probe.h: Remove all uses of IN_LIB.
24313
24314         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24315         instead of IN_MODULE.
24316         * include/libc-symbols.h (IN_MODULE): Define using
24317         MODULE_NAME.
24318         (PASTE_NAME, PASTE_NAME1): New macros.
24319         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24320         of IN_LIB.
24321         (STAP_PROBE_ASM): Likewise.
24322
24323 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24324
24325         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24326         __mach_init in dlopened libc.
24327
24328 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24329
24330         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24331         * sysdeps/arm/preconfigure: Regenerate.
24332
24333 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24334
24335         * nptl/pthread_create.c (__pthread_create_2_1): Set
24336         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24337         when copying values from IATTR into PD.
24338
24339 2014-11-21  Will Newton  <will.newton@linaro.org>
24340             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24341
24342         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24343         Refactor inline-asm.  Also add comment.
24344
24345         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24346         ElfW macro instead of hardcoded Elf64 types.
24347         (la_aarch64_gnu_pltenter): Likewise.
24348         * sysdeps/aarch64/dl-machine.h
24349         (elf_machine_runtime_setup): Use ElfW(Addr).
24350
24351         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24352         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24353         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24354         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24355         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24356         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24357         (R_AARCH64_TLS_DTPMOD): This.
24358         (R_AARCH64_TLS_DTPREL64): Rename to ...
24359         (R_AARCH64_TLS_DTPREL): This.
24360         (R_AARCH64_TLS_TPREL64): Rename to ...
24361         (R_AARCH64_TLS_TPREL): This.
24362         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24363         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24364         R_AARCH64_TLS_TPREL64.
24365         (elf_machine_rela): Likewise.
24366
24367 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24368
24369         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24370         by setting it to 0.  64b atomics are not supported currently.
24371
24372 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24373
24374         [BZ #16469]
24375         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24376         search domain names.
24377
24378 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24379
24380         [BZ #16469]
24381         * NEWS: Update.
24382         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24383         trailing dot.
24384         * posix/tst-getaddrinfo5.c: New.
24385         * posix/Makefile (tests): Add it.
24386
24387 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24388
24389         [BZ #14498]
24390         * NEWS: Fixed.
24391         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24392         after parsing line but before break_if_match.
24393         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24394         if there is a protocol mismatch.
24395
24396 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24397
24398         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24399         because the potential race is on the user-supplied stream.
24400
24401 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24402
24403         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24404         string literal if not passed a buffer.
24405         * manual/job.texi (ctermid): Update reasoning, note deviation
24406         from posix, suggest mtasurace when not passed a buffer, for
24407         future non-preliminary safety notes.
24408
24409 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24410
24411         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24412         of not passing it a buffer.
24413         Reported by Peng Haitao.
24414
24415 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24416
24417         * manual/Makefile ($(objpfx)stamp-summary): Require
24418         check-safety.sh to pass.
24419         * manual/check-safety.sh: Wish for verification that every
24420         @deftypefn and @deftypefun is followed by a @safety remark.
24421
24422 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24423
24424         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24425
24426         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24427         PTHREAD_CANCEL_ASYNCHRONOUS.
24428         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24429         send SIGCANCEL.
24430
24431         * nptl/default-sched.h: New file.
24432         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24433         * nptl/pthread_create.c: Include it.
24434         (__pthread_create_2_1): Use collect_default_sched instead of making
24435         Linux syscalls here directly.
24436
24437 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24438
24439         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24440         __pthread_once): Use C11 atomics.
24441
24442 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24443
24444         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24445
24446 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24447
24448         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24449         atomic_thread_fence_acquire, atomic_thread_fence_release,
24450         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24451         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24452         atomic_compare_exchange_weak_relaxed,
24453         atomic_compare_exchange_weak_acquire,
24454         atomic_compare_exchange_weak_release,
24455         atomic_exchange_acquire, atomic_exchange_release,
24456         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24457         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24458         atomic_fetch_and_acquire,
24459         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24460
24461 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24462
24463         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24464         USE_ATOMIC_COMPILER_BUILTINS): Define.
24465         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24466         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24467         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24468         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24469         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24470         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24471         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24472         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24473         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24474         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24475         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24476         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24477         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24478         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24479         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24480         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24481         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24482         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24483         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24484         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24485         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24486         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24487         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24488         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24489         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24490         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24491         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24492         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24493         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24494         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24495         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24496         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24497         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24498         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24499         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24500         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24501         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24502         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24503         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24504         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24505
24506 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24507
24508         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24509         the sched_priority value here.  It was already checked when the user
24510         called pthread_attr_setschedparam.
24511
24512         * nptl/tst-bad-schedattr.c: New file.
24513         * nptl/Makefile (tests): Add it.
24514
24515 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24516             Florian Weimer  <fweimer@redhat.com>
24517             Joseph Myers  <joseph@codesourcery.com>
24518             Adam Conrad  <adconrad@0c3.net>
24519             Andreas Schwab  <schwab@suse.de>
24520             Brooks  <bmoses@google.com>
24521
24522         [BZ #17625]
24523         * wordexp-test.c (__dso_handle): Add prototype.
24524         (__register_atfork): Likewise.
24525         (__app_register_atfork): New function.
24526         (registered_forks): New global.
24527         (register_fork): New function.
24528         (test_case): Add 3 new tests for WRDE_CMDSUB.
24529         (main): Call __app_register_atfork.
24530         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24531         fork count is non-zero fail the test.
24532         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24533         is set.
24534         (parse_dollars): Remove check for WRDE_NOCMD.
24535         (parse_dquote): Likewise.
24536
24537 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24538
24539         * Makeconfig (built-modules): List non-library modules to be
24540         built.
24541         (module-cppflags): Include libc-modules.h for
24542         everything except shlib-versions.v.i.
24543         (CPPFLAGS): Use it.
24544         (before-compile): Add libc-modules.h.
24545         ($(common-objpfx)libc-modules.h,
24546         $(common-objpfx)libc-modules.stmp): New targets.
24547         (common-generated): Add libc-modules.h and libc-modules.stmp.
24548         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24549         * include/libc-symbols.h: Don't include libc-modules.h.
24550         * include/libc-modules.h: Remove file.
24551         * scripts/gen-libc-modules.awk: New script to generate
24552         libc-modules.h.
24553         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24554         Depend on libc-modules.stmp.
24555
24556         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24557
24558         * Makeconfig (in-module): Get value of libof set for the
24559         translation unit.
24560         (CPPFLAGS): Use $(in-module).
24561         * Makerules: Don't suffix routine names for nonlib.
24562         * include/libc-modules.h: New file.
24563         * include/libc-symbols.h: Include libc-modules.h
24564         (IS_IN): New macro to replace IS_IN_* macros.
24565         * elf/Makefile: Set libof-* for each routine.
24566         * elf/rtld-Rules: Likewise.
24567         * extra-modules.mk: Likewise.
24568         * iconv/Makefile: Likewise.
24569         * iconvdata/Makefile: Likewise.
24570         * locale/Makefile: Likewise.
24571         * malloc/Makefile: Likewise.
24572         * nss/Makefile: Likewise.
24573         * sysdeps/gnu/Makefile: Likewise.
24574         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24575         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24576         * sysdeps/s390/s390-64/Makefile: Likewise.
24577         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24578         CPPFLAGS for nscd instead of nonlib.
24579
24580 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24581
24582         * nptl/createthread.c: New file.
24583
24584         * nptl/createthread.c: Moved ...
24585         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24586
24587         * nptl/createthread.c: Add proper top-line comment.
24588         (do_clone): Folded into ...
24589         (create_thread): ... here.  Take new arguments STOPPED_START and
24590         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24591         increment __nptl_threads, do event-reporting logic, do
24592         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24593         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24594         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24595         just send SIGCANCEL.
24596         * nptl/pthread_create.c: Forward-declare create_thread before
24597         including createthread.c.
24598         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24599         declaration, and new macro START_THREAD_SELF to replace argument.
24600         Remove return statement.
24601         (report_thread_creation): New function.
24602         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24603         synchronization logic, and __nptl_nthreads increment here, around
24604         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24605         PD->parent_cancelhandling here, before create_thread.  When
24606         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24607         __deallocate_stack, and ENOMEM translation here.
24608
24609 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24610
24611         [BZ #17616]
24612         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24613         (mptwo): Rename to __mptwo.
24614         (__inv): Use __mptwo instead of mptwo.
24615         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24616         (mptwo): Rename to __mptwo.
24617         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24618         of mpone and __mptwo instead of mptwo.
24619         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24620         instead of mpone.
24621         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24622         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24623         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24624         of mpone and __mptwo instead of mptwo.
24625         (__mpranred): Use __mpone instead of mpone.
24626         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24627         variable.
24628         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24629         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24630         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24631         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24632         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24633         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24634         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24635         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24636         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24637         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24638         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24639         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24640         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24641         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24642         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24643         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24644         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24645         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24646         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24647
24648 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24649
24650         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24651         replace BSD Handler xref with BSD Signal Handling.
24652
24653 2014-11-17  Richard Henderson  <rth@redhat.com>
24654
24655         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24656         (_FP_PACK_RAW_2): Remove.
24657         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24658         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24659         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24660         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24661         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24662         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24663         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24664         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24665         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24666         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24667         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24668         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24669         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24670         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24671         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24672         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24673
24674 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24675
24676         * signal/signal.h [__USE_MISC]
24677         (struct sigvec): Remove type.
24678         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24679         (sigvec): Remove declaration.
24680         * sysdeps/posix/sigvec.c: Moved ...
24681         * signal/sigvec.c: ... here, replacing old file.
24682         (struct sigvec): New type, copied from old signal.h definition.
24683         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24684         (__sigvec): Convert definition to prototype.
24685         (sigvec): Replace weak_alias with compat_symbol.
24686         * signal/Versions (libc: GLIBC_2.21): New version set.
24687         * include/signal.h: Remove __sigvec declaration.
24688         * sysdeps/unix/bsd/sigvec.c: Remove file.
24689         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24690         * manual/signal.texi (BSD Handler): Remove subsection.
24691         Move siginterrupt up to ...
24692         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24693         (Blocking in BSD): Fold subsection into its parent.
24694         * NEWS: Mention sigvec removal.
24695
24696 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24697
24698         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24699         (DLA_FMS): Make definition conditional only on [__FMA4__].
24700         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24701         definition.
24702
24703         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24704         Make definition conditional only on [PROF].
24705         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24706         definition.
24707         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24708         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24709
24710         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24711         !__GNUC__].
24712         * include/signal.h (__sigpause): Move declaration above call to
24713         libc_hidden_proto.
24714         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24715         variable.
24716         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24717         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24718
24719 2014-11-14  David S. Miller  <davem@davemloft.net>
24720
24721         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24722         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24723
24724 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24725
24726         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24727         * configure: Regenerated.
24728         * manual/install.texi (Tools for Compilation): Document a
24729         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24730         compiler verified to work.
24731         * INSTALL: Regenerated.
24732
24733         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24734         redeclare with asm name.
24735         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24736         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24737         including <string.h>.
24738         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24739         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24740         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24741         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24742         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24743         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24744         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24745
24746 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24747
24748         * stdlib/strtol.c (__strtol): Use prototype definition.
24749
24750         [BZ #17594]
24751         * stdlib/strtol.c (SYM__): New macro.
24752         (SYM__1): Likewise.
24753         (__strtol): Likewise.
24754         (strtol): Rename to __strtol and define as weak alias of
24755         __strtol.  Use libc_hidden_weak.
24756
24757 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24758
24759         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24760         Use numbered labels in inline assembly.
24761
24762 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24763
24764         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24765         Add setjmp LIBC_PROBE.
24766         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24767         Likewise.
24768         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24769         Add longjmp, longjmp_target LIBC_PROBE.
24770         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24771         Likewise.
24772
24773 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24774
24775         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24776         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24777         to get rid of unused variable warning.
24778
24779 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24780
24781         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24782         Check for unwind_backtrace ==  NULL only in SHARED case.
24783         (__backchain_backtrace): Compile only in SHARED case.
24784         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24785         Likewise.
24786         (__backchain_backtrace): Declare as static.
24787
24788 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24789
24790         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24791         (__libc_multiple_threads_ptr): Variable moved ...
24792         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24793
24794 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24795
24796         * conform/GlibcConform.pm: New file.
24797         * conform/conformtest.pl: Use GlibcConform module.
24798         * conform/linknamespace.pl: New file.
24799         * conform/list-header-symbols.pl: Likewise.
24800         * conform/Makefile (linknamespace-symlists-base): New variable.
24801         (linknamespace-symlists-tests): Likewise.
24802         (linknamespace-header-base): Likewise.
24803         (linknamespace-header-tests): Likewise.
24804         (tests-special): Add new tests.
24805         ($(linknamespace-symlists-tests)): New rule.
24806         (linknamespace-libs): New variable.
24807         ($(objpfx)symlist-stdlibs): New rule.
24808         ($(linknamespace-header-tests)): Likewise.
24809         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24810         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24811         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24812         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24813         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24814         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24815         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24816         (test-xfail-ISO/math.h/linknamespace): Likewise.
24817         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24818         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24819         (test-xfail-ISO/time.h/linknamespace): Likewise.
24820         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24821         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24822         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24823         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24824         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24825         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24826         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24827         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24828         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24829         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24830         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24831         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24832         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24833         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24834         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24835         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24836         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24837         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24838         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24839         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24840         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24841         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24842         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24843         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24844         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24845         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24846         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24847         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24848         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24849         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24850         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24851         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24852         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24853         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24854         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24855         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24856         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24857         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24858         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24859         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24860         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24861         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24862         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24863         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24864         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24865         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24866         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24867         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24868         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24869         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24870         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24871         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24872         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24873         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24874         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24875         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24876         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24877         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24878         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24879         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24880         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24881         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24882         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24883         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24884         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24885         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24886         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24887         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24888         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24889         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24890         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24891         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24892         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24893         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24894         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24895         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24896         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24897         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24898         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24899         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24900         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24901         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24902         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24903         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24904         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24905         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24906         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24907         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24908         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24909         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24910         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24911         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24912         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24913         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24914         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24915         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24916         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24917         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24918         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24919         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24920         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24921         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24922         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24923         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24924         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24925         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24926         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24927         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24928         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24929         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24930         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24931         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24932         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24933         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24934         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24935         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24936         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24937         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24938         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24939         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24940         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24941         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24942         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24943         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24944         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24945         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24946         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24947         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24948         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24949         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24950         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24951         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24952         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24953         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24954         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24955         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24956         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24957         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24958         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24959         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24960         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24961         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24962         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24963         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24964         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24965         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24966         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24967         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24968         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24969         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24970
24971         [BZ #17589]
24972         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24973         of fgets_unlocked.
24974
24975         [BZ #17585]
24976         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24977         (memmem): Rename to __memmem and define as weak alias of
24978         __memmem.  Use libc_hidden_weak.
24979         (__memmem): Use libc_hidden_def.
24980         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24981         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24982         memmem.
24983
24984         [BZ #17582]
24985         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24986         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24987         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24988         and define as weak alias of __fgets_unlocked.  Use
24989         libc_hidden_weak.
24990         (__fgets_unlocked): Use libc_hidden_def.
24991         * include/stdio.h (__fgets_unlocked): Declare.  Use
24992         libc_hidden_proto.
24993         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24994         __fgets_unlocked instead of fgets_unlocked.
24995         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24996         (GET_NPROCS_CONF_PARSER): Likewise.
24997         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24998         (GET_NPROCS_CONF_PARSER): Likewise.
24999
25000         [BZ #17574]
25001         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25002         weak alias of __wmemset.  Use libc_hidden_weak.
25003         (__wmemset): Use libc_hidden_def.
25004         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25005         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25006         of wmemset.
25007
25008         [BZ #17573]
25009         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25010         with asm name __mempcpy.
25011         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25012
25013         [BZ #17572]
25014         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25015         and define as weak alias of __rawmemchr.
25016         (__rawmemchr): Do not define as strong alias of rawmemchr.
25017
25018         [BZ #17571]
25019         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25020         alias of __qsort_r.
25021         (qsort): Call __qsort_r instead of qsort_r.
25022         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25023         (__qsort_r): Declare.  Call libc_hidden_proto.
25024         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25025         instead of qsort_r.
25026         * nscd/gai.c (__qsort_r): Define to qsort_r.
25027         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25028         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25029         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25030
25031         [BZ #17570]
25032         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25033         define as weak alias of __malloc_info.
25034
25035         [BZ #17584]
25036         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25037         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25038         (__rewinddir): Use libc_hidden_def.
25039         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25040         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25041         (__rewinddir): Use libc_hidden_def.
25042         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25043         weak alias of __rewinddir.  Don't use libc_hidden_def.
25044         (__rewinddir): Use libc_hidden_def.
25045         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25046         (__rewinddir): Use libc_hidden_proto.
25047         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25048         rewinddir.
25049         (__getcwd): Use __rewinddir instead of rewinddir.
25050
25051         [BZ #17583]
25052         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25053         alias of __fileno.  Use libc_hidden_weak.
25054         (__fileno): Use libc_hidden_def.
25055         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25056         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25057         alias of __ftello.
25058         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25059         __ftello.
25060         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25061         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25062         libc_hidden_def.
25063         (fread_unlocked): Don't use libc_hidden_ver.
25064         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25065         and define as weak alias of __fread_unlocked.  Don't use
25066         libc_hidden_def.
25067         (__fread_unlocked): Use libc_hidden_def.
25068         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25069         (ftello): Don't use libc_hidden_proto.
25070         (__ftello): Declare.  Use libc_hidden_proto.
25071         (fread_unlocked): Don't use libc_hidden_proto.
25072         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25073         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25074         and __ftello instead of fileno, fread_unlocked and ftello.
25075
25076 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25077
25078         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25079         GOT12.
25080         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25081         Likewise.
25082         (_dl_start_user): Likewise.
25083         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25084
25085 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25086             Siddhesh Poyarekar  <siddhesh@redhat.com>
25087
25088         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25089         Move argv and envp down instead of moving argc up.
25090         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25091
25092 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25093
25094         [BZ #17506]
25095         * test-skeleton.c (main): Return successful if one of
25096         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25097         * string/tst-strcoll-overflow.c: Define expected status.
25098
25099 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25100
25101         [BZ #17475]
25102         * locale/iso-639.def: Define Bhili and Tulu language codes.
25103
25104 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25105
25106         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25107
25108 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25109
25110         [BZ #17555]
25111         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25112
25113 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25114
25115         * configure.ac: Updated check of minimal required version to
25116         2.22.
25117         * manual/install.texi (Tools for Compilation): Updated version
25118         number.
25119         * configure: Regenerated.
25120         * INSTALL: Likewise.
25121
25122 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25123
25124         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25125         __tls_get_addr.
25126
25127 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25128
25129         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25130         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25131         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25132         libc_hidden_weak.
25133         (waitpid): Define as alias of __waitpid.
25134         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25135         __waitpid.
25136         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25137         libc_hidden_weak.
25138         (waitpid): Define as alias of __waitpid.
25139         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25140         __libc_waitpid alias.
25141         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25142         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25143         Likewise.
25144         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25145         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25146         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25147         alias.
25148         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25149         __waitpid.
25150         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25151         libc_hidden_weak.
25152         (waitpid): Define as alias of __waitpid.
25153
25154 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25155
25156         * manual/llio.texi: Add comment that write safety has been
25157         fixed in Linux.
25158
25159         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25160         (localplt-build-dso): Add elf/ld.so.
25161         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25162         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25163         and free for ld.so.
25164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25165         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25167         Likewise.
25168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25169         Likewise.
25170         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25171         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25172         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25173         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25174         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25175         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25176         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25177         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25178         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25179         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25180         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25181
25182 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25183
25184         [BZ #14132]
25185         * include/libc-symbols.h (INTUSE): Remove macro.
25186         (INTDEF): Likewise.
25187         (INTVARDEF): Likewise.
25188         (_INTVARDEF): Likewise.
25189         (INTDEF2): Likewise.
25190         (INTVARDEF2): Likewise.
25191         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25192         rtld_hidden_def instead of INTVARDEF.
25193         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25194         (_dl_starting_up_internal): Remove declaration.
25195         (_dl_starting_up): Use rtld_hidden_proto.
25196         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25197         declaration.
25198         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25199         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25200         _dl_starting_up.
25201         * elf/dl-writev.h (_dl_writev): Likewise.
25202         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25203         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25204         _dl_starting_up_internal.
25205
25206 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25207
25208         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25209         test-skeleton.c.
25210
25211 2014-11-05  Will Newton  <will.newton@linaro.org>
25212
25213         * benchtests/Makefile: (bench-malloc): Add malloc thread
25214         scalability benchmark.
25215         * benchtests/bench-malloc-threads.c: New file.
25216
25217 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25218
25219         * sysdeps/aarch64/strchrnul.S: New file.
25220
25221 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25222
25223         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25224         definition.
25225         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25226         Likwise.
25227         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25228         Likewise.
25229         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25230         Likewise.
25231         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25232         Likewise.
25233         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25234         Likewise.
25235
25236 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25237
25238         * catgets/test-gencat.c: Use test-skeleton.c.
25239         * catgets/tst-catgets.c: Likewise.
25240         * csu/tst-empty.c: Likewise.
25241         * elf/tst-audit2.c: Likewise.
25242         * elf/tst-global1.c: Likewise.
25243         * elf/tst-pathopt.c: Likewise.
25244         * elf/tst-piemod1.c: Likewise.
25245         * elf/tst-tls10.c: Likewise.
25246         * elf/tst-tls11.c: Likewise.
25247         * elf/tst-tls12.c: Likewise.
25248         * gnulib/tst-gcc.c: Likewise.
25249         * iconvdata/tst-e2big.c: Likewise.
25250         * iconvdata/tst-loading.c: Likewise.
25251         * iconv/tst-iconv1.c: Likewise.
25252         * iconv/tst-iconv2.c: Likewise.
25253         * inet/test-inet6_opt.c: Likewise.
25254         * inet/tst-gethnm.c: Likewise.
25255         * inet/tst-network.c: Likewise.
25256         * inet/tst-ntoa.c: Likewise.
25257         * intl/tst-codeset.c: Likewise.
25258         * intl/tst-gettext2.c: Likewise.
25259         * intl/tst-gettext3.c: Likewise.
25260         * intl/tst-ngettext.c: Likewise.
25261         * intl/tst-translit.c: Likewise.
25262         * io/test-stat.c: Likewise.
25263         * libio/test-fmemopen.c: Likewise.
25264         * libio/tst-freopen.c: Likewise.
25265         * libio/tst-sscanf.c: Likewise.
25266         * libio/tst-ungetwc1.c: Likewise.
25267         * libio/tst-ungetwc2.c: Likewise.
25268         * libio/tst-widetext.c: Likewise.
25269         * localedata/tst-ctype.c: Likewise.
25270         * localedata/tst-digits.c: Likewise.
25271         * localedata/tst-leaks.c: Likewise.
25272         * localedata/tst-mbswcs1.c: Likewise.
25273         * localedata/tst-mbswcs2.c: Likewise.
25274         * localedata/tst-mbswcs3.c: Likewise.
25275         * localedata/tst-mbswcs4.c: Likewise.
25276         * localedata/tst-mbswcs5.c: Likewise.
25277         * localedata/tst-setlocale.c: Likewise.
25278         * localedata/tst-trans.c: Likewise.
25279         * localedata/tst-wctype.c: Likewise.
25280         * localedata/tst-xlocale1.c: Likewise.
25281         * login/tst-grantpt.c: Likewise.
25282         * malloc/tst-calloc.c: Likewise.
25283         * malloc/tst-malloc.c: Likewise.
25284         * malloc/tst-mallocstate.c: Likewise.
25285         * malloc/tst-mcheck.c: Likewise.
25286         * malloc/tst-mtrace.c: Likewise.
25287         * malloc/tst-obstack.c: Likewise.
25288         * math/atest-exp2.c: Likewise.
25289         * math/atest-exp.c: Likewise.
25290         * math/atest-sincos.c: Likewise.
25291         * math/test-matherr.c: Likewise.
25292         * math/test-misc.c: Likewise.
25293         * math/test-powl.c: Likewise.
25294         * math/tst-definitions.c: Likewise.
25295         * misc/tst-dirname.c: Likewise.
25296         * misc/tst-efgcvt.c: Likewise.
25297         * misc/tst-fdset.c: Likewise.
25298         * misc/tst-hsearch.c: Likewise.
25299         * misc/tst-mntent2.c: Likewise.
25300         * nptl/tst-sem7.c: Likewise.
25301         * nptl/tst-sem8.c: Likewise.
25302         * nptl/tst-sem9.c: Likewise.
25303         * nss/test-netdb.c: Likewise.
25304         * posix/tst-fnmatch.c: Likewise.
25305         * posix/tst-getlogin.c: Likewise.
25306         * posix/tst-gnuglob.c: Likewise.
25307         * posix/tst-mmap.c: Likewise.
25308         * pwd/tst-getpw.c: Likewise.
25309         * resolv/tst-inet_ntop.c: Likewise.
25310         * rt/tst-timer.c: Likewise.
25311         * stdio-common/test-fseek.c: Likewise.
25312         * stdio-common/test-popen.c: Likewise.
25313         * stdio-common/test-vfprintf.c: Likewise.
25314         * stdio-common/tst-cookie.c: Likewise.
25315         * stdio-common/tst-fileno.c: Likewise.
25316         * stdio-common/tst-gets.c: Likewise.
25317         * stdio-common/tst-obprintf.c: Likewise.
25318         * stdio-common/tst-perror.c: Likewise.
25319         * stdio-common/tst-sprintf2.c: Likewise.
25320         * stdio-common/tst-sprintf3.c: Likewise.
25321         * stdio-common/tst-sprintf.c: Likewise.
25322         * stdio-common/tst-swprintf.c: Likewise.
25323         * stdio-common/tst-tmpnam.c: Likewise.
25324         * stdio-common/tst-unbputc.c: Likewise.
25325         * stdio-common/tst-wc-printf.c: Likewise.
25326         * stdlib/tst-environ.c: Likewise.
25327         * stdlib/tst-fmtmsg.c: Likewise.
25328         * stdlib/tst-limits.c: Likewise.
25329         * stdlib/tst-rand48-2.c: Likewise.
25330         * stdlib/tst-rand48.c: Likewise.
25331         * stdlib/tst-random2.c: Likewise.
25332         * stdlib/tst-random.c: Likewise.
25333         * stdlib/tst-strtol.c: Likewise.
25334         * stdlib/tst-strtoll.c: Likewise.
25335         * stdlib/tst-tls-atexit.c: Likewise.
25336         * stdlib/tst-xpg-basename.c: Likewise.
25337         * string/test-ffs.c: Likewise.
25338         * string/tst-bswap.c: Likewise.
25339         * string/tst-inlcall.c: Likewise.
25340         * string/tst-strtok.c: Likewise.
25341         * string/tst-strxfrm.c: Likewise.
25342         * sysdeps/x86_64/tst-audit10.c: Likewise.
25343         * sysdeps/x86_64/tst-audit3.c: Likewise.
25344         * sysdeps/x86_64/tst-audit4.c: Likewise.
25345         * sysdeps/x86_64/tst-audit5.c: Likewise.
25346         * time/tst-ftime_l.c: Likewise.
25347         * time/tst-getdate.c: Likewise.
25348         * time/tst-mktime3.c: Likewise.
25349         * time/tst-mktime.c: Likewise.
25350         * time/tst-posixtz.c: Likewise.
25351         * time/tst-strptime2.c: Likewise.
25352         * time/tst-strptime3.c: Likewise.
25353         * wcsmbs/tst-btowc.c: Likewise.
25354         * wcsmbs/tst-mbrtowc.c: Likewise.
25355         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25356         * wcsmbs/tst-wchar-h.c: Likewise.
25357         * wcsmbs/tst-wcpncpy.c: Likewise.
25358         * wcsmbs/tst-wcrtomb.c: Likewise.
25359         * wcsmbs/tst-wcsnlen.c: Likewise.
25360         * wcsmbs/tst-wcstof.c: Likewise.
25361
25362 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25363
25364         [BZ #14132]
25365         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25366         INTDEF.
25367         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25368         declaration.
25369         (_dl_mcount): Use rtld_hidden_proto.
25370         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25371         _dl_mcount.
25372         * elf/rtld.c (_rtld_global_ro): Likewise.
25373
25374         [BZ #14132]
25375         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25376         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25377         of _dl_init_internal.
25378         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25379         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25380         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25381         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25382         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25383         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25384         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25385         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25386         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25387         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25388         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25389         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25390         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25391         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25392         * sysdeps/tile/dl-start.S (_start): Likewise.
25393         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25394         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25395
25396         [BZ #14132]
25397         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25398         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25399         (rtld_progname): Make macro definition unconditional.
25400         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25401         INTDEF.
25402         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25403         (dl_main): Likewise.
25404         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25405         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25406         instead of _dl_argv_internal.
25407         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25408         __GI__dl_argv instead of INTUSE(_dl_argv).
25409         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25410         __GI__dl_argv instead of _dl_argv_internal.
25411
25412         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25413         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25414         macro.
25415         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25416         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25417         New macro.
25418         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25419         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25420         macro.
25421         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25422         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25423
25424 2014-11-04  Andreas Schwab  <schwab@suse.de>
25425
25426         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25427
25428 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25429
25430         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25431         mtvsrd instruction in binary form.
25432
25433 2014-11-03  Andreas Schwab  <schwab@suse.de>
25434
25435         [BZ #17522]
25436         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25437         for less than MB_LEN_MAX use a local buffer of that size.
25438         * libio/tst-fputws.c: New file.
25439         * libio/Makefile (tests): Add tst-fputws.
25440
25441 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25442
25443         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25444         the size of the fpu_fr.fpu_dregs[] array.
25445
25446 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25447
25448         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25449         (__nanosleep): Do not define as alias.
25450         (nanosleep): Define as alias of __nanosleep.
25451         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25452         __libc_nanosleep name.
25453
25454 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25455
25456         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25457         install.texi in comment.
25458
25459 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25460
25461         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25462         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25463         ... add here and use lwsync or sync ...
25464         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25465         ... and add here using lwsync.
25466
25467 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25468
25469         * elf/dl-machine-reject-phdr.h: New file.
25470         * elf/dl-load.c: #include that.
25471         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25472         if that returned true.
25473
25474 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25475
25476         [BZ #17496]
25477         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25478         gen-as-const-headers chunk.  Add a big scare comment after the last
25479         safe place to touch before-compile.
25480
25481 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25482
25483         * manual/install.texi (Tools for Compilation): Update autoconf
25484         version requirements.
25485         * INSTALL: Regenerated.
25486
25487         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25488         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25489         (__libc_pselect): Likewise.
25490
25491         [BZ #14138]
25492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25496
25497 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25498
25499         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25500         correct barrier instruction.
25501         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25502         Likewise.
25503         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25504         Likewise.
25505
25506 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25507
25508         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25509         after defining inlines.  Instead, just use parens to defeat macro
25510         expansion of __isctype in its declaration.
25511
25512 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25513
25514         * include/sys/uio.h (__libc_readv): Remove declaration.
25515         (__libc_writev): Likewise.
25516         * misc/readv.c (__libc_readv): Rename to __readv.
25517         (__readv): Do not define as alias.
25518         (readv): Define as alias of __readv.
25519         * misc/writev.c (__libc_writev): Rename to __writev.
25520         (__writev): Do not define as alias.
25521         (writev): Define as alias of __writev.
25522         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25523         (__readv): Do not define as alias.
25524         (readv): Define unconditionally as alias of __readv.
25525         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25526         (__writev): Do not define as alias.
25527         (writev): Define unconditionally as alias of __writev.
25528         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25529         name.
25530         (writev): Do not define __libc_writev name.
25531
25532 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25533
25534         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25535         (convert_charseq): New function, broken out of ...
25536         (use_from_charmap): ... here.  Call it.
25537         (use_to_charmap): Use convert_charseq and free instead of duplicating
25538         its code with a variable-length stack struct.
25539
25540 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25541
25542         * include/fcntl.h (__libc_creat): Remove declaration.
25543         * io/creat.c (__libc_creat): Rename to creat.
25544         (creat): Do not define as alias.
25545         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25546         of creat instead of __libc_creat.
25547         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25548         to creat.
25549         (creat): Do not define as alias.
25550         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25551         __libc_creat.
25552         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25553         __libc_creat name.
25554         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25555         Likewise.
25556
25557 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25558
25559         * manual/llio.texi: Add comments discussing why write() may be
25560         considered MT-unsafe on Linux.
25561
25562 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25563
25564         * dl-load.c (local_strdup): Remove.
25565         (expand_dynamic_string_token): Use __strdup.
25566         (decompose_rpath): Likewise.
25567         (_dl_map_object): Likewise.
25568
25569 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25570
25571         [BZ #14132]
25572         * sysdeps/generic/unwind-dw2-fde.c
25573         (__register_frame_info_bases_internal): Do not declare.
25574         (__register_frame_info_table_bases_internal): Likewise.
25575         (__deregister_frame_info_bases_internal): Likewise.
25576         (__register_frame_info_bases): Declare and use hidden_proto before
25577         definition.  Use hidden_def instead of INTDEF.
25578         (__register_frame_info_table_bases): Likewise.
25579         (__deregister_frame_info_bases): Likewise.
25580         (__register_frame_info): Do not use INTUSE.
25581         (__register_frame): Likewise.
25582         (__register_frame_info_table): Likewise.
25583         (__register_frame_table): Likewise.
25584         (__deregister_frame_info): Likewise.
25585         (__deregister_frame): Likewise.
25586
25587 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25588
25589         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25590         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25591         not undefine.
25592         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25593         Likewise.
25594         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25595         Likewise.
25596
25597 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25598
25599         [BZ #14138]
25600         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25601         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25602         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25603         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25604         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25605         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25606         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25607         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25608         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25609         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25610         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25611         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25612         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25613         syscall.
25614         (setfsuid): Likewise.
25615         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25616         (setfsuid): Likewise.
25617         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25618         (setfsuid): Likewise.
25619         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25620         Likewise.
25621         (setfsuid): Likewise.
25622         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25623         (setfsuid): Likewise.
25624         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25625         Likewise.
25626         (setfsuid): Likewise.
25627
25628 2014-10-27  Andreas Schwab  <schwab@suse.de>
25629
25630         [BZ #17501]
25631         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25632         check for Slow_SSE4_2 feature bit.
25633         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25634         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25635         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25636         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25637
25638 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25639
25640         * configure.ac: Validate compiler version with a empirical test of
25641         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25642         $CC -v output.
25643         * configure: Regenerated.
25644
25645         * inet/htons.c (htons): Prototypify.
25646         * inet/htonl.c (htonl): Likewise.
25647
25648 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25649
25650         * string/strncat.c (strncat): Improve performance by using strlen.
25651
25652 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25653
25654         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25655
25656 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25657
25658         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25659         Call libc_fetestexcept_aarch64.
25660
25661 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25662
25663         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25664         Call libc_feholdexcept_aarch64.
25665
25666 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25667
25668         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25669         Call get_rounding_mode.
25670
25671 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25672
25673         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25674         Simplify logic.
25675
25676 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25677
25678         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25679         Simplify logic.
25680
25681 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25682
25683         [BZ #14138]
25684         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25685         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25686         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25687         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25688         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25689         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25690         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25691         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25692         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25693         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25694         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25695         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25696         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25697         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25698         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25699         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25700         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25701         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25702         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25703         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25704         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25705         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25706         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25707         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25708         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25709         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25710         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25711         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25712         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25713         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25714         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25715         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25716         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25717         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25718         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25719         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25720         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25721         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25722         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25723         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25724         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25725         syscall.
25726         (geteuid): Likewise.
25727         (getgid): Likewise.
25728         (getuid): Likewise.
25729         (getresgid): Likewise.
25730         (getresuid): Likewise.
25731         (getgroups): Likewise.
25732         * sysdeps/unix/sysv/linux/i386/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/m68k/syscalls.list (getegid): Likewise.
25740         (geteuid): Likewise.
25741         (getgid): Likewise.
25742         (getuid): Likewise.
25743         (getresgid): Likewise.
25744         (getresuid): Likewise.
25745         (getgroups): Likewise.
25746         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25747         Likewise.
25748         (geteuid): Likewise.
25749         (getgid): Likewise.
25750         (getuid): Likewise.
25751         (getresgid): Likewise.
25752         (getresuid): Likewise.
25753         (getgroups): Likewise.
25754         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25755         (geteuid): Likewise.
25756         (getgid): Likewise.
25757         (getuid): Likewise.
25758         (getresgid): Likewise.
25759         (getresuid): Likewise.
25760         (getgroups): Likewise.
25761         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25762         Likewise.
25763         (geteuid): Likewise.
25764         (getgid): Likewise.
25765         (getuid): Likewise.
25766         (getgroups): Likewise.
25767
25768         [BZ #14138]
25769         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25770         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25771         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25772         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25773         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25774         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25775         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25776         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25777         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25778         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25779         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25780         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25781         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25782         __chown.
25783         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25784         (lchown): Likewise.
25785         (fchown): Likewise.
25786         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25787         Likewise.
25788         (lchown): Likewise.
25789         (fchown): Likewise.
25790         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25791         (lchown): Likewise.
25792         (fchown): Likewise.
25793         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25794         Likewise.
25795         (lchown): Likewise.
25796         (fchown): Likewise.
25797
25798 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25799
25800         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25801         Simplify logic.
25802
25803 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25804
25805         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25806         Cleanup logic.
25807
25808 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25809
25810         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25811         Remove unused include.
25812
25813 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25814
25815         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25816         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25817         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25818         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25819
25820 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25821             Helge Deller <deller@gmx.de>
25822
25823         [BZ #17508]
25824         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25825         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25826         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25827
25828 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25829
25830         [BZ #14132]
25831         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25832         Remove macro definition.
25833         (__ashrdi3_v_glibc20): Likewise.
25834         (__lshrdi3_v_glibc20): Likewise.
25835         (__cmpdi2_v_glibc20): Likewise.
25836         (__ucmpdi2_v_glibc20): Likewise.
25837         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25838         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25839         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25840         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25841         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25842         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25843
25844 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25845
25846         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25847         old GNU extension [0] syntax.
25848         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25849         alloca rather than an array member with variable length.
25850         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25851         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25852         (parse_opt): ... here.  Likewise use alloca there.
25853         Validate the -i argument before checking for rootness.
25854         (send_shutdown): New function, broken out of ...
25855         (parse_opt): ... here.
25856
25857 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25858
25859         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25860         macro to get at the _rt_local_ro field.
25861         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25862         ([PIC] case) or _dl_hwcap ([!PIC] case).
25863         * sysdeps/arm/setjmp.S: Likewise.
25864
25865         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25866         * sysdeps/arm/configure.ac: New check to define it.
25867         * sysdeps/arm/configure: Regenerated.
25868         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25869         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25870         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25871         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25872         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25873         Use move/movt pair instead of a load.
25874         (LDST_GLOBAL): Macro removed.
25875         (LDR_GLOBAL): New macro replaces it.
25876         (LDR_HIDDEN): New macro.
25877         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25878         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25879
25880         * setjmp/tst-setjmp-static.c: New file.
25881         * setjmp/Makefile (tests): Add it.
25882         (tests-static): New variable.
25883
25884 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25885
25886         [BZ #17485]
25887         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25888
25889 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25890
25891         [BZ #14132]
25892         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25893
25894 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25895
25896         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25897
25898 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25899
25900         * io/fts.c (dirent_not_directory): New function.
25901         (fts_build): Call it.
25902
25903 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25904
25905         * nptl/version.c (__nptl_main): Use normal __write rather than
25906         INTERNAL_SYSCALL.
25907         (banner): Update copyright years.
25908
25909         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25910         gettimeofday.
25911         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25912         * nptl/pthread_cond_timedwait.c: Likewise.
25913         * nptl/pthread_mutex_timedlock.c: Likewise.
25914         * nptl/sem_timedwait.c: Likewise.
25915
25916         * sysdeps/nptl/bits/libc-lock.h
25917         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25918         (__libc_lock_init_recursive): Return void, not 0.
25919         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25920         (__libc_rwlock_init): Likewise.
25921         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25922
25923 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25924
25925         [BZ #15215]
25926         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25927         (__pthread_once_slow): ... here.
25928         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25929         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25930
25931 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25932
25933         [BZ #15215]
25934         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25935         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25936         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25937         * nptl/pthread_once.c (__pthread_once): Likewise.
25938         Update comments.
25939
25940 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25941
25942         [BZ #14138]
25943         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25944         name.
25945         (writev): Use __libc_writev as strong name.
25946         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25947         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25948
25949 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25950
25951         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25952
25953         * sysdeps/i386/nptl/tls.h
25954         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25955         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25956         New macros.
25957         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25958         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25959         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25960         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25961         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25962         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25963
25964         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25965         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25966         on [__NR_futex].
25967         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25968         broken out of ...
25969         (__pthread_mutex_init): ... here.  Call it.
25970         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25971         Conditionalize PI cases on [__NR_futex].
25972         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25973         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25974         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25975
25976         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25977         conditional on [SIGSETXID].
25978         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25979         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25980         is defined.  Likewise for SIGSETXID.
25981         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25982         Conditionalize definitions on [SIGSETXID].
25983         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25984         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25985         unblocking on [SIGCANCEL].
25986
25987         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25988         [__NR_set_robust_list].
25989
25990 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25991
25992         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25993         (do_compare): Likewise.
25994
25995 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25996
25997         [BZ #15884]
25998         * string/strcoll_l.c: Don't include stdio.h.
25999         (coll_seq): Remove members idxarr and rulearr.
26000         (get_next_seq_cached): Remove function.
26001         (get_next_seq): Likewise.
26002         (get_next_seq_nocache): Rename to get_next_seq.
26003         (do_compare): Remove function.
26004         (do_compare_nocache): Rename to do_compare.
26005         (STRCOLL): Remove weight and rules cache.
26006
26007 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26008
26009         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26010         * sysdeps/arm/sfp-machine.h: ... to here.
26011         * sysdeps/arm/Implies: Remove arm/soft-fp.
26012
26013 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26014
26015         * conform/data/sys/utsname.h-data (*_t): Allow.
26016         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26017         [POSIX] (WEXITED): Do not expect constant.
26018         [POSIX] (WSTOPPED): Likewise.
26019         [POSIX] (WNOHANG): Likewise.
26020         [POSIX] (WNOWAIT): Likewise.
26021         [POSIX] (siginfo_t): Do not expect type or elements.
26022         [POSIX] (pid_t): Do not expect type.
26023         [POSIX] (signal.h): Do not allow header.
26024         [POSIX] (sys/resource.h): Likewise.
26025         [POSIX] (si_*): Do not allow pattern.
26026         [POSIX] (W*): Likewise.
26027         [POSIX] (P_*): Likewise.
26028         [POSIX] (BUS_*): Likewise.
26029         [POSIX] (CLD_*): Likewise.
26030         [POSIX] (FPE_*): Likewise.
26031         [POSIX] (ILL_*): Likewise.
26032         [POSIX] (POLL_*): Likewise.
26033         [POSIX] (SEGV_*): Likewise.
26034         [POSIX] (SI_*): Likewise.
26035         [POSIX] (TRAP_*): Likewise.
26036         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26037         variable.
26038
26039 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26040
26041         [BZ #12926]
26042         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26043         infinite loop when __recvmsg returns 0.
26044
26045 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26046
26047         * CANCEL-FCT-WAIVE: Remove file.
26048         * CANCEL-FILE-WAIVE: Likewise.
26049
26050         [BZ #14132]
26051         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26052         instead of INTVARDEF.
26053         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26054         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26055         rtld_hidden_data_def instead of INTVARDEF.
26056         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26057         * elf/dl-deps.c (expand_dst): Likewise.
26058         * elf/dl-load.c (_dl_dst_count): Likewise.
26059         (_dl_dst_substitute): Likewise.
26060         (decompose_rpath): Likewise.
26061         (_dl_init_paths): Likewise.
26062         (open_path): Likewise.
26063         (_dl_map_object): Likewise.
26064         * elf/rtld.c (dl_main): Likewise.
26065         (process_dl_audit): Likewise.
26066         (process_envvars): Likewise.
26067         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26068         Remove declaration.
26069         (__libc_enable_secure): Use rtld_hidden_proto.
26070
26071 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26072
26073         * elf/dl-load.c
26074         (add_path): New function broken out of _dl_rtld_di_serinfo.
26075         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26076
26077 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26078
26079         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26080         parentheses around macro arguments.
26081         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26082         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26083         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26084         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26085         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26086         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26087         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26088         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26089         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26090         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26091         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26092         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26093         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26094         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26095         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26096         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26097         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26098         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26099         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26100         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26101         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26102         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26103         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26104         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26105         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26106         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26107         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26108         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26109         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26110         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26111         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26112         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26113         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26114         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26115         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26116         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26117         Likewise.
26118         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26119         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26120         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26121         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26122         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26123         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26124         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26125         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26126         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26127         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26128         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26129         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26130         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26131         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26132         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26133         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26134         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26135         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26136         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26137         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26138         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26139         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26140         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26141         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26142         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26143         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26144         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26145         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26146         (_FP_FRAC_SRS_1): Likewise.
26147         (_FP_FRAC_CLZ_1): Likewise.
26148         (_FP_MUL_MEAT_1_imm): Likewise.
26149         (_FP_MUL_MEAT_1_wide): Likewise.
26150         (_FP_MUL_MEAT_1_hard): Likewise.
26151         (_FP_SQRT_MEAT_1): Likewise.
26152         (_FP_FRAC_ASSEMBLE_1): Likewise.
26153         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26154         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26155         (__FP_CLZ_2): Likewise.
26156         (_FP_MUL_MEAT_2_wide): Likewise.
26157         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26158         (_FP_MUL_MEAT_2_gmp): Likewise.
26159         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26160         (_FP_SQRT_MEAT_2): Likewise.
26161         (_FP_FRAC_ASSEMBLE_2): Likewise.
26162         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26163         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26164         (_FP_FRAC_CLZ_4): Likewise.
26165         (_FP_MUL_MEAT_4_wide): Likewise.
26166         (_FP_MUL_MEAT_4_gmp): Likewise.
26167         (_FP_SQRT_MEAT_4): Likewise.
26168         (_FP_FRAC_ASSEMBLE_4): Likewise.
26169         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26170         * soft-fp/op-common.h (_FP_CMP): Likewise.
26171         (_FP_CMP_EQ): Likewise.
26172         (_FP_CMP_UNORD): Likewise.
26173         (_FP_TO_INT): Likewise.
26174         (_FP_FROM_INT): Likewise.
26175         [!__FP_CLZ] (__FP_CLZ): Likewise.
26176         (_FP_DIV_HELP_imm): Likewise.
26177         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26178         Likewise.
26179         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26180         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26181         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26182         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26183         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26184         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26185         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26186         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26187         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26188         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26189         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26190         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26191         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26192         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26193         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26194         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26195         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26196         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26197         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26198         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26199         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26200         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26201         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26202         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26203         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26204         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26205         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26206         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26207         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26208         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26209         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26210         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26211         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26212         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26213         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26214         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26215         (FP_UNPACK_RAW_SP): Likewise.
26216         (FP_PACK_RAW_S): Likewise.
26217         (FP_PACK_RAW_SP): Likewise.
26218         (FP_UNPACK_S): Likewise.
26219         (FP_UNPACK_SP): Likewise.
26220         (FP_UNPACK_SEMIRAW_S): Likewise.
26221         (FP_UNPACK_SEMIRAW_SP): Likewise.
26222         (FP_PACK_S): Likewise.
26223         (FP_PACK_SP): Likewise.
26224         (FP_PACK_SEMIRAW_S): Likewise.
26225         (FP_PACK_SEMIRAW_SP): Likewise.
26226         (_FP_SQRT_MEAT_S): Likewise.
26227         (FP_CMP_S): Likewise.
26228         (FP_CMP_EQ_S): Likewise.
26229         (FP_CMP_UNORD_S): Likewise.
26230         (FP_TO_INT_S): Likewise.
26231         (FP_FROM_INT_S): Likewise.
26232
26233         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26234
26235         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26236         (FP_EX_INVALID_IMZ): Likewise.
26237         (FP_EX_INVALID_IMZ_FMA): Likewise.
26238         (FP_EX_INVALID_ISI): Likewise.
26239         (FP_EX_INVALID_ZDZ): Likewise.
26240         (FP_EX_INVALID_IDI): Likewise.
26241         (FP_EX_INVALID_SQRT): Likewise.
26242         (FP_EX_INVALID_CVI): Likewise.
26243         (FP_EX_INVALID_VC): Likewise.
26244         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26245         "invalid" exceptions.
26246         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26247         (_FP_ADD_INTERNAL): Likewise.
26248         (_FP_MUL): Likewise.
26249         (_FP_FMA): Likewise.
26250         (_FP_DIV): Likewise.
26251         (_FP_CMP_CHECK_NAN): Likewise.
26252         (_FP_SQRT): Likewise.
26253         (_FP_TO_INT): Likewise.
26254         (FP_EXTEND): Likewise.
26255
26256 2014-10-09  Allan McRae  <allan@archlinux.org>
26257
26258         * po/fr.po: Update French translation from translation project.
26259
26260 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26261
26262         [BZ #14132]
26263         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26264         of INTDEF.
26265         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26266         (__cxa_atexit): Use libc_hidden_proto.
26267         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26268
26269         [BZ #14132]
26270         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26271         declaration.
26272         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26273         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26274         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26275         [!_ISOMAC] (__iswctype_internal): Likewise.
26276         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26277         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26278         alias.
26279         (fcntl): Remove __fcntl_internal alias.
26280         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26281         __connect_internal alias.
26282         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26283         Likewise.
26284
26285         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26286         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26287         FP_DENORM_ZERO.
26288         (_FP_CHECK_FLUSH_ZERO): New macro.
26289         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26290         (_FP_CMP): Likewise.
26291         (_FP_CMP_EQ): Likewise.
26292         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26293         FP_DENORM_ZERO.
26294         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26295         (FP_TRUNC): Likewise.
26296
26297         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26298         treated as invalid conversion, not as normal exponent.
26299
26300         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26301         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26302         (_FP_CMP_EQ): Likewise.
26303         (_FP_CMP_UNORD): Likewise.
26304         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26305         (FP_CMP_EQ_D): Likewise.
26306         (FP_CMP_UNORD_D): Likewise.
26307         * soft-fp/extended.h (FP_CMP_E): Likewise.
26308         (FP_CMP_EQ_E): Likewise.
26309         (FP_CMP_UNORD_E): Likewise.
26310         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26311         (FP_CMP_EQ_Q): Likewise.
26312         (FP_CMP_UNORD_Q): Likewise.
26313         * soft-fp/single.h (FP_CMP_S): Likewise.
26314         (FP_CMP_EQ_S): Likewise.
26315         (FP_CMP_UNORD_S): Likewise.
26316         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26317         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26318         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26319         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26320         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26321         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26322         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26323         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26324         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26325         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26326         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26327         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26328         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26329         to FP_CMP_Q.
26330         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26331         FP_CMP_Q.
26332         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26333         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26334         FP_CMP_EQ_Q.
26335         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26336         FP_CMP_Q.
26337         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26338         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26339         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26340         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26341         FP_CMP_EQ_Q.
26342         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26343         FP_CMP_Q.
26344         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26345         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26346         FP_CMP_EQ_Q.
26347         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26348         FP_CMP_Q.
26349         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26350         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26351         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26352         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26353         FP_CMP_EQ_Q.
26354
26355         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26356         a subnormal result, set the underflow exception if trapping on
26357         underflow is enabled.
26358         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26359         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26360         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26361         redefine to 0.
26362         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26363         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26364         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26365         * soft-fp/extendxftf2.c (__extendxftf2): Use
26366         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26367
26368         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26369         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26370         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26371         FP_HANDLE_EXCEPTIONS.
26372         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26373         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26374         FP_HANDLE_EXCEPTIONS.
26375         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26376         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26377         FP_HANDLE_EXCEPTIONS.
26378         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26379         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26380         FP_HANDLE_EXCEPTIONS.
26381
26382 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26383
26384         [BZ #14132]
26385         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26386         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26387         use INTUSE.
26388         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26389         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26390         Remove alias.
26391         (__adjtimex): Define using libc_hidden_ver.
26392         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26393         Remove declaration.
26394         (ntp_gettime): Call __adjtimex directly.
26395         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26396         Remove declaration.
26397         (ntp_gettimex): Call __adjtimex directly.
26398         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26399         __adjtimex_internal alias.
26400
26401 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26402
26403         [BZ #17460]
26404         * nscd/nscd.c (more_help): Rewrite list of tables collection
26405         using xstrdup and asprintf.
26406
26407         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26408
26409 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26410             Roland McGrath  <roland@hack.frob.com>
26411
26412         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26413         (do_lookup_unique): ... local function 'enter' here; update callers.
26414
26415 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26416
26417         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26418         compat_symbol calls on [SHARED].
26419         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26420         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26421         Remove.
26422         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26423         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26424         (oldsetrlimit): Remove.
26425         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26427         (lchown): New syscall entry.
26428         (oldsetrlimit): Remove.
26429         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26430         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26431         (oldsetrlimit): Remove.
26432         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26433
26434         [BZ #14138]
26435         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26436         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26437         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26438         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26439         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26440         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26441         (fchown): Likewise.
26442         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26443         (fchown): Likewise.
26444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26445         Likewise.
26446
26447 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26448
26449         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26450         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26451         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26452         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26453         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26454         Likewise.
26455         (__old_sem_post): Likewise.
26456
26457 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26458
26459         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26460         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26461         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26462         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26463         Use INLINE_VSYSCALL macro.
26464         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26465         __vdso_clock_gettime.
26466         * sysdeps/unix/sysv/linux/tile/init-first.c
26467         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26468         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26469         __vdso_clock_gettime.
26470
26471         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26472         to set up frame more cleanly.
26473
26474         * sysdeps/tile/memcmp.c: New file.
26475
26476         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26477
26478         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26479         * sysdeps/tile/tilegx/strcasestr.c: New file.
26480         * sysdeps/tile/tilegx/strnlen.c: New file.
26481         * sysdeps/tile/tilegx/strstr.c: New file.
26482
26483         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26484
26485 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26486
26487         * nptl/tst-setuid3.c: Write errors to stdout.
26488
26489 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26490
26491         * elf/dl-deps.c
26492         (preload): New functions broken out of _dl_map_object_deps.
26493         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26494
26495 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26496
26497         [BZ #14138]
26498         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26499         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26500
26501 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26502
26503         * sysdeps/mips/strcmp.S: New.
26504
26505 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26506
26507         [BZ #14138]
26508         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26509         (linkat): Likewise.
26510         (mkdirat): Likewise.
26511         (readlinkat): Likewise.
26512         (renameat): Likewise.
26513         (symlinkat): Likewise.
26514         (unlinkat): Likewise.
26515         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26516         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26517         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26518         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26519         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26520         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26521         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26522
26523 2014-09-30  Will Newton  <will.newton@linaro.org>
26524
26525         * math/math.h: Define long double math functions if
26526         _LIBC_TEST is defined.
26527         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26528
26529         * localedata/Makefile: Move assignment to tests-special
26530         into an ifdef testing run-built-tests.
26531         * timezone/Makefile: Likewise.
26532
26533 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26534
26535         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26536         with $(BASH) not $(SHELL).
26537
26538 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26539             Matthew LeGendre  <legendre1@llnl.gov>
26540
26541         [BZ #17411]
26542         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26543         l_reloc_result.
26544
26545 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26546
26547         * stdio-common/printf_fp.c
26548         (hack_digit): New function, broken out of ...
26549         (__printf_fp): ... local function here.  Update call sites.
26550         hack_digit now takes an additional parameter that is a pointer
26551         to a struct of the referenced locals.  Those locals moved inside
26552         the struct and references updated.
26553
26554 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26555
26556         * aclocal.m4: Require autoconf 2.69.
26557         * configure: Regenerated.
26558         * sysdeps/aarch64/configure: Likewise.
26559         * sysdeps/alpha/configure: Likewise.
26560         * sysdeps/arm/armv7/configure: Likewise.
26561         * sysdeps/arm/configure: Likewise.
26562         * sysdeps/ia64/configure: Likewise.
26563         * sysdeps/mach/configure: Likewise.
26564         * sysdeps/mips/configure: Likewise.
26565         * sysdeps/s390/configure: Likewise.
26566         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26568
26569         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26570         file.
26571         * sysdeps/ia64/configure.ac: Likewise.
26572
26573 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26574
26575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26576         specify symbol version for ld.so.  Do not include entry for
26577         libpthread.
26578         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26579         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26580         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26581
26582         [BZ #14171]
26583         * Makeconfig [$(build-shared) = yes]
26584         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26585         makefiles.
26586         [$(build-shared) = yes && $(soversions.mk-done) = t]
26587         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26588         [$(build-shared) = yes && $(soversions.mk-done) = t]
26589         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26590         to Makerules.
26591         [$(build-shared) = yes && $(soversions.mk-done) = t]
26592         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26593         here.
26594         [$(build-shared) = yes && $(soversions.mk-done) = t]
26595         (common-generated): Don't append gnu/lib-names.h and
26596         gnu/lib-names.stmp here.
26597         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26598         (lib-names-h-abi): New variable.
26599         [$(build-shared) = yes && $(soversions.mk-done) = t]
26600         (lib-names-stmp-abi): Likewise.
26601         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26602         abi-variants] (before-compile): Append
26603         $(common-objpfx)$(lib-names-h-abi).
26604         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26605         abi-variants] (common-generated): Append gnu/lib-names.h.
26606         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26607         abi-variants] (install-others-nosubdir): Depend on
26608         $(inst_includedir)/$(lib-names-h-abi).
26609         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26610         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26611         [$(build-shared) = yes && $(soversions.mk-done) = t]
26612         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26613         [$(build-shared) = yes && $(soversions.mk-done) = t]
26614         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26615         [$(build-shared) = yes && $(soversions.mk-done) = t]
26616         (common-generated): Append $(lib-names-h-abi) and
26617         $(lib-names-stmp-abi).
26618         * scripts/lib-names.awk: Do not handle multi being set.
26619         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26620         Remove variable.
26621         (abi-lp64_be-ld-soname): Likewise.
26622         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26623         Likewise.
26624         (abi-hard-ld-soname): Likewise.
26625         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26626         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26627         Remove variable.
26628         (abi-o32_hard-ld-soname): Likewise.
26629         (abi-o32_soft_2008-ld-soname): Likewise.
26630         (abi-o32_hard_2008-ld-soname): Likewise.
26631         (abi-n32_soft-ld-soname): Likewise.
26632         (abi-n32_hard-ld-soname): Likewise.
26633         (abi-n32_soft_2008-ld-soname): Likewise.
26634         (abi-n32_hard_2008-ld-soname): Likewise.
26635         (abi-n64_soft-ld-soname): Likewise.
26636         (abi-n64_hard-ld-soname): Likewise.
26637         (abi-n64_soft_2008-ld-soname): Likewise.
26638         (abi-n64_hard_2008-ld-soname): Likewise.
26639         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26640         Likewise.
26641         (abi-64-v2-ld-soname): Likewise.
26642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26643         ld.so entries.
26644         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26645         variable.
26646         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26647         entry.
26648         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26649         variable.
26650         (abi-64-ld-soname): Likewise.
26651         (abi-x32-ld-soname): Likewise.
26652         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26653         entry.
26654         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26655
26656 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26657
26658         [BZ #14138]
26659         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26660         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26661         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26662         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26663         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26664         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26665         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26666         syscall entry for GLIBC_2.2 symbol version.
26667         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26668         Likewise.
26669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26670         (setrlimit): Likewise.
26671         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26672         Likewise.
26673
26674 2014-09-23  Will Newton  <will.newton@linaro.org>
26675
26676         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26677         _LINUX_ARM_SYSDEP_H include guard too.
26678         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26679         define.
26680
26681 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26682
26683         * sysdeps/unix/sysv/linux/eventfd.c:
26684         Make first argument unsigned.
26685         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26686         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26687
26688 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26689
26690         [BZ #16852]
26691         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26692         * socket/sys/socket.h: Likewise.
26693         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26694
26695 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26696
26697         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26698
26699 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26700
26701         * time/tst-ftime.c: New test.
26702         * time/Makefile (tests): Add tst-ftime.
26703
26704 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26705
26706         * soft-fp/extended.h: Fix comment formatting.
26707         * soft-fp/op-1.h: Likewise.
26708         * soft-fp/op-2.h: Likewise.
26709         * soft-fp/op-4.h: Likewise.
26710         * soft-fp/op-8.h: Likewise.
26711         * soft-fp/op-common.h: Likewise.
26712         * soft-fp/soft-fp.h: Likewise.
26713
26714         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26715
26716 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26717
26718         [BZ #6652]
26719         * Makeconfig (soversions-default-setname): Remove variable.
26720         ($(common-objpfx)soversions.i): Don't pass default_setname to
26721         soversions.awk.
26722         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26723         oldest_abi to abi-versions.awk.
26724         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26725         * config.make.in (oldest-abi): Remove variable.
26726         * configure.ac (--enable-oldest-abi): Remove configure option.
26727         * configure: Regenerated.
26728         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26729         text.
26730         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26731         * scripts/soversions.awk: Do not handle default_setname variable.
26732         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26733         variable.
26734         * sysdeps/mach/hurd/configure: Regenerated.
26735         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26736         variable.
26737         * sysdeps/unix/sysv/linux/configure: Regenerated.
26738
26739 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26740
26741         * elf/Makefile (CFLAGS-interp.c): Remove.
26742         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26743         path string.
26744         * elf/interp.c: Include generated runtime-linker.h
26745
26746         * Makerules (lib%.so): Don't include $(+interp) in
26747         prerequisites.
26748         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26749         * dlfcn/eval.c: Remove file.
26750
26751         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26752         macros.
26753
26754         [BZ #17266]
26755         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26756         4.2 and newer.
26757
26758         [BZ #17370]
26759         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26760
26761 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26762             Jakub Jelinek  <jakub@redhat.com>
26763
26764         [BZ #17266]
26765         * libio/stdio.h: Check definition of __fortify_function
26766         instead of __extern_always_inline to include bits/stdio2.h.
26767         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26768         check if __extern_always_inline is defined.
26769         [__USE_MISC || __USE_XOPEN]: Likewise.
26770         [__USE_ISOC99] Likewise.
26771         * misc/sys/cdefs.h (__fortify_function): Define only if
26772         __extern_always_inline is defined.
26773         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26774         __extern_always_inline and __extern_inline only for g++-4.3
26775         and newer or a compatible gcc.
26776
26777 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26778
26779         [BZ #17371]
26780         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26781         last change to handle zero prefix length.
26782
26783 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26784
26785         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26786         _SC_REGEX_VERSION.
26787
26788         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26789         _POSIX_RAW_SOCKETS.
26790
26791 2014-09-13  Allan McRae  <allan@archlinux.org>
26792
26793         * po/ru.po: Update Russian translation from translation project.
26794
26795 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26796
26797         * locale/programs/locale.c (show_locale_vars): Inline local function
26798         into its sole call site.  Clean up some style nits.
26799         (print_item): New function, broken out of ...
26800         (show_info): ... local function here.  Clean up style nits.
26801
26802         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26803         out of ...
26804         (set_class_defaults): ... local function set_default here.
26805         Define set_default as a macro locally to pass constant parameters.
26806         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26807         rather than a shared local.
26808
26809         * stdlib/rpmatch.c (try): New function, broken out of ...
26810         (rpmatch): ... local function here.  Also, prototypify definition.
26811
26812 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26813
26814         * scripts/soversions.awk: Do not handle configuration names.
26815         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26816         vendor and os variables to soversions.awk.
26817         * configure.ac: Do not modify gnu-* host_os.
26818         * configure: Regenerated
26819         * shlib-versions: Remove first column with configuration names.
26820         * nptl/shlib-versions: Likewise.
26821         * nptl_db/shlib-versions: Likewise.
26822         * sysdeps/hppa/shlib-versions: Likewise.
26823         * sysdeps/m68k/shlib-versions: Likewise.
26824         * sysdeps/mach/hurd/shlib-versions: Likewise.
26825         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26826         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26827         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26828         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26829         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26830         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26831         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26832         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26834         Likewise.
26835         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26836         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26837         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26838         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26839         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26840         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26841         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26842         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26843
26844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26845         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26847         Regenerated.
26848         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26850         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26851
26852         * shlib-versions: Remove OS-specific entries.  Moved to files in
26853         sysdeps.
26854         * sysdeps/mach/hurd/shlib-versions: New file.
26855         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26856
26857         * nptl/shlib-versions: Remove architecture-specific entries.
26858         Moved to files in sysdeps.
26859         * shlib-versions: Likewise.
26860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26861         file.
26862         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26863         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26864         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26865         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26866
26867         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26868         (UDP_NO_CHECK6_RX): Likewise.
26869
26870 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26871
26872         * sysdeps/posix/sysconf.c (__sysconf): Spell
26873         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26874
26875 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26876
26877         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26878         loading.
26879         * iconv/Versions (__gconv_transliterate): Export for use from
26880         gconv modules.
26881         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26882         (struct __gconv_trans_data, __gconv_trans_fct,
26883         __gconv_trans_context_fct, __gconv_trans_query_fct,
26884         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26885         definitions.
26886         (struct __gconv_step_data): Remove __trans member.
26887         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26888         longer hidden.  Remove unused trans_data argument.
26889         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26890         (__gconv_translit_find): Remove declaration.
26891         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26892         prototype.
26893         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26894         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26895         trans_data argument.  Add hidden definition.
26896         (__gconv_translit_find): Remove.
26897         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26898         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26899         * iconv/skeleton.c: Remove transliteration initialization.
26900         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26901         __gconv_step_data initialization.
26902         * libio/iofwide.c (__libio_translit_): Remove.
26903         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26904         * wcsmbs/btowc.c (__btowc): Likewise.
26905         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26906         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26907         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26908         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26909         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26910         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26911         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26912         * wcsmbs/wctob.c (wctob): Likewise.
26913
26914 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26915
26916         [BZ #16194]
26917         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26918         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26919         register usage.
26920         * sysdeps/x86/Makefile: Adjust.
26921
26922 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26923             Roland McGrath  <roland@hack.frob.com>
26924
26925         * locale/weight.h: Add include guard.
26926         (findidx): Make static rather than auto; take new parameters
26927         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26928         * locale/weightwc.h: Likewise.
26929         * posix/fnmatch_loop.c
26930         (FCT): Change type of EXTRA from int32_t to wint_t.
26931         Don't include either header inside the function.
26932         Call FINDIDX rather than findidx, and pass new arguments.
26933         #undef FINDIDX at the end of the file.
26934         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26935         FINDIDX before including fnmatch_loop.c for the non-wide version.
26936         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26937         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26938         for the wide version.
26939         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26940         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26941         Pass new arguments to findidx.
26942         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26943         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26944         Don't #include it inside the function.  Pass new arguments to findidx.
26945         * posix/regex_internal.h
26946         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26947         (re_string_elem_size_at): Don't #include it inside the function.
26948         Pass new arguments to findidx.
26949         * string/strcoll_l.c: #include WEIGHT_H at top level.
26950         (get_next_seq): Don't #include it inside the function.
26951         Pass new arguments to findidx.
26952         (get_next_seq_nocache): Likewise.
26953         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26954         (STRXFRM): Don't #include it inside the function.
26955         Pass new arguments to findidx.
26956
26957 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26958
26959         [BZ #17344]
26960         * malloc/malloc.c (unlink): Turn asserts into a call to
26961         malloc_printerr.
26962
26963 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26964
26965         [BZ #17370]
26966         * libio/wfileops (do_ftell_wide): Free OUT.
26967
26968 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26969
26970         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26971
26972 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26973
26974         [BZ #17363]
26975         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26976         group if the current group is empty.
26977
26978 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26979
26980         * benchtests/bench-memset.c (test_main): Add more test from size
26981         from 32 to 512 bytes.
26982         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26983         Add POWER8 memset object.
26984         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26985         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26986         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26987         implementation.
26988         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26989         Likewise.
26990         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26991         multiarch POWER8 memset optimization.
26992         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26993         POWER8 memset optimization.
26994
26995         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26996         Remove bzero multiarch objects.
26997         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26998         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26999         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27000         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27001         Remove define.
27002         [__bzero]: Redefine to specific name.
27003         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27004         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27005         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27006         define.
27007         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27008         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27009
27010 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27011
27012         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27013         warnings into errors.
27014
27015         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27016         __cxa_thread_atexit_impl prototype.
27017
27018 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27019
27020         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27021         Fix capitalization of error message.
27022
27023 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27024
27025         * sysdeps/mips/preconfigure: Modify ABI tests.
27026
27027 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27028
27029         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27030
27031 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27032             Carlos O'Donell  <carlos@systemhalted.org>
27033
27034         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27035         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27036         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27037         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27038         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27039         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27040         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27041         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27042         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27043         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27044         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27045         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27046         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27047         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27048         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27049         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27050         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27051         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27052         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27053         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27054         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27055         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27056         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27057         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27058         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27059         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27060         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27061         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27062         Deconditionalize the code that was previously under [RESET_PID].
27063         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27064         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27065         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27066         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27067         include sysdep.h.
27068
27069 2014-09-08  Allan McRae  <allan@archlinux.org>
27070
27071         * version.h (RELEASE): Set to "development".
27072         (VERSION): Set to "2.20.90"
27073
27074 2014-09-07  Allan McRae  <allan@archlinux.org
27075
27076         * version.h (RELEASE): Set to "stable".
27077         (VERSION): Set to "2.20"
27078         * include/features.h (__GLIBC_MINOR__): Set to 20.
27079
27080         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27081         Liebler.
27082
27083         * po/ko.po: Update Korean translation from translation project.
27084
27085 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27086
27087         [BZ #17354]
27088         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27089         macro for handling signed relocations.
27090
27091 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27092
27093         [BZ #17325]
27094         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27095         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27096         assert.
27097         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27098         * iconvdata/ibm935.c (BODY): Likewise.
27099         * iconvdata/ibm937.c (BODY): Likewise.
27100         * iconvdata/ibm939.c (BODY): Likewise.
27101         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27102         assert.
27103         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27104         script.
27105         * iconvdata/run-iconv-test.sh: New test loop for checking for
27106         decoder crashers.
27107
27108 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27109
27110         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27111         libm_hidden_ver.
27112
27113 2014-09-01  Allan McRae  <allan@archlinux.org>
27114
27115         * po/eo.po: Update Esperanto translation from translation project.
27116
27117         * po/ca.po: Update Catalan translation from translation project.
27118
27119 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27120
27121         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27122         __proc_dostop call.
27123
27124 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27125
27126         [BZ #17319]
27127         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27128         to call set_thread_area instead of hand written asm.
27129         (__NR_set_thread_area): Removed define.
27130         (TLS_FLAG_WRITABLE): Likewise.
27131         (__ASSUME_SET_THREAD_AREA): Remove check.
27132         (TLS_EBX_ARG): Remove define.
27133         (TLS_LOAD_EBX): Likewise.
27134
27135 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27136
27137         Simplify atomicity of socket creation in bind.
27138
27139         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27140         looking up the name after linking the file.
27141
27142 2014-08-27  Allan McRae  <allan@archlinux.org>
27143
27144         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27145
27146 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27147
27148         [BZ #17187]
27149         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27150         trans_compare, open_translit, __gconv_translit_find):
27151         Remove module loading code.
27152
27153 2014-08-26  Allan McRae  <allan@archlinux.org>
27154
27155         * po/vi.po: Update Vietnamese translation from translation project.
27156
27157         * po/uk.po: Update Ukrainian translation from translation project.
27158
27159         * po/fr.po: Update French translation from translation project.
27160
27161         * po/ru.po: Update Russian translation from translation project.
27162
27163         * po/pl.po: Update Polish translation from translation project.
27164
27165         * po/cs.po: Update Czech translation from translation project.
27166
27167         * po/de.po: Update German translation from translation project.
27168
27169         * po/bg.po: Update Bulgarian translation from translation project.
27170
27171         * po/sv.po: Update Sweedish translation from translation project.
27172
27173         * po/nl.po: Update Dutch translation from translation project.
27174
27175         * po/es.po: Update Spanish translation from translation project.
27176
27177 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27178
27179         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27180
27181         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27182         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27183         (CPPFLAGS-iconvconfig): Likewise.
27184         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27185
27186         * include/libc-symbols.h: Remove unnecessary check for
27187         NOT_IN_libc.
27188         * nptl/pthreadP.h: Likewise.
27189         * sysdeps/aarch64/setjmp.S: Likewise.
27190         * sysdeps/alpha/setjmp.S: Likewise.
27191         * sysdeps/arm/sysdep.h: Likewise.
27192         * sysdeps/i386/setjmp.S: Likewise.
27193         * sysdeps/m68k/setjmp.c: Likewise.
27194         * sysdeps/posix/getcwd.c: Likewise.
27195         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27196         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27197         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27198         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27199         * sysdeps/sh/sh3/setjmp.S: Likewise.
27200         * sysdeps/sh/sh4/setjmp.S: Likewise.
27201         * sysdeps/unix/alpha/sysdep.h: Likewise.
27202         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27203         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27204         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27205         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27208         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27209         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27210         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27211         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27212         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27213         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27214         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27215         * sysdeps/x86_64/setjmp.S: Likewise.
27216
27217 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27218
27219         [BZ #17263]
27220         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27221         <stdint.h>.
27222         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27223         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27224
27225 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27226
27227         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27228
27229         [BZ #17262]
27230         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27231         and __x86_64__ when disabling x87 inline functions.
27232
27233 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27234
27235         [BZ #17259]
27236         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27237         asm statement with __cpuid_count.
27238
27239 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27240
27241         * configure.ac: Change __ehdr_start code to dereference the struct.
27242         Run readelf on the output to look for relocations.
27243         * configure: Regenerated.
27244
27245 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27246
27247         [BZ #17261]
27248         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27249         value to 0.
27250         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27251
27252 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27253
27254         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27255
27256 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27257
27258         [BZ #16892]
27259         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27260         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27261
27262 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27263
27264         * malloc/malloc.c: Fix typo in comment.
27265
27266 2014-08-09  Allan McRae  <allan@archlinux.org>
27267
27268         * Regenerate libc.po.
27269
27270 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27271
27272         * intl/tst-gettext2.sh: Check every lang file for creation.
27273
27274 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27275
27276         * sysdeps/aarch64/fpu/math_private.h
27277         (libc_feholdsetround_noex_aarch64_ctx): New function.
27278
27279 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27280
27281         * sysdeps/arm/armv6/strcpy.S (strcpy):
27282         Fix performance issue in misaligned cases.
27283
27284 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27285
27286         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27287         Move definition from termios.h.
27288         (struct termio): Likewise.
27289         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27290         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27291         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27292         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27293         Likewise.
27294         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27295         Move definition to ioctl-types.h
27296         (struct termio): Likewise.
27297         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27298         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27299         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27300         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27301         Likewise.
27302
27303 2014-08-05  Richard Henderson  <rth@redhat.com>
27304
27305         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27306         exceptions.
27307         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27308         Add fraiseexcpt.
27309         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27310         Use __feraiseexcept.
27311         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27312         Protect libm symbols with IS_IN_libm.
27313
27314         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27315
27316 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27317
27318         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27319
27320 2014-08-04  Will Newton  <will.newton@linaro.org>
27321
27322         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27323         file.
27324
27325 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27326
27327         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27328         variants for each function.
27329
27330 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27331
27332         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27333         appended ...
27334         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27335         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27336         appended ...
27337         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27338         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27339         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27340         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27341         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27342         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27343         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27344         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27345         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27346         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27347         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27348         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27349         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27350         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27351         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27352         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27353         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27354         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27355         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27356         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27357         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27358         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27359         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27360         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27361         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27362         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27363         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27364         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27365         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27366         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27367         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27368         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27369         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27370         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27371         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27372         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27373         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27374         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27375         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27376         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27377         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27378         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27379         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27380         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27381         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27382         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27383         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27384         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27385         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27386         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27387         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27388         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27389         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27390         Update #include.
27391         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27392         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27393
27394 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27395
27396         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27397         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27398         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27399         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27400         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27401         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27402
27403 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27404
27405         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27406         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27407         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27408         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27409
27410 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27411
27412         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27413         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27414         (__libc_vfork): Define function under this name.
27415         (__vfork): Define as an alias.
27416         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27417         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27418
27419 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27420
27421         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27422         that was previously under [RESET_PID].
27423         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27424
27425 2014-08-04  Andreas Schwab  <schwab@suse.de>
27426
27427         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27428
27429 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27430
27431         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27432         (main): Likewise.
27433
27434 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27435
27436         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27437
27438 2014-08-01  Richard Henderon  <rth@redhat.com>
27439
27440         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27441         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27442         typo in exact zero test.
27443         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27444         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27445         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27446
27447 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27448
27449         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27450         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27451         * sysdeps/arm/sysdep.h: ... here.
27452         [!__ASSEMBLER__]: Include <stdint.h>.
27453
27454 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27455
27456         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27457         (HAVE_WCTYPE_H): Likewise.
27458         (HAVE_ISWCTYPE): Likewise.
27459         (ENABLE_NLS): Likewise.
27460         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27461         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27462
27463         * posix/regex_internal.c: Check if DEBUG is defined and is
27464         set.
27465
27466         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27467         (HAVE_MBSRTOWCS): Likewise.
27468         * posix/fnmatch.c: Include string.h unconditionally.
27469
27470 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27471
27472         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27473         reversal.
27474
27475 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27476
27477         * sysdeps/generic/safe-fatal.h: New file.
27478         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27479         * nptl/forward.c: Include it.
27480         (__pthread_unwind): Use __safe_fatal as default action, rather
27481         than a bogus use of INTERNAL_SYSCALL that could never work.
27482
27483         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27484         * configure.ac (libc_cv_builtin_trap): New test.
27485         * configure: Regenerated.
27486         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27487         (ABORT_INSTRUCTION): Define using __builtin_trap.
27488
27489         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27490         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27491         * sysdeps/nptl/nptl-signals.h: New file.
27492         * nptl/pthreadP.h: Include <nptl-signals.h>.
27493
27494 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27495
27496         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27497         (ONE_DIRECTION): Define.
27498         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27499         (ONE_DIRECTION): Define.
27500         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27501         (ONE_DIRECTION): Define.
27502
27503 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27504
27505         * sysdeps/s390/Makefile: Delete file.
27506         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27507         * sysdeps/s390/__longjmp.c: Delete file.
27508         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27509         Remove fields __flags and __reserved.
27510         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27511         and add versioning.
27512         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27513         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27514         * sysdeps/s390/rtld-setjmp.S: Likewise.
27515         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27516         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27517         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27518         * sysdeps/s390/s390-32/setjmp.S: ... here.
27519         Add versioning.
27520         (__sigsetjmp): Remove setting __flags field.
27521         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27522         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27523         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27524         * sysdeps/s390/s390-64/setjmp.S: ... here.
27525         Add versioning.
27526         (__sigsetjmp): Remove setting __flags field.
27527         * sysdeps/s390/setjmp.S: Delete file.
27528         * sysdeps/s390/sigjmp.c: Likewise.
27529         * sysdeps/s390/v1-longjmp.c: Likewise.
27530         * sysdeps/s390/v1-setjmp.h: Likewise.
27531         * sysdeps/s390/v1-sigjmp.c: Likewise.
27532         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27533         Remove v1-longjmp_chk.
27534         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27535         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27536         Include debug/longjmp_chk.c and add versioning.
27537         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27538         Include nptl/pt-longjmp.c and add versioning.
27539         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27540         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27541         Include __longjmp.c.
27542         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27543         Move to ...
27544         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27545         (__getcontext): Remove setting __flags field.
27546         Add versioning.
27547         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27548         Don't restore upper high grps.
27549         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27550         Likewise.
27551         (__swapcontext): Remove setting uc_flags field.
27552         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27553         Delete file.
27554         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27555         Include __longjmp.c.
27556         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27557         Move to ...
27558         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27559         (__getcontext): Remove setting __flags field.
27560         Add versioning.
27561         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27562         (__swapcontext): Remove setting uc_flags field.
27563         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27564         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27565         Remove fields uc_high_gprs and __reserved.
27566         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27567         New file with reverted content.
27568         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27569         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27570         Regenerated.
27571         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27572         Regenerated.
27573
27574 2014-07-31  Andreas Schwab  <schwab@suse.de>
27575
27576         * config.h.in (HAVE_IFUNC): Define to 0.
27577         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27578         definedness.
27579
27580 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27581
27582         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27583         memmove-avx-unaligned, memcpy-avx-unaligned and
27584         mempcpy-avx-unaligned.
27585         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27586         Add tests for AVX memcpy functions.
27587         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27588         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27589         memcpy_chk.
27590         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27591         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27592         memmove_chk.
27593         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27594         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27595         mempcpy_chk.
27596         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27597         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27598         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27599
27600 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27601
27602         [BZ #17213]
27603         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27604         powerpc64le.
27605
27606 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27607
27608         [BZ #16839]
27609         * manual/llio.texi: Add section about open file description locks.
27610         * manual/examples/ofdlocks.c: Example of open file description
27611         lock usage.
27612         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27613         F_OFD_SETLK, and F_OFD_SETLKW.
27614
27615 2014-07-23  Allan McRae  <allan@archlinux.org>
27616
27617         * po/es.po: Update Spanish translation from translation project.
27618
27619 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27620
27621         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27622
27623 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27624
27625         [BZ #17078]
27626         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27627         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27628         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27629
27630 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27631
27632         [BZ #17088]
27633         * math/fesetenv.c (__fesetenv)
27634         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27635         * math/feupdateenv.c (__feupdateenv)
27636         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27637
27638         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27639         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27640         (__ASSUME_SOCKETCALL): Do not define.
27641
27642         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27643         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27644         (__ASSUME_SOCKETCALL): Do not define.
27645         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27646         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27647         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27648         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27649         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27650         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27651         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27652         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27653
27654         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27655         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27656         (__ASSUME_SOCKETCALL): Do not define.
27657         (__ASSUME_IPC64): Define unconditionally.
27658         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27659         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27660         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27661         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27662         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27663         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27664         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27665         Likewise.
27666
27667         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27668         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27669         (__ASSUME_SOCKETCALL): Do not define.
27670         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27671         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27672         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27673         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27674         (__ASSUME_REQUEUE_PI): Define unconditionally.
27675         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27676         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27677         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27678         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27679         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27680         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27681
27682         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27683         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27684         (__ASSUME_SOCKETCALL): Do not define.
27685         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27686         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27687         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27688         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27689         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27690         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27691
27692         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27693         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27694         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27695         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27696         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27697         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27698         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27699         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27700         (__ASSUME_GETCPU_SYSCALL): Likewise.
27701
27702         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27703         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27704         cases for individual architectures.
27705         * sysdeps/gnu/configure: Regenerated.
27706         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27707         LIBC_SLIBDIR_RTLDDIR.
27708         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27709         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27710         LIBC_SLIBDIR_RTLDDIR.
27711         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27713         LIBC_SLIBDIR_RTLDDIR.
27714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27715         Regenerated.
27716         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27717         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27718         file.
27719         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27720         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27721         file.
27722         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27723         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27724         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27725         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27726
27727         * sysdeps/aarch64/shlib-versions: Move to ...
27728         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27729         * sysdeps/alpha/shlib-versions: Move to ...
27730         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27731         * sysdeps/arm/shlib-versions: Move to ...
27732         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27733         * sysdeps/hppa/shlib-versions: Move all contents except for
27734         libgcc_s entry to ...
27735         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27736         entry from ...
27737         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27738         * sysdeps/ia64/shlib-versions: Move to ...
27739         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27740         entry from ...
27741         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27742         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27743         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27744         * sysdeps/microblaze/shlib-versions: Move to ...
27745         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27746         * sysdeps/mips/shlib-versions: Move to ...
27747         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27748         entry from ...
27749         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27750         * sysdeps/tile/shlib-versions: Move to ...
27751         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27752         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27753         from ...
27754         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27755         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27756         entry from ...
27757         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27758
27759 2014-07-17  Will Newton  <will.newton@linaro.org>
27760
27761         * sysdeps/arm/bits/atomic.h
27762         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27763         (__arch_compare_and_exchange_bool_16_int): Likewise.
27764         (__arch_compare_and_exchange_bool_64_int): Likewise.
27765
27766         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27767         into an #else block.
27768
27769 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27770
27771         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27772         just Linux configurations.  Test empirically that the compiler sets
27773         __ARM_EABI__, rather than using the tuple to decide.
27774         * sysdeps/arm/preconfigure: Regenerated.
27775         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27776         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27777         contents appended ...
27778         * sysdeps/arm/configure.ac: ... here.
27779         * sysdeps/arm/configure: Regenerated.
27780
27781 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27782
27783         * nptl/pthread_kill.c: New file.
27784         * nptl/pthread_sigmask.c: New file.
27785         * nptl/pthread_sigqueue.c: New file.
27786
27787         * sysdeps/nptl/lowlevellock.h: New file.
27788         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27789         * sysdeps/nptl/lowlevellock-futex.h: New file.
27790
27791         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27792         Remove dead declarations.
27793
27794 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27795
27796         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27797         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27798         config-cflags-avx2.
27799         * sysdeps/x86_64/configure.ac: Likewise.
27800         * sysdeps/i386/configure: Regenerated.
27801         * sysdeps/x86_64/configure: Likewise.
27802         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27803         memset-avx2 only if config-cflags-avx2 is yes.
27804         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27805         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27806         defined.
27807         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27808         only if HAVE_AVX2_SUPPORT is defined.
27809         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27810
27811 2014-07-14  Alan Modra  <amodra@gmail.com>
27812
27813         [BZ #17153]
27814         * elf/elf.h (DT_PPC64_NUM): Correct value.
27815         * NEWS: Add to fixed bug list.
27816
27817 2014-07-13  Jim Meyering  <meyering@fb.com>
27818
27819         [BZ 17150]
27820         regex: don't deref NULL upon heap allocation failure
27821         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27822         failure in one more place.
27823         To trigger the segfault, configure grep -with-included-regex,
27824         build it, and run these commands:
27825         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27826
27827 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27828
27829         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27830
27831 2014-07-11  Richard Henderson  <rth@redhat.com>
27832
27833         * sysdeps/aarch64/libm-test-ulps: Update.
27834
27835 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27836
27837         [BZ #17135]
27838         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27839         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27840         (__nptl_setxid): Initialize error member.  Call
27841         __nptl_setxid_error.
27842         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27843         * nptl/descr.h (struct xid_command): Add error member.
27844         * nptl/tst-setuid3.c: New file.
27845         * nptl/Makefile (tests): Add it.
27846
27847 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27848
27849         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27850         New define.
27851         (__lll_trylock): Use __lll_base_trylock.
27852         (__lll_cond_trylock): Likewise.
27853
27854 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27855
27856         * nptl/pthread_create.c (start_thread): Use atomic_or and
27857         lll_futex_wake directly rather than lll_robust_dead.
27858         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27859         (lll_robust_dead): Macro removed.
27860         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27861         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27862         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27863         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27864         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27865         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27866         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27867         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27868         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27869         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27870         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27871         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27872         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27873         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27874         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27875
27876         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27877         Use atomic_compare_and_exchange_val_acq directly rather than
27878         lll_robust_trylock.
27879         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27880         (__lll_robust_trylock, lll_robust_trylock): Removed.
27881         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27882         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27883         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27884         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27885         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27886         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27887         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27888         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27889         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27890         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27891         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27892         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27893         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27894         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27895
27896 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27897
27898         * manual/locale.texi (Locale Names): New section documenting
27899         locale name syntax.  Adjust menu and node chaining accordingly.
27900         (Choosing Locale): Reference Locale Names, Locale Categories.
27901         Mention setting LC_ALL=C.  Reflect that name syntax is now
27902         documented.
27903         (Locale Categories): New section title.  Reference Locale Names.
27904         LC_ALL is an environment variable, but not a category.
27905         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27906         description, now in Locale Name.  Reference that section.  Locale
27907         name syntax is now documented.
27908
27909 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27910
27911         [BZ #17137]
27912         * locale/findlocale.c (name_present, valid_locale_name): New
27913         functions.
27914         (_nl_find_locale): Use the loc_name variable to store name
27915         candidates.  Call name_present and valid_locale_name to check and
27916         validate locale names.  Return an error if the locale is invalid.
27917
27918 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27919
27920         * locale/setlocale.c (setlocale): Use strdup for allocating
27921         composite name copy.
27922
27923 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27924
27925         Sync up with gnulib.
27926         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27927         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27928         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27929         and _GL_ARG_NONNULL.
27930         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27931         [!_LIBC]: Include code for Windows and Cygwin.
27932         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27933         Include prototype for int strerror_r.
27934         [!_LIBC] (is_open): New function.
27935         (flush_stdout): New function.
27936         (print_errno_message): Use it.
27937         (error): Likewise.
27938         (error_at_line): Likewise.
27939         (error_tail) Add function attribute macros.  Use
27940         __builtin_expect.
27941
27942         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27943
27944         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27945
27946         * io/ftw.c: Include sys/param.h unconditionally.
27947
27948         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27949
27950         [BZ #17125]
27951         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27952         libc_freeres_ptr.
27953         (freecache): New function to free CACHE on exit.
27954
27955         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27956         initialization.
27957
27958 2014-07-09  David S. Miller  <davem@davemloft.net>
27959
27960         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27961
27962         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27963         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27964         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27965         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27966         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27967         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27968         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27969         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27970         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27971         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27972         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27973         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27974         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27975
27976 2014-07-09  Andreas Schwab  <schwab@suse.de>
27977
27978         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27979         output.
27980         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27981         (do_test): Likewise.
27982
27983         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27984
27985 2014-07-09  Will Newton  <will.newton@linaro.org>
27986
27987         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27988         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27989         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27990         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27991         * sysdeps/hppa/start.S (_start): Likewise.
27992
27993 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27994
27995         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27996
27997         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27998         defined.
27999
28000 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28001
28002         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28003         after checking that it is non-NULL.
28004
28005         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28006
28007 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28008
28009         * sysdeps/powerpc/memmove.c: Remove file.
28010         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28011         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28012         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28013         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28014         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28015         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28016         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28017         string memmove instead of removed powerpc one.
28018
28019         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28020         [weak_alias]: Fix compiler warning due trailing data.
28021         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28022         [weak_alias]: Likewise.
28023         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28024         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28025
28026         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28027         (__libc_ifunc_impl_list): Add memmove functions.
28028
28029 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28030
28031         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28032         Remove code.
28033         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28034         Likewise.
28035         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28036         Likewise.
28037         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28038         Likewise.
28039         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28040         Likewise.
28041         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28042         Likewise.
28043         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28044         Likewise.
28045         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28046         Likewise.
28047         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28048         Likewise.
28049         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28050         Likewise.
28051         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28052         Likewise.
28053         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28054         Likewise.
28055         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28056         Likewise.
28057         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28058         Likewise.
28059         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28060         Likewise.
28061         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28062         Likewise.
28063         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28064         Likewise.
28065
28066 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28067
28068         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28069         to avoid alignment traps in non-cacheable memory.
28070         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28071
28072         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28073         multiarch objects.
28074         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28075         file: multiarch power7 memmove.
28076         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28077         multiarch default memmove.
28078         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28079         multiarch memove for powerpc32/power4.
28080
28081         * string/bcopy.c: Use full path to include memmove.c.
28082         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28083         multiarch objects.
28084         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28085         bcopy for powerpc64.
28086         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28087         bcopy for powerpc64.
28088         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28089         and memmove implementations.
28090         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28091         optimized multiarch memmove for POWER7/powerpc64.
28092         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28093         default multiarch memmove for powerpc64.
28094         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28095         multiarch for powerpc64.
28096         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28097         for POWER7/powerpc64.
28098         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28099         memmove for POWER7/powerpc64.
28100
28101         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28102         glibc default one.
28103
28104         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28105         __ELF_NATIVE_CLASS equal to 64.
28106
28107 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28108
28109         * sysdeps/nptl/lowlevellock.h: File removed.
28110
28111         * NEWS: NPTL is no longer an add-on!
28112         * nptl/internaltypes.h: Moved ...
28113         * sysdeps/nptl/internaltypes.h: ... here.
28114         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28115         * sysdeps/nptl/fork.c: Likewise.
28116         * sysdeps/nptl/gai_misc.h: Likewise.
28117         * sysdeps/nptl/librt-cancellation.c: Likewise.
28118         * sysdeps/nptl/jmp-unwind.c: Likewise.
28119         * sysdeps/nptl/setxid.h: Likewise.
28120         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28121         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28122         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28123         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28124         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28125         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28126         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28127         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28128         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28129         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28130         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28131         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28132         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28133         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28134         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28135         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28136         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28137         * nptl/Makeconfig: Moved ...
28138         * sysdeps/nptl/Makeconfig: ... here.
28139         * nptl/configure: File removed.
28140         * nptl/ANNOUNCE: File removed.
28141         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28142         * sysdeps/unix/sysv/linux/configure: Regenerated.
28143
28144         * nptl/Makefile (routines): Add libc_pthread_init,
28145         libc_multiple_threads, register-atfork and unregister-atfork.
28146         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28147         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28148         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28149         pthread-pi-defines.sym, structsem.sym.
28150         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28151         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28152         [$(subdir) = nptl] (tests): Add tst-setgetname.
28153         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28154         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28155         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28156         [!LIBC_SIGACTION]: Remove aliases.
28157         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28158         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28159         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28160         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28161         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28162         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28163         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28164         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28165         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28166         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28167         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28168         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28169         __libc_allocate_rtsig_private.
28170         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28171         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28172         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28173         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28174         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28175         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28176         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28177         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28178         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28179         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28180         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28181         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28182         * nptl/internaltypes.h: ... here.
28183         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28184         * sysdeps/nptl/jmp-unwind.c: ... here.
28185         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28186         * nptl/libc-lowlevellock.c: ... here.
28187         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28188         * nptl/libc_multiple_threads.c: ... here.
28189         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28190         * nptl/libc_pthread_init.c: ... here.
28191         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28192         * nptl/lowlevelbarrier.sym: ... here.
28193         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28194         * nptl/lowlevelcond.sym: ... here.
28195         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28196         * nptl/lowlevellock.c: ... here.
28197         * nptl/lowlevellock.h: Moved ...
28198         * sysdeps/nptl/lowlevellock.h: ... here.
28199         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28200         * nptl/lowlevelrobustlock.c: ... here.
28201         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28202         * nptl/lowlevelrobustlock.sym: ... here.
28203         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28204         * nptl/lowlevelrwlock.sym: ... here.
28205         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28206         * nptl/pt-fork.c: ... here.
28207         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28208         * nptl/pthread-pi-defines.sym: ... here.
28209         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28210         * nptl/pthread_attr_getaffinity.c: ... here.
28211         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28212         * nptl/pthread_attr_setaffinity.c: ... here.
28213         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28214         * nptl/pthread_mutex_cond_lock.c: ... here.
28215         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28216         Update #include.
28217         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28218         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28219         * nptl/pthread_once.c: ... here, replacing old file.
28220         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28221         * nptl/pthread_yield.c: ... here.
28222         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28223         * nptl/register-atfork.c: ... here.
28224         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28225         * nptl/sem_post.c: ... here.
28226         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28227         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28228         * nptl/sem_timedwait.c: ... here.
28229         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28230         * nptl/sem_trywait.c: ... here.
28231         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28232         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28233         * nptl/sem_wait.c: ... here.
28234         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28235         * nptl/structsem.sym: ... here.
28236         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28237         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28238         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28239         * nptl/unregister-atfork.c: ... here.
28240         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28241         * nptl/unwindbuf.sym: ... here.
28242         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28243         * sysdeps/nptl/fork.c: ... here.
28244         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28245         * sysdeps/nptl/fork.h: ... here.
28246         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28247         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28248         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28249         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28250         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28251         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28252         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28253         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28254         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28255         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28256         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28257         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28258         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28259         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28260         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28261         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28262         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28263         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28264         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28265         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28266         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28267         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28268         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28269         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28270         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28271         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28272         * sysdeps/unix/sysv/linux/raise.c: ... here.
28273         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28274         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28275         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28276         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28277         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28278         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28279         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28280         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28281         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28282         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28283         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28284         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28285         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28286         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28287         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28288
28289 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28290
28291         * sysdeps/generic/memcopy.h: Add comment for
28292         MEMCPY_OK_FOR_FWD_MEMMOVE.
28293
28294 2014-07-04  Will Newton  <will.newton@linaro.org>
28295
28296         * string/memchr.c: Merge from gnulib.
28297         [_LIBC]: Remove conditionals.
28298         (__ptr_t): Remove define.
28299         (LONG_MAX_32_BITS): Likewise.
28300         (LONG_MAX): Likewise.
28301         (MEMCHR): Use ANSI prototype and optimize algorithm.
28302
28303         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28304
28305 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28306
28307         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28308         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28309
28310         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28311         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28312         in a bare environment with no <stdlib.h> installed.
28313         * sysdeps/nptl/configure: Regenerated.
28314
28315         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28316
28317         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28318         AC_EGREP_CPP for kernel header checks, so they only succeed if
28319         including <linux/version.h> actually works right.
28320         * sysdeps/unix/sysv/linux/configure: Regenerated.
28321
28322         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28323         value so it's not diagnosed as unused.
28324
28325         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28326         thing) with "ifeq ($(subdir),rt)".
28327
28328 2014-07-03  Richard Henderson  <rth@redhat.com>
28329
28330         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28331         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28332         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28333
28334         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28335         (math_force_eval): New.
28336
28337         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28338         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28339
28340         * sysdeps/alpha/fpu/s_round.c: Remove file.
28341         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28342
28343         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28344         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28345         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28346         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28347         (_dl_start, print_statistics): Likewise.
28348         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28349         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28350
28351         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28352         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28353         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28354         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28355         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28356         (HP_SMALL_TIMING_AVAIL): Define.
28357         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28358         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28359         (HP_SMALL_TIMING_AVAIL): Define.
28360         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28361         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28362
28363         * sysdeps/aarch64/hp-timing.h: New file.
28364
28365         * sysdeps/generic/hp-timing.h: Remove dead comment.
28366         * sysdeps/generic/hp-timing-common.h: New file.
28367         * sysdeps/alpha/hp-timing.h: Include it.
28368         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28369         * sysdeps/i386/i686/hp-timing.h: Likewise.
28370         * sysdeps/ia64/hp-timing.h: Likewise.
28371         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28372         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28373         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28374         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28375         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28376         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28377         (hp_timing_t): New.
28378
28379         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28380         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28381         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28382         * elf/rtld.c (_dl_start_final): Likewise.
28383         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28384         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28385         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28386         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28387         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28388         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28389         (HP_TIMING_DIFF_INIT): Remove.
28390         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28391         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28392         (HP_TIMING_DIFF_INIT): Remove.
28393         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28394         * sysdeps/i386/i686/hp-timing.c: Remove file.
28395         * sysdeps/x86_64/hp-timing.c: Remove file.
28396         * sysdeps/ia64/hp-timing.c: Remove file.
28397         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28398         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28399         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28400         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28401
28402         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28403         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28404         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28405         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28406         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28407         (HP_TIMING_ACCUM): Remove.
28408         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28409         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28410         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28411
28412         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28413         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28414         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28415         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28416         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28417         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28418         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28419         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28420
28421         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28422
28423 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28424
28425         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28426
28427 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28428
28429         Sync up with gettext.
28430         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28431         [_MSC_VER]: Include malloc.h
28432         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28433         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28434         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28435         TEMP_FAILURE_RETRY.  Cast return of alloca.
28436         [!_LIBC] Call gl_rwlock_init.
28437         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28438
28439 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28440
28441         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28442         before checking its value.
28443
28444 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28445
28446         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28447
28448         * debug/memcpy_chk.c: Don't include pagecopy.h.
28449         * debug/mempcpy_chk.c: Likewise.
28450         * string/memcpy.c: Likewise.
28451         * string/memmove.c: Likewise.
28452         * sysdeps/powerpc/memmove.c: Likewise.
28453         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28454         definition of PAGE_COPY_FWD_MAYBE here...
28455         * sysdeps/generic/pagecopy.h: ... from here.
28456         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28457
28458 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28459             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28460
28461         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28462         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28463         optimizations.
28464         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28465         (__libc_ifunc_impl_list): Likewise.
28466         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28467         multiarch strcat for PPC64.
28468         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28469         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28470
28471 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28472
28473         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28474
28475 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28476
28477         * intl/loadmsgcat.c: Remove declaration of
28478         get_sysdep_segment_value.
28479         (get_sysdep_segment_value): Use ISO C style.
28480         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28481         semicolon.  Fix typo and formatting in comment.
28482         (_nl_unload_domain): Use ISO C style.
28483
28484         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28485
28486 2014-07-02  Will Newton  <will.newton@linaro.org>
28487
28488         * malloc/obstack.c: Merge from gnulib master.
28489         [HAVE_CONFIG_H]: Remove conditional code.
28490         [!_LIBC]: Include config.h.
28491         [!ELIDE_CODE]: Don't include inttypes.h, include
28492         stdint.h unconditionally.
28493         (print_and_abort): Mark as _Noreturn.
28494         (_obstack_allocated_p): Mark as __attribute_pure__.
28495         (obstack_free): Rename to __obstack_free.
28496         [!__attribute__]: Remove conditional code.
28497         * malloc/obstack.h: Merge from gnulib master.
28498         [__cplusplus]: Move conditional down.
28499         [!__attribute_pure__]: Define __attribute_pure__ here
28500         if it is not already defined.
28501         (_obstack_memory_used): Mark as __attribute_pure__.
28502         [!__obstack_free]: Define as obstack_free.
28503         [__GNUC__]: Remove check for ancient NeXT gcc.
28504
28505 2014-07-02  Will Newton  <will.newton@linaro.org>
28506             Paul Eggert  <eggert@cs.ucla.edu>
28507
28508         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28509
28510 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28511
28512         * resolv/gethnamaddr.c: Add comment warning that the file is
28513         not maintained.
28514
28515 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28516
28517         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28518         entries.
28519
28520         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28521         entry for aio_cancel and aio_cancel64.
28522         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28523         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28524         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28525         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28526         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28527         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28528         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28529         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28530         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28531         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28532         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28533         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28534         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28535
28536 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28537
28538         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28539         * nptl/pthread_mutex_lock.c: Likewise.
28540         * nptl/pthread_mutex_timedlock.c: Likewise.
28541         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28542
28543 2014-07-01  Richard henderson  <rth@redhat.com>
28544
28545         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28546         (__isnan, __isnanl): Remove.
28547         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28548
28549         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28550
28551 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28552
28553         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28554
28555 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28556
28557         * resolv/nss_dns/dns-host.c (getanswer_r)
28558         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28559
28560 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28561
28562         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28563         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28564         undefine.
28565         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28566         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28567
28568 2014-07-01  Roland McGrath <roland@hack.frob.com>
28569
28570         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28571         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28572
28573         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28574         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28575
28576         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28577         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28578         ... here.
28579         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28580         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28581
28582         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28583         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28584         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28585         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28586
28587         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28588         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28589         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28590         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28591         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28592         Moved ...
28593         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28594         ... here.
28595         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28596         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28597         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28598         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28599         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28600         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28601         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28602         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28603         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28604         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28605         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28606         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28607         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28608         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28609         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28610         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28611         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28612         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28613         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28614         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28615         ... here.
28616         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28617         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28618         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28619         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28620         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28621         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28622         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28623         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28624
28625 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28626
28627         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28628         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28629         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28630         Add sysdep.
28631
28632 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28633
28634         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28635
28636 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28637
28638         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28639         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28640
28641         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28642
28643         * sysdeps/arm/libm-test-ulps: Regenerated.
28644
28645 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28646             Roland McGrath <roland@hack.frob.com>
28647
28648         * test-skeleton.c (signal_handler): Kill the whole process group
28649         before killing the child individually.
28650         (main): Report any failure on `setpgid'.
28651
28652 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28653
28654         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28655         from _TLS_H to _ARM_NPTL_TLS_H.
28656         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28657         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28658
28659 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28660
28661         [BZ #16539]
28662         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28663         (__expm1l): Return argument unchanged when small but not
28664         subnormal.
28665
28666         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28667         include macro name.
28668         (_FP_UNPACK_RAW_1_P): Likewise.
28669         (_FP_PACK_RAW_1): Likewise.
28670         (_FP_PACK_RAW_1_P): Likewise.
28671         (_FP_MUL_MEAT_1_wide): Likewise.
28672         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28673         (_FP_MUL_MEAT_1_hard): Likewise.
28674         (_FP_DIV_MEAT_1_imm): Likewise.
28675         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28676         (_FP_DIV_MEAT_1_udiv): Likewise.
28677         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28678         (_FP_UNPACK_RAW_2): Likewise.
28679         (_FP_UNPACK_RAW_2_P): Likewise.
28680         (_FP_PACK_RAW_2): Likewise.
28681         (_FP_PACK_RAW_2_P): Likewise.
28682         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28683         (_FP_MUL_MEAT_2_wide): Likewise.
28684         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28685         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28686         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28687         (_FP_MUL_MEAT_2_gmp): Likewise.
28688         (_FP_DIV_MEAT_2_udiv): Likewise.
28689         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28690         (_FP_FRAC_SRL_4): Likewise.
28691         (_FP_FRAC_SRST_4): Likewise.
28692         (_FP_FRAC_SRS_4): Likewise.
28693         (_FP_UNPACK_RAW_4): Likewise.
28694         (_FP_UNPACK_RAW_4_P): Likewise.
28695         (_FP_PACK_RAW_4): Likewise.
28696         (_FP_PACK_RAW_4_P): Likewise.
28697         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28698         (_FP_MUL_MEAT_4_wide): Likewise.
28699         (_FP_MUL_MEAT_4_gmp): Likewise.
28700         (umul_ppppmnnn): Likewise.
28701         (_FP_DIV_MEAT_4_udiv): Likewise.
28702         (__FP_FRAC_ADD_4): Likewise.
28703         (__FP_FRAC_SUB_3): Likewise.
28704         (__FP_FRAC_SUB_4): Likewise.
28705         (__FP_FRAC_DEC_3): Likewise.
28706         (__FP_FRAC_DEC_4): Likewise.
28707         (__FP_FRAC_ADDI_4): Likewise.
28708         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28709         (_FP_FRAC_SRL_8): Likewise.
28710         (_FP_FRAC_SRS_8): Likewise.
28711
28712         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28713         include macro name.
28714         (FP_UNPACK_RAW_EP): Likewise.
28715         (FP_PACK_RAW_E): Likewise.
28716         (FP_PACK_RAW_EP): Likewise.
28717         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28718         (_FP_ISSIGNAN): Likewise.
28719         (_FP_ADD_INTERNAL): Likewise.
28720         (_FP_FMA): Likewise.
28721         (_FP_CMP): Likewise.
28722         (_FP_SQRT): Likewise.
28723         (_FP_TO_INT): Likewise.
28724         (_FP_FROM_INT): Likewise.
28725         (FP_EXTEND): Likewise.
28726         (_FP_DIV_MEAT_N_loop): Likewise.
28727
28728 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28729
28730         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28731         throughout.
28732
28733 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28734
28735         [BZ #17097]
28736         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28737         result with correct sign in case of exponents that produce
28738         overflow except for X very close to 1.
28739
28740 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28741
28742         mktime: merge #if/#ifdef usage from glibc
28743         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28744         as that works with both Glibc's and Gnulib's style.
28745         See thread starting at Siddhesh Poyarekar's bug report at:
28746         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28747
28748 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28749
28750         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28751         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28752         * sysdeps/tile/tilegx/memmove.c: Remove file.
28753
28754 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28755
28756         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28757         abi-name definition.
28758         * scripts/soversions.awk: Do not handle or generate ABI lines.
28759         * shlib-versions: Remove ABI entries.
28760         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28761         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28762
28763 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28764
28765         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28766         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28767         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28768         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28769         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28770         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28771         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28772         Moved ...
28773         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28774         ... here.
28775         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28776         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28777         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28778         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28779         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28780         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28781         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28782         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28783         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28784         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28785         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28786         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28787         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28788         Moved ...
28789         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28790         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28791         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28792         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28793         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28794         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28795         Moved ...
28796         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28797         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28798         Moved ...
28799         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28800         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28801         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28802         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28803         Moved ...
28804         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28805         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28806         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28807         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28808         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28809         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28810         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28811         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28812         Moved ...
28813         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28814         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28815         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28816         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28817         Moved ...
28818         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28819         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28820         Moved ...
28821         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28822         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28823         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28824         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28825         Moved ...
28826         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28827         ... here.
28828         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28829         Identical file removed.
28830         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28831         Moved ...
28832         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28833         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28834         Identical file removed.
28835         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28836         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28837         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28838         Moved ...
28839         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28840         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28841         Identical file removed.
28842         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28843         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28844         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28845         Identical file removed.
28846         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28847         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28848         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28849         Identical file removed.
28850         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28851         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28852         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28853         Identical file removed.
28854         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28855         Moved ...
28856         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28857         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28858         Identical file removed.
28859         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28860         Moved ...
28861         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28862         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28863         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28864         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28865         Identical file removed.
28866         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28867         Moved ...
28868         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28869         ... here.
28870         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28871         Identical file removed.
28872         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28873         Moved ...
28874         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28875         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28876         Identical file removed.
28877         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28878         Moved ...
28879         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28880         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28881         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28882         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28883         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28884         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28885         Moved ...
28886         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28887         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28888         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28889
28890         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28891         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28892         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28893         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28894         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28895
28896 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28897
28898         [BZ #17092]
28899         * nscd/nscd.c (monitor_child): Return exit status of child
28900         instead of return value from wait syscall.
28901
28902 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28903
28904         * configure.ac (libc_commonpagesize): Remove variable.
28905         (libc_relro_required): Likewise.
28906         (libc_cv_z_relro): Remove configure test.
28907         * configure: Regenerated.
28908         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28909         variable.
28910         (libc_relro_required): Likewise.
28911         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28912         (libc_relro_required): Likewise.
28913         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28914         (libc_relro_required): Likewise.
28915         * sysdeps/arm/preconfigure: Regenerated.
28916         * sysdeps/ia64/preconfigure: Remove file.
28917         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28918         variable.
28919         (libc_relro_required): Likewise.
28920
28921         [BZ #16561]
28922         [BZ #16562]
28923         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28924         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28925         recompute overflowing results in original rounding mode.
28926         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28927         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28928         recompute overflowing results in original rounding mode.
28929         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28930         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28931         recompute overflowing results in original rounding mode.
28932         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28933         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28934         recompute overflowing results in original rounding mode.
28935         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28936         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28937         recompute overflowing results in original rounding mode.
28938         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28939         (libc_feholdsetround_ctx): New macro.
28940         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28941         * sysdeps/i386/fpu/libm-test-ulps: Update.
28942         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28943
28944 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28945
28946         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28947         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28948         corresponding .cpsetup call.
28949
28950 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28951
28952         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28953         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28954         * sysdeps/arm/Makefile [$(subdir) = csu]
28955         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28956         (static-only-routines): Add aeabi_read_tp here.
28957         (shared-only-routines): Add libc-aeabi_read_tp here.
28958         (CFLAGS-libc-start.c): Add -fexceptions here.
28959         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28960         (sysdep_routines, static-only-routines, shared-only-routines):
28961         Don't add to these here.
28962         (CFLAGS-libc-start.c): Likewise.
28963
28964         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28965         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28966         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28967         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28968         * sysdeps/arm/Makefile [$(subdir) = rt]
28969         (librt-sysdep_routines, librt-shared-only-routines):
28970         Append rt-aeabi_unwind_cpp_pr1 here.
28971         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28972         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28973         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28974         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28975         Append nptl-aeabi_unwind_cpp_pr1 here.
28976         (tests): Filter out tst-cleanupx4 here.
28977         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28978         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28979         Don't do those here.
28980
28981 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28982
28983         * scripts/list-sources.sh: Do not handle ports specially.
28984
28985 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28986
28987         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28988         * sysdeps/arm/feupdateenv.c: Likewise.
28989
28990         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28991
28992 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28993
28994         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28995         trailing whitespace removed.
28996         * scripts/config.guess: Update to version 2014-03-23.
28997         * scripts/config.sub: Update to version 2014-05-01
28998         * scripts/install-sh: Update to version 2013-12-25.23.
28999         * scripts/move-if-change: Update from gnulib.
29000
29001 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29002
29003         * debug/memmove_chk.c: Remove pagecopy.h include.
29004
29005 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29006
29007         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29008         identical to gnulib mktime.
29009
29010 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29011
29012         * configure.ac: Do not test for machine being rs6000.  Do not test
29013         for powerpc*-*soft.
29014         * configure: Regenerated.
29015
29016         [BZ #11505]
29017         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29018         test.
29019         * configure: Regenerated.
29020         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29021         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29022         Remove configure test.
29023         * sysdeps/arm/configure: Regenerated.
29024         * sysdeps/nptl/configure.ac: Do not check
29025         libc_cv_asm_cfi_directives.
29026         * sysdeps/nptl/configure: Regenerated.
29027         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29028         * sysdeps/x86_64/nptl/configure: Remove generated file.
29029         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29030         unconditional.
29031         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29032
29033 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29034
29035         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29036         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29037         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29038         it is defined.
29039
29040         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29041         instead of whether it is defined.
29042         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29043         * sysdeps/hppa/dl-machine.h: Likewise.
29044         * sysdeps/ia64/dl-machine.h: Likewise.
29045         * sysdeps/m68k/dl-machine.h: Likewise.
29046         * sysdeps/microblaze/dl-machine.h: Likewise.
29047         * sysdeps/mips/dl-machine.: Likewise.
29048         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29049         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29050         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29051         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29052         * sysdeps/sh/dl-machine.h: Likewise.
29053         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29054         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29055         * sysdeps/tile/dl-machine.h: Likewise.
29056         * sysdeps/x86_64/dl-machine.h: Likewise.
29057
29058         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29059         code.
29060         (verify_persistent_db): Likewise.
29061
29062 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29063
29064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29065         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29067         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29068         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29069         Moved ...
29070         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29071         ... here.
29072         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29073         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29074         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29075         Identical file removed.
29076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29077         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29079         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29081         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29082         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29083         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29084         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29085         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29087         Moved ...
29088         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29089         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29090         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29092         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29093         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29094         Moved ...
29095         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29096         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29097         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29098         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29099         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29100         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29101         Identical file removed.
29102         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29103         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29104         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29105         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29107         Moved ...
29108         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29109         ... here.
29110         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29111         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29112         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29113         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29114         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29115         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29116         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29117         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29118         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29119         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29120         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29121         Moved ...
29122         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29124         Moved ...
29125         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29126         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29127         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29129         Moved ...
29130         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29132         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29133
29134         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29135         folded into ...
29136         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29137         * sysdeps/unix/sysv/linux/s390/Versions
29138         (libpthread: GLIBC_2.19): New version set.
29139         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29140         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29141         (librt: GLIBC_2.3.3): New version set.
29142         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29143         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29144         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29145         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29146         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29147         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29148         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29149         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29150         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29151         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29152         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29153         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29154         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29155         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29156         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29157         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29158         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29159         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29160         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29161         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29162         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29163         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29164         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29165         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29166         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29167         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29168         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29169         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29170         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29171         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29172         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29173         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29174         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29175         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29176         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29177         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29178         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29179         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29180         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29181         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29182         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29183         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29184         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29185         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29186         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29187
29188         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29189         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29190         (__libc_vfork): Define the function under this name.
29191         [!NOT_IN_libc] (__vfork): Make this an alias.
29192         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29193         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29194         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29195         (__libc_vfork): Define the function under this name.
29196         [!NOT_IN_libc] (__vfork): Make this an alias.
29197         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29198         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29199         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29200         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29201         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29202         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29203
29204         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29205         code that was previously under [RESET_PID].
29206         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29207         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29208         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29209
29210         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29211         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29212         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29213         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29214         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29215         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29216         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29217         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29218         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29219         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29220         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29221         Moved ...
29222         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29223         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29224         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29225         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29226         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29227         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29228         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29229         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29230         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29231         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29232         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29233         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29234         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29235         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29236         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29237         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29238         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29239         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29240         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29241         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29242         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29243         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29244         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29245         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29246         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29247         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29248         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29249         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29250         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29251
29252 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29253
29254         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29255         that was previously under [RESET_PID].
29256         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29257
29258 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29259
29260         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29261         not undefine and redefine.
29262         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29263         [O_CLOEXEC]: Make code unconditional.
29264         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29265         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29266         <kernel-features.h>.
29267         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29268         conditional variable definition.
29269         (shm_open) [O_CLOEXEC]: Make code unconditional.
29270         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29271         code.
29272
29273         * configure.ac (USE_REGPARMS): Don't define here.
29274         * configure: Regenerated.
29275         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29276         * sysdeps/i386/configure: Regenerated.
29277
29278         * nptl/createthread.c: Don't include kernel-features.h.
29279         * nptl/pthread_cancel.c: Likewise.
29280         * nptl/pthread_condattr_setclock.c: Likewise.
29281         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29282         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29283         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29284         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29285         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29286         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29287         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29288         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29289         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29290         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29291         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29292         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29293         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29294         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29295         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29296         * nscd/gai.c: Likewise.
29297         * nss/nss_db/db-open.c: Likewise.
29298         * sysdeps/generic/ldsodefs.h: Likewise.
29299         * sysdeps/sh/nptl/tls.h: Likewise.
29300         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29301         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29302         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29303         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29304         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29305         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29306         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29307         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29308         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29309         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29310         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29311         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29312         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29313         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29314         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29315         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29316         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29317         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29318         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29319         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29320         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29321         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29322         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29323         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29324         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29325         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29326         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29327         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29328         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29329         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29330         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29331         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29332         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29333         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29334         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29335         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29336         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29337         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29338         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29339         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29340         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29341         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29342         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29343         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29344         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29345         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29346         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29347         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29348         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29349         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29350         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29351         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29352         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29353         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29354         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29355         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29356         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29357         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29380         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29381         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29382         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29383         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29384         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29385         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29386         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29387         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29388         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29389         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29390         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29391         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29392         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29393         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29394         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29395         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29396         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29397         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29398         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29399         * sysdeps/unix/sysv/linux/system.c: Likewise.
29400         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29401         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29402         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29403         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29404         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29405         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29406         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29407
29408         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29409         * configure: Regenerated.
29410         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29411
29412         * configure.ac (base_machine): Do not set specially for particular
29413         machines here.
29414         * configure: Regenerated.
29415         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29416         settings from configure.ac.
29417         * sysdeps/i386/preconfigure: New file.
29418         * sysdeps/s390/preconfigure: Likewise.
29419         * sysdeps/sh/preconfigure: Likewise.
29420         * sysdeps/sparc/preconfigure: Likewise.
29421
29422 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29423
29424         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29425         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29426         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29427         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29428         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29429         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29430         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29431         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29432         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29433         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29434         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29435         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29436         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29437         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29438         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29439         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29440         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29441         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29442         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29443
29444         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29445         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29446         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29447         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29448         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29449         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29450         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29451         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29452         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29453         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29454         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29455         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29456         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29457         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29458         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29459         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29460         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29461         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29462         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29463         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29464         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29465         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29466         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29467         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29468         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29469         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29470         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29471         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29472         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29473         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29474         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29475         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29476         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29477         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29478         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29479         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29480         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29481         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29482
29483         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29484         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29485         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29486         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29487         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29488         Moved ...
29489         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29490         ... here.
29491         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29492         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29493         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29494         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29495         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29496         Moved ...
29497         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29498         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29499         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29500         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29501         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29502         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29503         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29504         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29505         Moved ...
29506         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29507         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29508         Moved ...
29509         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29510         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29511         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29512         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29513         Moved ...
29514         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29515         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29516         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29517         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29518         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29519         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29520         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29521         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29522         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29523         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29524         Moved ...
29525         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29526         ... here.
29527         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29528         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29529         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29530         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29531         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29532         Moved ...
29533         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29534         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29535         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29536         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29537         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29538         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29539         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29540         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29541         Moved ...
29542         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29543         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29544         Moved ...
29545         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29546         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29547         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29548         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29549         Moved ...
29550         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29551         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29552         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29553         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29554         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29555
29556 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29557
29558         * timezone/checktab.awk: Update from tzcode 2014e.
29559         * timezone/private.h: Likewise.
29560         * timezone/tzfile.h: Likewise.
29561         * timezone/zdump.c: Likewise.
29562         * timezone/zic.c: Likewise.
29563
29564         * sysdeps/unix/sysv/linux/kernel-features.h
29565         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29566         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29567         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29568         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29569         Remove conditional code.
29570
29571 2014-06-25  Will Newton  <will.newton@linaro.org>
29572
29573         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29574         (_dl_arm_cap_flags): Add HWCAP2 values.
29575         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29576         (_DL_HWCAP_COUNT): Increase to 37.
29577         (_DL_HWCAP_LAST): New define.
29578         (_DL_HWCAP2_LAST): New define.
29579         (_dl_procinfo): Add support for printing
29580         AT_HWCAP2 entries.
29581         (_dl_string_hwcap): Use _dl_hwcap_string.
29582
29583 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29584
29585         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29586
29587 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29588
29589         * README: Do not mention ports directory.
29590
29591         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29592         Remove macro.
29593         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29594         <kernel-features.h>.
29595         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29596         conditional variable definition.
29597         (__futimes): Update comment.
29598         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29599         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29600
29601         [BZ #16560]
29602         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29603         arguments close to 0.
29604         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29605         Likewise.
29606         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29607         Likewise.
29608         * math/auto-libm-test-in: Add more tests of exp10.
29609         * math/auto-libm-test-out: Regenerated.
29610         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29611
29612         * sysdeps/unix/sysv/linux/kernel-features.h
29613         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29614         * sysdeps/unix/sysv/linux/readv.c: Do not include
29615         <kernel-features.h>.
29616         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29617         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29618         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29619         unconditional.
29620         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29621         conditional code.
29622         * sysdeps/unix/sysv/linux/writev.c: Do not include
29623         <kernel-features.h>.
29624         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29625         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29626         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29627         unconditional.
29628         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29629         conditional code.
29630
29631 2014-06-25  Will Newton  <will.newton@linaro.org>
29632
29633         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29634         comment changes throughout the file.  Remove checks
29635         for HAVE_*_H definitions that are not required.
29636         (__gen_tempname): Call abort if an unknown kind value is
29637         passed.
29638
29639 2014-06-25  Andreas Schwab  <schwab@suse.de>
29640
29641         [BZ #17086]
29642         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29643         scalbln, scalblnf, scalblnl in libc.
29644
29645 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29646
29647         [BZ #17086]
29648         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29649         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29650         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29651
29652 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29653
29654         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29655         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29656         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29657         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29658         Update #include.
29659         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29660         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29661         Update #include.
29662         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29663         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29664         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29665         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29666         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29667         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29668         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29669         * sysdeps/x86/bits/semaphore.h: ... here.
29670         * sysdeps/x86/nptl/elide.h: Moved ...
29671         * sysdeps/x86/elide.h: ... here.
29672         * sysdeps/x86_64/nptl/Implies: File removed.
29673         * sysdeps/i386/nptl/Implies: File removed.
29674
29675 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29676
29677         [BZ #16539]
29678         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29679         return the argument for normal arguments with exponent below -64.
29680         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29681         Likewise.
29682         * math/auto-libm-test-in: Add another test of expm1.
29683         * math/auto-libm-test-out: Regenerated.
29684
29685         [BZ #16287]
29686         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29687         calling __erfcl for arguments at least 16.
29688         * math/auto-libm-test-in: Add more tests of erf.
29689         * math/auto-libm-test-out: Regenerated.
29690
29691         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29692         individual architectures.
29693         * sysdeps/unix/sysv/linux/configure: Regenerated.
29694         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29695         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29696         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29697         (ldd_rewrite_script): Define variable.
29698         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29700         file.
29701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29702         generated file.
29703         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29704         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29705         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29706         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29707         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29708         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29709         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29710         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29711
29712 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29713
29714         [BZ #17084]
29715         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29716         Rename member __data.d to __data.__elision_data.
29717
29718 2014-06-24  Wilco  <wdijkstr@arm.com>
29719
29720         * NEWS: Add 16918 to fixed bug list.
29721
29722 2014-06-24  Wilco  <wdijkstr@arm.com>
29723
29724         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29725
29726 2014-06-24  Wilco  <wdijkstr@arm.com>
29727
29728         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29729         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29730         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29731         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29732         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29733         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29734         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29735         Use _FPU_MASK_RM.
29736
29737 2014-06-24  Wilco  <wdijkstr@arm.com>
29738
29739         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29740
29741 2014-06-24  Wilco  <wdijkstr@arm.com>
29742
29743         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29744         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29745         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29746         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29747
29748 2014-06-24  Wilco  <wdijkstr@arm.com>
29749
29750         [BZ #16918]
29751         * sysdeps/arm/feupdateenv.c (feupdateenv):
29752         Rewrite to reduce FPSCR accesses and fix return value.
29753
29754 2014-06-24  Wilco  <wdijkstr@arm.com>
29755
29756         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29757         Optimize to avoid unnecessary FPSCR writes.
29758         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29759         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29760         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29761         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29762
29763 2014-06-24  Wilco  <wdijkstr@arm.com>
29764
29765         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29766         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29767         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29768         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29769         Call libc_fetestexcept_vfp.
29770         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29771         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29772         __SOFTFP__ ifdef so that they can be built for softfp.
29773
29774 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29775
29776         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29777         argument type signed char.
29778
29779         * Makerules (check-abi): Dump diff of symlist if the test
29780         fails.
29781
29782 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29783
29784         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29785         using abort.
29786
29787         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29788         Remove unused variable ST.
29789
29790 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29791
29792         [BZ #16354]
29793         [BZ #17061]
29794         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29795         small arguments before calling __expm1.
29796         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29797         small arguments before calling __expm1f.
29798         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29799         small arguments before calling __expm1l.
29800         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29801         Likewise.
29802         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29803         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29804         spurious underflow for some cosh tests.
29805         * math/auto-libm-test-out: Regenerated.
29806         * sysdeps/i386/fpu/libm-test-ulps: Update.
29807
29808         [BZ #17050]
29809         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29810         (__ieee754_y1): Set errno if return value overflows.
29811         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29812         (__ieee754_y1f): Set errno if return value overflows.
29813         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29814         (__ieee754_y1l): Set errno if return value overflows.
29815         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29816         (__ieee754_y1l): Set errno if return value overflows.
29817         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29818         * math/auto-libm-test-out: Regenerated.
29819
29820         * math/gen-auto-libm-tests.c: Document use of
29821         ignore-zero-inf-sign.
29822         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29823         (input_flags): Add ignore-zero-inf-sign.
29824         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29825         * math/gen-libm-test.pl (generate_testfile): Handle
29826         ignore-zero-inf-sign.
29827         * math/auto-libm-test-in: Mark some cpow tests with
29828         ignore-zero-inf-sign and some with xfail-rounding.
29829         * math/auto-libm-test-out: Regenerated.
29830         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29831         * sysdeps/i386/fpu/libm-test-ulps: Update.
29832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29833
29834         [BZ #16315]
29835         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29836         overflowing or underflowing operations take place with sign of
29837         result.
29838         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29839         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29840         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29841         (__ieee754_pow): Recompute overflowing and underflowing results in
29842         original rounding mode.
29843         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29844         (__powl_helper): Allow negative argument X and scale negated value
29845         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29846         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29847         overflowing or underflowing operations take place with sign of
29848         result.
29849         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29850         Include <math.h>.
29851         * math/auto-libm-test-in: Add more tests of pow.
29852         * math/auto-libm-test-out: Regenerated.
29853         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29854         (pow_tonearest_test_data): Remove.
29855         (pow_test_tonearest): Likewise.
29856         (pow_towardzero_test_data): Likewise.
29857         (pow_test_towardzero): Likewise.
29858         (pow_downward_test_data): Likewise.
29859         (pow_test_downward): Likewise.
29860         (pow_upward_test_data): Likewise.
29861         (pow_test_upward): Likewise.
29862         (main): Don't call removed functions.
29863         * sysdeps/i386/fpu/libm-test-ulps: Update.
29864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29865
29866 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29867
29868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29869         Moved ...
29870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29872         Moved ...
29873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29875         Moved ...
29876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29878         Moved ...
29879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29881         File removed.
29882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29883         File removed.
29884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29885         File removed.
29886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29887         File removed.
29888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29889         File removed.
29890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29891         File removed.
29892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29893         File removed.
29894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29895         File removed.
29896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29897         File removed.
29898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29899         File removed.
29900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29901         File removed.
29902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29903         File removed.
29904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29905         Moved ...
29906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29908         Moved ...
29909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29910         ... here.
29911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29912         Moved ...
29913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29915         Moved ...
29916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29918         Moved ...
29919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29921         Moved ...
29922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29924         Moved ...
29925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29927         Moved ...
29928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29930         Moved ...
29931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29934         ... here.
29935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29936         Moved ...
29937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29939         Moved ...
29940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29941         ... here.
29942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29943         Moved ...
29944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29945         ... here.
29946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29947         Moved ...
29948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29949         ... here.
29950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29951         Moved ...
29952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29954         Moved ...
29955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29959         Moved ...
29960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29961         ... here.
29962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29963         Moved ...
29964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29965         ... here.
29966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29967         Moved ...
29968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29970         Moved ...
29971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29973         Moved ...
29974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29976         Moved ...
29977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29979         Moved ...
29980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29981         ... here.
29982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29983         Moved ...
29984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29986         Moved ...
29987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29989         Moved ...
29990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29992         Moved ...
29993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29997         Moved ...
29998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30000         Moved ...
30001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30003         Moved ...
30004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30005         ... here.
30006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30007         Moved ...
30008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30009         ... here.
30010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30011         Moved ...
30012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30013         ... here.
30014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30015         Moved ...
30016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30018         Moved ...
30019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30021         Moved ...
30022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30024         Moved ...
30025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30026         ... here.
30027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30028         Moved ...
30029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30030         ... here.
30031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30032         Moved ...
30033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30034         ... here.
30035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30036         Moved ...
30037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30039         Moved ...
30040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30041
30042 2014-06-23  Will Newton  <will.newton@linaro.org>
30043             Wilco  <wdijkstr@arm.com>
30044
30045         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30046         implementation.  Include get-rounding-mode.h.
30047         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30048         [!libc_feholdsetround_noex_ctx]: Define
30049         libc_feholdsetround_noex_ctx.
30050         [!libc_feholdsetround_noexf_ctx]: Define
30051         libc_feholdsetround_noexf_ctx.
30052         [!libc_feholdsetround_noexl_ctx]: Define
30053         libc_feholdsetround_noexl_ctx.
30054         (libc_feholdsetround_ctx): New function.
30055         (libc_feresetround_ctx): New function.
30056         (libc_feholdsetround_noex_ctx): New function.
30057         (libc_feresetround_noex_ctx): New function.
30058
30059 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30060
30061         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30062         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30063         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30064         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30065         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30066         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30067
30068         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30069         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30070         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30071         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30072         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30073         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30074         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30075         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30076         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30077         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30078         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30079         Moved ...
30080         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30081         ... here.
30082         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30083         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30084         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30085         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30086         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30087         Moved ...
30088         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30089         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30090         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30091         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30092         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30093         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30094         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30095         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30096         Moved ...
30097         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30098         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30099         Moved ...
30100         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30101         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30102         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30103         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30104         Moved ...
30105         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30106         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30107         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30108         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30109         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30110         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30111         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30112         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30113         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30114         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30115         Moved ...
30116         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30117         ... here.
30118         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30119         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30120         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30121         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30122         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30123         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30124         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30125         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30126         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30127         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30128         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30129         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30130         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30131         Moved ...
30132         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30133         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30134         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30135         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30136         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30137         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30138         Moved ...
30139         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30140         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30141         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30142         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30143         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30144
30145         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30146         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30147         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30148         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30149         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30150         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30151         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30152         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30153         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30154         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30155         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30156         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30157         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30158         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30159         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30160         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30161         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30162         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30163         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30164         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30165         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30166         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30167         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30168         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30169         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30170         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30171         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30172         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30173
30174 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30175
30176         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30177         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30178         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30179         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30180         (IPV6_PMTUDISC_INTERFACE): Likewise.
30181         (IPV6_PMTUDISC_OMIT): Likewise.
30182
30183 2014-06-23  Andreas Schwab  <schwab@suse.de>
30184
30185         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30186         Remove unused errout label.
30187
30188 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30189
30190         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30191         macro: hardware supports Vector Crypto instructions.
30192
30193 2014-06-23  Will Newton  <will.newton@linaro.org>
30194
30195         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30196         rather than __builtin_expect.
30197
30198         * elf/dl-lookup.c (undefined_msg): Remove variable.
30199         (_dl_lookup_symbol_x): Replace undefined_msg with string
30200         literal.
30201
30202         * elf/dl-lookup.c (do_lookup_unique): New function.
30203         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30204         to a separate function.
30205
30206 2014-06-23  Andreas Schwab  <schwab@suse.de>
30207
30208         [BZ #17079]
30209         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30210         before reading the next line.
30211
30212 2014-06-23  Will Newton  <will.newton@linaro.org>
30213
30214         * test-skeleton.c (signal_handler): Use printf and %m
30215         rather than perror.  Use printf rather than fprintf to
30216         stderr.  Use puts rather than fputs to stderr.
30217         (main): Likewise.
30218
30219 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30220
30221         * nscd/nscd.c (thread_info_t): Remove typedef.
30222         (thread_info): Remove variable.
30223
30224 2014-06-21  Allan McRae  <allan@archlinux.org>
30225
30226         * NEWS: Mention CVE-2014-4043.
30227
30228 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30229
30230         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30231         * nptl/smp.h: ... here.
30232
30233         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30234
30235         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30236         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30237         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30238         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30239
30240         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30241         * nptl/stack-aliasing.h: New file.
30242         * sysdeps/i386/i686/stack-aliasing.h: New file.
30243         * sysdeps/i386/i686/nptl/Makefile: File removed.
30244         * sysdeps/x86_64/stack-aliasing.h: New file.
30245         * sysdeps/x86_64/nptl/Makefile
30246         (CFLAGS-pthread_create.c): Variable removed.
30247
30248         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30249         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30250         old file.
30251         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30252         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30253         old file.
30254
30255 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30256
30257         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30258         (__ASSUME_SIGFRAME_V2): Remove macro.
30259         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30260         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30261         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30262         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30263         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30264         Declare as function.  Remove conditional macro definitions.
30265         (__default_rt_sa_restorer): Likewise.
30266         (__default_sa_restorer_v1): Remove declaration.
30267         (__default_sa_restorer_v2): Likewise.
30268         (__default_rt_sa_restorer_v1): Likewise.
30269         (__default_rt_sa_restorer_v2): Likewise.
30270         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30271         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30272         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30273
30274 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30275
30276         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30277         (libpthread-routines): Add sysdep.
30278         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30279         * sysdeps/unix/sysv/linux/sparc/Versions
30280         (libpthread: GLIBC_2.3.3): New version set.
30281         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30282         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30283         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30284         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30285         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30286         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30287         Moved ...
30288         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30289         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30290         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30291         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30292         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30293         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30294         * sysdeps/sparc/nptl/sem_init.c: ... here.
30295         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30296         * sysdeps/sparc/nptl/sem_post.c: ... here.
30297         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30298         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30299         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30300         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30301         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30302         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30303         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30304         (libpthread-routines): Add cpu_relax.
30305         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30306         File removed.
30307         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30308         (librt: GLIBC_2.3.3): New version set.
30309         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30310         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30311         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30312         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30313         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30314         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30315         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30316         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30317         Moved ...
30318         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30319         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30320         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30321         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30322         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30323         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30324         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30325         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30326         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30327         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30328         Moved ...
30329         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30330         Update #include.
30331         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30332         Moved ...
30333         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30334         Update #include.
30335         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30336         Moved ...
30337         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30338         Update #include.
30339         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30340         Moved ...
30341         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30342         Update #include.
30343         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30344         Moved ...
30345         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30346         Update #include.
30347         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30348         Moved ...
30349         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30350         Update #include.
30351         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30352         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30353         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30354         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30355         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30356         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30357         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30358         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30359         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30360         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30361         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30362         Moved ...
30363         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30364         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30365         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30366         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30367         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30368
30369 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30370
30371         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30372         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30373         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30374         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30375         * nscd/nscd.c: Likewise.
30376         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30377         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30378         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30379         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30380
30381         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30382         <kernel-features.h>.
30383         (init_mq_netlink): Remove conditional have_sock_cloexec
30384         definitions.  Remove code conditional on have_sock_cloexec < 0.
30385         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30386         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30387         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30388         <kernel-features.h>.
30389         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30390         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30391
30392 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30393
30394         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30395         Add tests for memset_chk and memset.
30396
30397         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30398         with AVX2_Usable.
30399
30400 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30401
30402         [BZ #16046]
30403         * elf/tst-dl-iter-static.c: New file.
30404         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30405
30406         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30407         error.
30408
30409 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30410
30411         * sysdeps/unix/sysv/linux/kernel-features.h
30412         (__ASSUME_F_GETOWN_EX): Remove macro.
30413         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30414         <kernel-features.h>.
30415         (miss_F_GETOWN_EX): Remove variable or macro.
30416         (do_fcntl): Do not check miss_F_GETOWN_EX.
30417         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30418
30419         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30420         Remove macro.
30421         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30422         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30423         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30424
30425         * sysdeps/unix/sysv/linux/kernel-features.h
30426         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30427         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30428         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30429         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30430
30431 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30432
30433         [BZ #17075]
30434         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30435         Fix calculation of the symbol's value.
30436         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30437         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30438         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30439         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30440         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30441         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30442         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30443         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30444         (modules-names): Add `tst-armtlsdescmod',
30445         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30446         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30447         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30448         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30449         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30450         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30451         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30452         ($(objpfx)tst-armtlsdescloc): New dependency.
30453         ($(objpfx)tst-armtlsdescextnow): Likewise.
30454         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30455         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30456         TLS scheme support.
30457         * sysdeps/arm/configure: Regenerate.
30458
30459 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30460
30461         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30462         (__atfct_seterrno_2): Likewise.
30463         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30464         <kernel-features.h>.
30465         (__ASSUME_ATFCTS): Do not undefine and redefine.
30466         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30467         (__have_atfcts): Remove conditional definition.
30468         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30469         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30470         unreachable if [__ASSUME_ATFCTS].
30471         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30472         not undefine and redefine.
30473         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30474         <kernel-features.h>.
30475         (faccessat) [__NR_faccessat]: Make code unconditional.
30476         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30477         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30478         <kernel-features.h>.
30479         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30480         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30481         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30482         <kernel-features.h>.
30483         (fchownat) [__NR_fchownat]: Make code unconditional.
30484         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30485         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30486         <kernel-features.h>.
30487         (futimesat) [__NR_futimesat]: Make code unconditional.
30488         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30489         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30490         <kernel-features.h>.
30491         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30492         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30493         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30494         <kernel-features.h>.
30495         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30496         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30497         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30498         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30499         <kernel-features.h>.
30500         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30501         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30502         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30503         <kernel-features.h>.
30504         (linkat) [__NR_linkat]: Make code unconditional.
30505         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30506         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30507         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30508         <kernel-features.h>.
30509         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30510         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30511         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30512         <kernel-features.h>.
30513         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30514         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30515         * sysdeps/unix/sysv/linux/openat.c: Do not include
30516         <kernel-features.h>.
30517         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30518         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30519         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30520         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30521         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30522         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30523         <kernel-features.h>.
30524         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30525         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30526         result of INLINE_SYSCALL directly, not via int variable.
30527         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30528         <kernel-features.h>.
30529         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30530         (renameat) [__NR_renameat]: Make code unconditional.
30531         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30532         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30533         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30534         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30535         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30536         (__ASSUME_ATFCTS): Do not undefine and redefine.
30537         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30538         <kernel-features.h>.
30539         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30540         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30541         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30542         <kernel-features.h>.
30543         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30544         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30545         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30546         (__ASSUME_ATFCTS): Do not undefine and redefine.
30547         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30548         <kernel-features.h>.
30549         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30550         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30551         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30552         <kernel-features.h>.
30553         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30554         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30555
30556 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30557
30558         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30559
30560 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30561
30562         [BZ #17069]
30563         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30564         constructed tree before returning error.
30565         * posix/bug-regexp36.c: Expand test case.
30566
30567 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30568
30569         [BZ #6803]
30570         * math/libm-test.inc (scalbln_test_date):
30571         Add errno expectations.
30572         * math/w_scalblnf.c: New File.
30573         Add wrapper which checks for setting errno to ERANGE.
30574         Add weak_alias for corresponding scalbln function.
30575         * math/w_scalbln.c: Likewise.
30576         * math/w_scalblnl.c: Likewise.
30577         * math/Makefile (libm-calls): Add w_scalbln.
30578         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30579         Remove weak_alias for corresponding scalbln function.
30580         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30581         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30582         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30583         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30584         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30585         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30586         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30587         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30588         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30589         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30590         Remove long_double_symbol for scalblnl function in libm, libc.
30591         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30592         Add wrapper which checks for setting errno to ERANGE.
30593         Add long_double_symbol for scalblnl function in libm, libc.
30594         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30595         Remove long_double_symbol for scalblnl in libm.
30596         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30597         Add wrapper which checks for setting errno to ERANGE.
30598         Add long_double_symbol for scalblnl function in libm.
30599         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30600         Do not use wrapper because of own implementation.
30601
30602 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30603
30604         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30605         3 bytes for __pad1 for x32.
30606         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30607
30608 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30609             H.J. Lu  <hongjiu.lu@intel.com>
30610
30611         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30612         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30613         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30614         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30615         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30616
30617 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30618
30619         [BZ #17069]
30620         * posix/regcomp.c (parse_expression): Deallocate partially
30621         constructed tree before returning error.
30622         * posix/Makefile.c (tests): Add bug-regex36.
30623         (generated): Add bug-regex36.mtrace.
30624         (tests-special): Add $(objpfx)bug-regex36-mem.out
30625         (bug-regex36-ENV): New variable.
30626         ($(objpfx)bug-regex36-mem.out): New rule.
30627         * posix/bug-regex36.c: New file.
30628
30629 2014-06-19  Will Newton  <will.newton@linaro.org>
30630
30631         * malloc/malloc.c (systrim): If extra is zero then return
30632         early.
30633
30634 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30635
30636         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30637
30638 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30639
30640         * sysdeps/aarch64/strchr.S: New file.
30641
30642 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30643
30644         [BZ #17022]
30645         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30646         from arguments -2 or below.
30647         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30648         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30649
30650 2014-06-18  Andreas Schwab  <schwab@suse.de>
30651
30652         [BZ #17062]
30653         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30654         of a bracket expr not to run off the end of the string.
30655         * posix/Makefile (tests): Add tst-fnmatch3.
30656         * posix/tst-fnmatch3.c: New file.
30657
30658 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30659
30660         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30661         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30662         [$(cross-compiling) = no]: Likewise.
30663         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30664         [$(cross-compiling) = no]: Likewise.
30665
30666 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30667
30668         [BZ #17031]
30669         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30670         double, adjusted for any remainder from the high double.
30671         * math/libm-test.inc (nearbyint): Add tests.
30672         (rint): Likewise.
30673
30674 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30675
30676         * nptl/sysdeps/powerpc/Makefile: Moved ...
30677         * sysdeps/powerpc/nptl/Makefile: ... here.
30678         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30679         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30680         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30681         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30682         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30683         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30684         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30685         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30686         * nptl/sysdeps/powerpc/tls.h: Moved ...
30687         * sysdeps/powerpc/nptl/tls.h: ... here.
30688
30689 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30690
30691         [BZ #16681]
30692         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30693         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30694         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30695         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30696         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30697         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30698         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30699         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30700         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30701
30702 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30703
30704         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30705
30706 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30707
30708         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30709         defined operator.
30710
30711         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30712         $TIMEOUTFACTOR.
30713
30714 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30715
30716         [BZ #17058]
30717         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30718         non-executed part of the test.
30719
30720 2014-06-16  Andreas Schwab  <schwab@suse.de>
30721
30722         * string/bits/string2.h (strdup, strndup): Update feature guard.
30723
30724 2014-06-14  David S. Miller  <davem@davemloft.net>
30725
30726         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30727
30728 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30729
30730         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30731         that was previously under [RESET_PID].
30732         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30733
30734         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30735         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30736         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30737         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30738         (__libc_vfork): New strong alias.
30739         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30740
30741 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30742
30743         * sysdeps/generic/elide.h: New file.
30744
30745 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30746
30747         * Makefile (installed-headers): Adjust path of pthread.h header.
30748
30749 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30750
30751         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30752         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30753         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30754         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30755
30756         * nptl/sysdeps/s390/Makefile: Moved ...
30757         * sysdeps/s390/nptl/Makefile: ... here.
30758         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30759         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30760         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30761         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30762         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30763         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30764         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30765         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30766         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30767         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30768         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30769         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30770         * nptl/sysdeps/s390/tls.h: Moved ...
30771         * sysdeps/s390/nptl/tls.h: ... here.
30772
30773         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30774         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30775
30776 2014-06-13  David S. Miller  <davem@davemloft.net>
30777
30778         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30779         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30780         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30781         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30782         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30783         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30784         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30785         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30786         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30787         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30788         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30789         Remove RESET_PID cpp guards.
30790         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30791         Remove RESET_PID cpp guards.
30792         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30793
30794 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30795
30796         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30797         __sp to uintptr_t.
30798
30799 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30800
30801         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30802         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30803         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30804         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30805         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30806         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30807         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30808         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30809         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30810         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30811         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30812         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30813         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30814         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30815         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30816         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30817         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30818         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30819         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30820         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30821
30822         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30823         (pthread_rwlock_rdlock): Add elision.
30824         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30825         (pthread_rwlock_wrlock): Add elision.
30826         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30827         (pthread_rwlock_trywrlock): Add elision.
30828         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30829         (pthread_rwlock_tryrdlock): Add elision.
30830         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30831         (pthread_rwlock_tryrdlock): Add elision unlock.
30832         * nptl/sysdeps/pthread/pthread.h:
30833         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30834         (PTHREAD_RWLOCK_INITIALIZER,
30835         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30836         Handle new elision field.
30837         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30838         * sysdeps/arm/nptl/bits/pthreadtypes.h
30839         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30840         * sysdeps/sh/nptl/bits/pthreadtypes.h
30841         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30842         * sysdeps/tile/nptl/bits/pthreadtypes.h
30843         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30844         * sysdeps/a/nptl/bits/pthreadtypes.h
30845         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30846         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30847         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30848         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30849         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30850         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30851         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30852         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30853         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30854         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30855         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30856         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30857         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30858         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30859         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30860         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30861         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30862         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30863         (elision_init): Set try_xbegin to zero when no RTM.
30864         * sysdeps/x86/nptl/bits/pthreadtypes.h
30865         (pthread_rwlock_t): Change __pad1 to __rwelision.
30866         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30867
30868 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30869
30870         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30871         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30872         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30873         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30874
30875 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30876
30877         [BZ #16996]
30878         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30879         that the cached result has been set before returning it.
30880
30881 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30882
30883         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30884         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30885         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30886         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30887         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30888         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30889
30890         * nptl/sysdeps/sparc/Makefile: Moved ...
30891         * sysdeps/sparc/nptl/Makefile: ... here.
30892         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30893         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30894         * nptl/sysdeps/sparc/tls.h: Moved ...
30895         * sysdeps/sparc/nptl/tls.h: ... here.
30896         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30897         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30898         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30899         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30900         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30901         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30902         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30903         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30904         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30905         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30906         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30907         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30908         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30909         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30910         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30911         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30912         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30913         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30914         Update #include.
30915         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30916         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30917         Update #include.
30918         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30919         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30920         Update #include.
30921         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30922         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30923         Update #include.
30924
30925         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30926
30927         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30928         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30929
30930         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30931         (struct list_links): Type removed.
30932         (struct thread_node, struct timer_node): Replace struct list_links
30933         with struct list_head.
30934         (list_unlink_ip): Likewise.
30935         * sysdeps/pthread/timer_routines.c
30936         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30937         (list_append, list_insbefore): Likewise.
30938         (list_init): Function removed.
30939         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30940         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30941         * sysdeps/pthread/Makefile: ... here, new file.
30942
30943         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30944         * sysdeps/nptl/Implies: ... here.
30945         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30946         * nptl/sysdeps/pthread/list.h: Moved ...
30947         * include/list.h: ... here.
30948         * nptl/sysdeps/pthread/createthread.c: Moved ...
30949         * nptl/createthread.c: ... here.
30950         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30951         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30952         * nptl/pt-longjmp.c: ... here.
30953         * nptl/sysdeps/pthread/Makefile: Moved ...
30954         * sysdeps/nptl/Makefile: ... here.
30955         * nptl/sysdeps/pthread/Subdirs: Moved ...
30956         * sysdeps/nptl/Subdirs: ... here.
30957         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30958         * sysdeps/nptl/aio_misc.h: ... here.
30959         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30960         * sysdeps/nptl/bits/libc-lock.h: ... here.
30961         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30962         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30963         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30964         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30965         * nptl/sysdeps/pthread/configure: Moved ...
30966         * sysdeps/nptl/configure: ... here.
30967         * nptl/sysdeps/pthread/configure.ac: Moved ...
30968         * sysdeps/nptl/configure.ac: ... here.
30969         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30970         * sysdeps/nptl/gai_misc.h: ... here.
30971         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30972         * sysdeps/nptl/librt-cancellation.c: ... here.
30973         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30974         * sysdeps/nptl/malloc-machine.h: ... here.
30975         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30976         * sysdeps/nptl/pthread-functions.h: ... here.
30977         * nptl/sysdeps/pthread/pthread.h: Moved ...
30978         * sysdeps/nptl/pthread.h: ... here.
30979         * nptl/sysdeps/pthread/setxid.h: Moved ...
30980         * sysdeps/nptl/setxid.h: ... here.
30981         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30982         * sysdeps/nptl/sigfillset.c: ... here.
30983         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30984         * sysdeps/nptl/tcb-offsets.h: ... here.
30985         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30986         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30987         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30988         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30989         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30990         * sysdeps/pthread/allocalim.h: ... here.
30991         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30992         * sysdeps/pthread/bits/sigthread.h: ... here.
30993         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30994         * sysdeps/pthread/flockfile.c: ... here.
30995         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30996         * sysdeps/pthread/ftrylockfile.c: ... here.
30997         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30998         * sysdeps/pthread/funlockfile.c: ... here.
30999         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31000         * sysdeps/pthread/posix-timer.h: ... here.
31001         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31002         * sysdeps/pthread/timer_create.c: ... here.
31003         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31004         * sysdeps/pthread/timer_delete.c: ... here.
31005         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31006         * sysdeps/pthread/timer_getoverr.c: ... here.
31007         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31008         * sysdeps/pthread/timer_gettime.c: ... here.
31009         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31010         * sysdeps/pthread/timer_routines.c: ... here.
31011         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31012         * sysdeps/pthread/timer_settime.c: ... here.
31013         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31014         * sysdeps/pthread/tst-timer.c: ... here.
31015         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31016         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31017
31018         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31019         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31020
31021         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31022         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31023         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31024         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31025         Update #include target.
31026         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31027         * sysdeps/i386/i686/nptl/Makefile: ... here.
31028         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31029         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31030         Update #include target.
31031         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31032         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31033         * nptl/sysdeps/i386/Makefile: Moved ...
31034         * sysdeps/i386/nptl/Makefile: ... here.
31035         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31036         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31037         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31038         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31039         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31040         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31041         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31042         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31043         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31044         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31045         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31046         * nptl/sysdeps/i386/tls.h: Moved ...
31047         * sysdeps/i386/nptl/tls.h: ... here.
31048
31049         * sysdeps/sh/Makefile [$(subdir) = csu]
31050         (gen-as-const-headers): Add tcb-offsets.sym.
31051         * nptl/sysdeps/sh/Makefile: File removed.
31052         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31053         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31054         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31055         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31056         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31057         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31058         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31059         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31060         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31061         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31062         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31063         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31064         * nptl/sysdeps/sh/tls.h: Moved ...
31065         * sysdeps/sh/nptl/tls.h: ... here.
31066         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31067         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31068         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31069         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31070         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31071         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31072         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31073         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31074         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31075         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31076         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31077         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31078         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31079         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31080         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31081         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31082         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31083         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31084         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31085         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31086         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31087         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31088         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31089         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31090         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31091         Moved ...
31092         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31093         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31094         Moved ...
31095         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31096         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31097         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31098         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31099         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31100         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31101         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31102         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31103         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31104         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31105         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31106         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31107         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31108         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31109         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31110         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31111         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31112         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31113         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31114
31115 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31116
31117         * posix/spawn_faction_addopen.c: Include string.h.
31118
31119 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31120
31121         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31122         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31123         * nptl/sysdeps/x86_64/Makefile: Moved ...
31124         * sysdeps/x86_64/nptl/Makefile: ... here.
31125         * nptl/sysdeps/x86_64/configure: Moved ...
31126         * sysdeps/x86_64/nptl/configure: ... here.
31127         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31128         * sysdeps/x86_64/nptl/configure.ac: ... here.
31129         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31130         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31131         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31132         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31133         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31134         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31135         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31136         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31137         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31138         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31139         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31140         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31141         * nptl/sysdeps/x86_64/tls.h: Moved ...
31142         * sysdeps/x86_64/nptl/tls.h: ... here.
31143         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31144         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31145         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31146         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31147
31148         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31149
31150 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31151
31152         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31153
31154 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31155
31156         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31157         type.
31158         [POSIX] (off_t): Likewise.
31159         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31160         [POSIX] (S_ISBLK): Require macro.
31161         [POSIX] (S_ISCHR): Likewise.
31162         [POSIX] (S_ISDIR): Likewise.
31163         [POSIX] (S_ISFIFO): Likewise.
31164         [POSIX] (S_ISREG): Likewise.
31165         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31166         optional-macro.
31167         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31168         type.
31169         [POSIX] (time_t): Likewise.
31170         [POSIX] (timer_t): Likewise.
31171
31172 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31173
31174         [BZ #17048]
31175         * posix/spawn_int.h (struct __spawn_action): Make the path string
31176         non-const to support deallocation.
31177         * posix/spawn_faction_addopen.c
31178         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31179         * posix/spawn_faction_destroy.c
31180         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31181         path in all spawn_do_open actions.
31182         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31183         posix_spawn_file_actions_addopen.
31184
31185 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31186
31187         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31188         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31189         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31190         conditional code always true.
31191         (__libc_vfork): New alias.
31192
31193 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31194
31195         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31196         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31197
31198         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31199
31200         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31201         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31202
31203         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31204         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31205
31206         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31207         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31208
31209 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31210
31211         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31212         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31213         multiarch strcmp for PPC64.
31214         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31215         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31216         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31217         multiarch optimizations.
31218         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31219         (__libc_ifunc_impl_list): Likewise.
31220
31221 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31222
31223         * benchtests/scripts/validate_benchout.py: New script.
31224         * benchtests/Makefile (bench-func): Call it.
31225         * benchtests/scripts/benchout.schema.json: New file.
31226
31227 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31228
31229         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31230         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31231         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31232         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31233         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31234         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31235         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31236         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31237         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31238         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31239         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31240         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31241         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31242         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31243         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31244         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31245         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31246         Moved ...
31247         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31248         ... here.
31249         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31250         Moved ...
31251         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31252         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31253         Moved ...
31254         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31255         ... here.
31256         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31257         Moved ...
31258         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31259         ... here.
31260         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31261         Moved ...
31262         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31263         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31264         Moved ...
31265         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31266         ... here.
31267         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31268         Moved ...
31269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31270         ... here.
31271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31272         Moved ...
31273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31275         Moved ...
31276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31277         ... here.
31278         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31279         Moved ...
31280         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31281         ... here.
31282         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31283         Moved ...
31284         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31285         ... here.
31286         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31287         Moved ...
31288         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31289         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31290         Moved ...
31291         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31292         ... here.
31293         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31294         Moved ...
31295         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31296         ... here.
31297         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31298         Moved ...
31299         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31300         ... here.
31301         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31302         Moved ...
31303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31304         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31305         Moved ...
31306         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31307         ... here.
31308         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31309         Moved ...
31310         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31311         ... here.
31312         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31313         Moved ...
31314         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31315         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31316         Moved ...
31317         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31318         ... here.
31319         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31320         Moved ...
31321         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31322         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31323         Moved ...
31324         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31325         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31326         Moved ...
31327         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31328         ... here.
31329         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31330         Moved ...
31331         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31332         ... here.
31333         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31334         Moved ...
31335         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31336         ... here.
31337         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31338         Moved ...
31339         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31340         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31341         Moved ...
31342         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31343         ... here.
31344         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31345         Moved ...
31346         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31347         ... here.
31348         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31349         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31350         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31351         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31352         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31353         Moved ...
31354         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31355         ... here.
31356         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31357         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31358         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31359         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31360         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31361         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31362         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31363         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31364         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31365         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31366         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31367         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31368         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31369         Moved ...
31370         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31371         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31372         Moved ...
31373         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31374         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31375         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31376         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31377         Moved ...
31378         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31379         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31380         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31381         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31382         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31383         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31384         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31385
31386 2014-06-10  Wilco  <wdijkstr@arm.com>
31387
31388         * math/test-fenv-return.c: New file.
31389         * math/Makefile: Add new test test-fenv-return.
31390
31391 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31392
31393         [BZ #17042]
31394         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31395         when x - 1 is zero.
31396         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31397         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31398         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31399         0.0L for an argument of 1.0L.
31400         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31401         Likewise.
31402         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31403         value when x - 1 is zero.
31404         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31405         * sysdeps/i386/fpu/libm-test-ulps: Update.
31406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31407
31408 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31409
31410         [BZ #15119]
31411         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31412
31413 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31414
31415         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31416         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31417
31418 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31419
31420         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31421         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31422
31423         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31424         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31425
31426         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31427         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31428
31429         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31430         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31431
31432         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31433         if not already defined.
31434         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31435         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31436         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31437         (TLS_INIT_TP): Use it.
31438         (TLS_DEFINE_INIT_TP): New macro.
31439         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31440
31441 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31442
31443         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31444         constant.
31445         [POSIX] (IXANY): Likewise.
31446         [POSIX] (OLCUC): Likewise.
31447         [POSIX || POSIX2008] (CBAUD): Do not allow.
31448         [POSIX || POSIX2008] (DEFECHO): Likewise.
31449         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31450         [POSIX || POSIX2008] (ECHOKE): Likewise.
31451         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31452         [POSIX || POSIX2008] (EXTA): Likewise.
31453         [POSIX || POSIX2008] (EXTB): Likewise.
31454         [POSIX || POSIX2008] (FLUSHO): Likewise.
31455         [POSIX || POSIX2008] (LOBLK): Likewise.
31456         [POSIX || POSIX2008] (PENDIN): Likewise.
31457         [POSIX || POSIX2008] (SWTCH): Likewise.
31458         [POSIX || POSIX2008] (VDISCARD): Likewise.
31459         [POSIX || POSIX2008] (VDSUSP): Likewise.
31460         [POSIX || POSIX2008] (VLNEXT): Likewise.
31461         [POSIX || POSIX2008] (VREPRINT): Likewise.
31462         [POSIX || POSIX2008] (VSTATUS): Likewise.
31463         [POSIX || POSIX2008] (VWERASE): Likewise.
31464         (B*): Change to B[0123456789]*.
31465         * conform/data/time.h-data [POSIX || UNIX98]
31466         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31467         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31468         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31469         [POSIX] (tm_*): Do not allow.
31470
31471 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31472
31473         * Makefile (install): Don't set LANGUAGE.
31474         * Makefile.in (install): Likewise.
31475         * assert/Makefile (test-assert-ENV): Remove variable.
31476         (test-assert-perr-ENV): Likewise.
31477         * elf/Makefile (neededtest4-ENV): Likewise.
31478         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31479         [$(cross-compiling) = no]: Don't set LANGUAGE.
31480         * io/ftwtest-sh (LANG): Remove variable.
31481         * libio/Makefile (tst-widetext-ENV): Likewise.
31482         * manual/install.texi (Running make install): Don't refer to
31483         environment settings for make install.
31484         * INSTALL: Regenerated.
31485         * nptl/tst-tls6.sh: Don't set LANG.
31486         * posix/globtest.sh (LANG): Remove variable.
31487         * string/Makefile (tester-ENV): Likewise.
31488         (inl-tester-ENV): Likewise.
31489         (noinl-tester-ENV): Likewise.
31490         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31491         [$(cross-compiling) = no]: Don't set LANGUAGE.
31492         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31493         without explicit environment settings.
31494
31495 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31496
31497         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31498         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31499         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31500         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31501
31502 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31503
31504         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31505         other files in the crypt directory.
31506         * crypt/crypt.c: Remove duplicate includes.
31507         * crypt/crypt-entry.c: Likewise.
31508         * crypt/crypt_util.c: Likewise.
31509
31510 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31511
31512         * Makeconfig (run-program-env): New variable.
31513         (run-program-prefix-before-env): Likewise.
31514         (run-program-prefix-after-env): Likewise.
31515         (run-program-prefix): Define in terms of new variables.
31516         (built-program-cmd-before-env): New variable.
31517         (built-program-cmd-after-env): Likewise.
31518         (built-program-cmd): Define in terms of new variables.
31519         (test-program-prefix-before-env): New variable.
31520         (test-program-prefix-after-env): Likewise.
31521         (test-program-prefix): Define in terms of new variables.
31522         (test-program-cmd-before-env): New variable.
31523         (test-program-cmd-after-env): Likewise.
31524         (test-program-cmd): Define in terms of new variables.
31525         * Rules (make-test-out): Use $(run-program-env).
31526         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31527         (help): Do not mention environment variables.  Mention
31528         --timeoutfactor option.
31529         (timeoutfactor): New variable.
31530         (blacklist_exports): Remove function.
31531         (exports): Remove variable.
31532         (command): Do not include ${exports}.
31533         * manual/install.texi (Configuring and compiling): Do not mention
31534         test wrappers preserving environment variables.  Mention that last
31535         assignment to a variable must take precedence.
31536         * INSTALL: Regenerated.
31537         * benchtests/Makefile (run-bench): Use $(run-program-env).
31538         * catgets/Makefile ($(objpfx)test1.cat): Use
31539         $(built-program-cmd-before-env), $(run-program-env) and
31540         $(built-program-cmd-after-env).
31541         ($(objpfx)test2.cat): Do not specify environment variables
31542         explicitly.
31543         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31544         $(run-program-env) and $(built-program-cmd-after-env).
31545         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31546         $(run-program-env) and $(test-program-cmd-after-env).
31547         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31548         explicitly.
31549         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31550         run_program_env and test_program_cmd_after_env arguments.
31551         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31552         * elf/tst-pathopt.sh: Use run_program_env argument.
31553         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31554         $(test-wrapper-env) and $(run-program-env).
31555         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31556         run_program_env arguments.
31557         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31558         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31559         $(test-program-prefix-before-env), $(run-program-env) and
31560         $(test-program-prefix-after-env).
31561         ($(objpfx)tst-gettext2.out): Likewise.
31562         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31563         run_program_env and test_program_prefix_after_env arguments.
31564         * intl/tst-gettext2.sh: Likewise.
31565         * intl/tst-gettext4.sh: Do not set environment variables
31566         explicitly.
31567         * intl/tst-gettext6.sh: Likewise.
31568         * intl/tst-translit.sh: Likewise.
31569         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31570         $(test-program-prefix-before-env), $(run-program-env) and
31571         $(test-program-prefix-after-env).
31572         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31573         run_program_env and test_program_prefix_after_env arguments.
31574         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31575         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31576         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31577         explicitly with each use of ${test_wrapper_env}.
31578         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31579         $(test-program-prefix-before-env), $(run-program-env) and
31580         $(test-program-prefix-after-env).
31581         * posix/tst-getconf.sh: Do not set environment variables
31582         explicitly.
31583         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31584         run_program_env and test_program_prefix_after_env arguments.
31585         * stdio-common/tst-printf.sh: Do not set environment variables
31586         explicitly.
31587         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31588         $(test-program-prefix-before-env), $(run-program-env) and
31589         $(test-program-prefix-after-env).
31590         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31591         run_program_env and test_program_prefix_after_env arguments.
31592         Split $test calls into $test_pre and $test.
31593         * timezone/Makefile (build-testdata): Use
31594         $(built-program-cmd-before-env), $(run-program-env) and
31595         $(built-program-cmd-after-env).
31596
31597 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31598
31599         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31600         strlen for non SHARED builds.
31601
31602 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31603
31604         * nptl/allocatestack.c (check_list): Inlined function...
31605         (__reclaim_stacks): ... here.
31606
31607 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31608
31609         [BZ #15698]
31610         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31611         memory overrun.
31612
31613 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31614
31615         * Rules (make-test-out): Include
31616         LOCPATH=$(common-objpfx)localedata in default environment.
31617         * debug/Makefile (tst-chk1-ENV): Remove variable.
31618         (tst-chk2-ENV): Likewise.
31619         (tst-chk3-ENV): Likewise.
31620         (tst-chk4-ENV): Likewise.
31621         (tst-chk5-ENV): Likewise.
31622         (tst-chk6-ENV): Likewise.
31623         (tst-lfschk1-ENV): Likewise.
31624         (tst-lfschk2-ENV): Likewise.
31625         (tst-lfschk3-ENV): Likewise.
31626         (tst-lfschk4-ENV): Likewise.
31627         (tst-lfschk5-ENV): Likewise.
31628         (tst-lfschk6-ENV): Likewise.
31629         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31630         (tst-iconv7-ENV): Likewise.
31631         * intl/Makefile (LOCPATH-ENV): Likewise.
31632         (tst-codeset-ENV): Likewise.
31633         (tst-gettext3-ENV): Likewise.
31634         (tst-gettext5-ENV): Likewise.
31635         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31636         (tst-fopenloc-ENV): Likewise.
31637         (tst-fgetws-ENV): Remove variable.
31638         (tst-ungetwc1-ENV): Likewise.
31639         (tst-ungetwc2-ENV): Likewise.
31640         (bug-ungetwc2-ENV): Likewise.
31641         (tst-swscanf-ENV): Likewise.
31642         (bug-ftell-ENV): Likewise.
31643         (tst-fgetwc-ENV): Likewise.
31644         (tst-fseek-ENV): Likewise.
31645         (tst-ftell-partial-wide-ENV): Likewise.
31646         (tst-ftell-active-handler-ENV): Likewise.
31647         (tst-ftell-append-ENV): Likewise.
31648         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31649         (tst-regexloc-ENV): Likewise.
31650         (bug-regex1-ENV): Likewise.
31651         (tst-regex-ENV): Likewise.
31652         (tst-regex2-ENV): Likewise.
31653         (bug-regex5-ENV): Likewise.
31654         (bug-regex6-ENV): Likewise.
31655         (bug-regex17-ENV): Likewise.
31656         (bug-regex18-ENV): Likewise.
31657         (bug-regex19-ENV): Likewise.
31658         (bug-regex20-ENV): Likewise.
31659         (bug-regex22-ENV): Likewise.
31660         (bug-regex23-ENV): Likewise.
31661         (bug-regex25-ENV): Likewise.
31662         (bug-regex26-ENV): Likewise.
31663         (bug-regex30-ENV): Likewise.
31664         (bug-regex32-ENV): Likewise.
31665         (bug-regex33-ENV): Likewise.
31666         (bug-regex34-ENV): Likewise.
31667         (bug-regex35-ENV): Likewise.
31668         (tst-rxspencer-ENV): Likewise.
31669         (tst-rxspencer-no-utf8-ENV): Likewise.
31670         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31671         (tst-sscanf-ENV): Likewise.
31672         (tst-swprintf-ENV): Likewise.
31673         (tst-swscanf-ENV): Likewise.
31674         (test-vfprintf-ENV): Likewise.
31675         (scanf13-ENV): Likewise.
31676         (bug14-ENV): Likewise.
31677         (tst-grouping-ENV): Likewise.
31678         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31679         (tst-strtod3-ENV): Likewise.
31680         (tst-strtod4-ENV): Likewise.
31681         (tst-strtod5-ENV): Likewise.
31682         (testmb2-ENV): Likewise./
31683         * string/Makefile (tst-strxfrm-ENV): Likewise.
31684         (tst-strxfrm2-ENV): Likewise.
31685         (bug-strcoll1-ENV): Likewise.
31686         (test-strcasecmp-ENV): Likewise.
31687         (test-strncasecmp-ENV): Likewise.
31688         * time/Makefile (tst-strptime-ENV): Likewise.
31689         (tst-ftime_l-ENV): Likewise.
31690         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31691         (tst-mbrtowc-ENV): Likewise.
31692         (tst-wcrtomb-ENV): Likewise.
31693         (tst-mbrtowc2-ENV): Likewise.
31694         (tst-c16c32-1-ENV): Likewise.
31695         (tst-mbsnrtowcs-ENV): Likewise.
31696
31697 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31698
31699         * manual/resource.texi (How to get information about the memory
31700         subsystem?): Fix typo.
31701         Reported by Peon de la Parra Ivan <peon@keba.com>
31702
31703 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31704
31705         [BZ #16882]
31706         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31707         (pthread_spin_lock): Branch out of spin loop to proper location.
31708         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31709         (pthread_spin_lock): Likewise.
31710
31711         * nptl/tst-spin4.c: New test.
31712         * nptl/Makefile (tests): Add tst-spin4.
31713
31714 2014-06-03  Andreas Schwab  <schwab@suse.de>
31715
31716         [BZ #15946]
31717         * resolv/res_send.c (send_dg): Reload file descriptor after
31718         calling reopen.
31719
31720 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31721
31722         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31723
31724 2014-06-03  Richard Henderson  <rth@redhat.com>
31725
31726         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31727         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31728         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31729         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31730         in the SAVE_PID block.
31731         (__libc_vfork): New alias.
31732         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31733
31734         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31735         child in registers, not on the stack.  Remove RESET_PID conditionals.
31736         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31737
31738 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31739
31740         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31741
31742 2014-06-03  Wilco  <wdijkstr@arm.com>
31743
31744         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31745         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31746         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31747         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31748         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31749         Likewise.
31750
31751 2014-06-03  Wilco  <wdijkstr@arm.com>
31752
31753         * sysdeps/aarch64/fpu/math_private.h
31754         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31755         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31756         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31757         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31758         Fix declarations.
31759
31760 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31761
31762         * crypt/crypt-private.h: Include ufc-crypt.h.
31763         (__b64_from_24bit): Declare extern.
31764         * crypt/crypt_util.c(__b64_from_24bit): New function.
31765         (b64t): New static const variable.
31766         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31767         (b64t): Remove variable.
31768         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31769         * crypt/sha256-crypt.c: Include crypt-private.h.
31770         (b64t): Remove variable.
31771         (__sha256_crypt_r): Remove b64_from_24bit and replace
31772         with __b64_from_24bit.
31773         * crypt/sha512-crypt.c: Likewise.
31774
31775 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31776
31777         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31778         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31779         Label the code __libc_vfork rather than __vfork.
31780         [!NOT_IN_libc] (vfork): Define as weak alias.
31781         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31782         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31783         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31784
31785 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31786
31787         * malloc/malloc.c (malloc_info): Fix format specifier for
31788         n_mmaps.
31789
31790 2014-06-02  Wilco  <wdijkstr@arm.com>
31791
31792         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31793         FPCR write.
31794
31795 2014-06-02  Wilco  <wdijkstr@arm.com>
31796
31797         [BZ #17009]
31798         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31799         Rewrite to reduce FPCR/FPSR accesses.
31800
31801 2014-06-01  David S. Miller  <davem@davemloft.net>
31802
31803         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31804
31805 2014-05-31  David S. Miller  <davem@davemloft.net>
31806
31807         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31808         to occur in round to nearest mode when |x| >= 2.0
31809
31810 2014-05-30  Richard Henderson  <rth@twiddle.net>
31811
31812         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31813         (PSEUDO_RET_NOERRNO): Remove.
31814         (ret): Don't redefine.
31815         (ret_NOERRNO): Define in terms of ret.
31816         (ret_ERRVAL): Likewise.
31817
31818         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31819         use of PSEUDO_RET; perform the error check directly.
31820
31821 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31822
31823         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31824         with __int128_t.
31825
31826 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31827
31828         * malloc/malloc (malloc_info): Fix formatting.
31829
31830 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31831             Roland McGrath  <roland@hack.frob.com>
31832
31833         * malloc/malloc (malloc_info): Also print mmapped statistics.
31834
31835 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31836
31837         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31838         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31839
31840 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31841
31842         * malloc/malloc.c (malloc_info): Inline mi_arena.
31843
31844 2014-05-29  Richard Henderson  <rth@twiddle.net>
31845
31846         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31847         Remove comma before expanding ASM_ARGS_##nr.
31848         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31849         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31850         of ASM_ARGS_##nr.
31851         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31852         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31853         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31854         (ASM_ARGS_1): Add leading comma.
31855
31856         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31857         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31858         to __errno_location.
31859         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31860         Remove the expected plt for __errno_location.
31861
31862         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31863         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31864         call to __read_tp.
31865
31866         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31867         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31868         it and break it down.
31869         (DOCARGS_0, DOCARGS_1): Do nothing.
31870         (DOCARGS_2): Update to store into the new stack frame.
31871         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31872         (UNDOCARGS_1): Update to restore from the new stack frame.
31873         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31874         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31875
31876         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31877         (SINGLE_THREAD_P): New parameter for result regno.
31878         (PSEUDO): Update to match; use cbz instead of beq.
31879
31880         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31881         Use ENTRY to define the _nocancel entry point.  Share the syscall
31882         and syscall error check paths with the cancel path.
31883         (PSEUDO_END): New.
31884
31885         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31886         whitespace; tabs before and after asm mnemonics.
31887
31888 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31889
31890         [BZ #15132]
31891         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31892         Call fstat64 or stat64 internally, depending on arguments passed.
31893         Replace stat buffer argument with file descriptor argument.
31894         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31895         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31896         Pass fd to __internal_statvfs instead of calling fstat64.
31897         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31898         Pass fd to __internal_statvfs64 instead of calling fstat64.
31899         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31900         Pass -1 to __internal_statvfs instead of calling stat64.
31901         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31902         Pass -1 to __internal_statvfs64 instead of calling stat64.
31903
31904 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31905
31906         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31907         that was previously under [RESET_PID].
31908         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31909
31910         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31911         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31912
31913 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31914
31915         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31916
31917         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31918         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31919
31920 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31921
31922         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31923
31924 2014-05-27  Andreas Schwab  <schwab@suse.de>
31925
31926         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31927         TLS_INIT_TP macro.
31928         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31929         * elf/rtld.c (init_tls, dl_main): Likewise.
31930         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31931         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31932         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31933         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31934         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31935         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31936         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31937         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31938         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31939         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31940         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31941         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31942         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31943         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31944         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31945         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31946         * sysdeps/generic/tls.h: Update description.
31947
31948 2014-05-27  Will Newton  <will.newton@linaro.org>
31949
31950         [BZ #16990]
31951         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31952         and restore r2 rather than just restoring.
31953
31954 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31955
31956         [BZ #16724]
31957         * libio/tst-ftell-append.c: New test case.
31958         * libio/Makefile (tests): Add test case.
31959         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31960         append mode.
31961         * libio/wfileops.c (do_ftell_wide): Likewise.
31962
31963 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31964
31965         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31966
31967         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31968         ...
31969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31971         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31972         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31973         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31974         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31975         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31976         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31977         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31978         Moved ...
31979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31980         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31981         Moved ...
31982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31983         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31984         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31985         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31986         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31987         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31988         ...
31989         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31990         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31991         Moved ...
31992         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31993         here.
31994         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31995         ...
31996         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31997         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31998         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31999
32000         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32001         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32002         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32003         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32004
32005         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32006         merge into ...
32007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32008         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32009         ...
32010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32011         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32012         ...
32013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32014         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32015         Moved ...
32016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32017         here.
32018         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32019         Moved ...
32020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32021         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32022         Moved ...
32023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32024
32025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32026         conditional [RESET_PID].
32027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32028         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32029         removed.
32030         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32031         removed.
32032
32033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32034         <tcb-offsets.h>.
32035         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32036         (__libc_vfork): New strong alias.
32037         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32038         removed.
32039         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32040         Removed.
32041
32042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32043         <tcb-offsets.h>.
32044         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32045         (__libc_vfork): New strong alias.
32046         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32047         removed.
32048         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32049         removed.
32050
32051 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32052
32053         * malloc/malloc.c (mi_arena): New function.
32054         (malloc_info): Remove nested function mi_arena. Call non-nosted
32055         function mi_arena.
32056
32057 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32058
32059         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32060         by insrwi.
32061         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32062         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32063         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32064         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32065         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32066         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32067         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32068
32069 2014-05-26  Andreas Schwab  <schwab@suse.de>
32070
32071         [BZ #16984]
32072         * locale/programs/repertoire.c (repertoire_read): Add slash
32073         between I18NPATH element and file name.
32074         * locale/programs/locfile.c (locfile_read): Likewise.
32075
32076 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32077
32078         * nptl/pthread_mutexattr_settype.c
32079         (__pthread_mutexattr_settype):
32080         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32081
32082 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32083
32084         * nptl/tst-mutex5 (do_test):
32085         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32086
32087 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32088
32089         * benchtests/README: Document 'init' directive.
32090         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32091         BENCH_INIT.
32092         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32093         (parse_file): Recognize 'init' directive.
32094
32095 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32096
32097         [BZ #16796]
32098         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32099         alignment of struct pthread.
32100
32101 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32102
32103         [BZ #16878]
32104         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32105         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32106         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32107         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32108
32109 2014-05-25  Richard Henderson  <rth@twiddle.net>
32110
32111         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32112         (SINGLE_THREAD_P_PIC): Remove.
32113         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32114         (SINGLE_THREAD_P_PIC): Remove.
32115
32116         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32117         branch to syscall error ...
32118         (PSEUDO): ... here.
32119         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32120         from __local_syscall_error to .Lsyscall_error.
32121         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32122         (SYSCALL_ERROR): Update label name.
32123
32124         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32125         Do not use DOARGS/UNDOARGS.
32126         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32127         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32128         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32129         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32130         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32131
32132         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32133         block comment.
32134
32135         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32136         define if !NOT_IN_libc.
32137         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32138         define with non-default symbol versions.
32139
32140 2014-05-23  Richard Henderson  <rth@twiddle.net>
32141
32142         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32143         (vfork, __vfork): Define via compat_symbol.
32144
32145         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32146         [!HAVE_IFUNC] (vfork_compat): Remove.
32147         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32148
32149 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32150
32151         [BZ #16978]
32152         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32153         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32154         variable.
32155
32156 2014-05-23  Richard Henderson  <rth@twiddle.net>
32157
32158         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32159         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32160         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32161         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32162
32163         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32164         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32165         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32166         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32167         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32168         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32169         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32170         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32171         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32172         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32173         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32174         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32175         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32176         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32177         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32178         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32179         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32180         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32181         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32182         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32183         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32184         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32185         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32186         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32187         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32188         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32189         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32190         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32191         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32192         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32193         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32194         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32195         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32196         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32197         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32198         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32199         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32200         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32201         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32202         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32203         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32204         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32205         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32206         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32207         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32208         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32209         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32210         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32211         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32212         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32213         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32214         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32215         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32216         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32217         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32218         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32219
32220         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32221         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32222         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32223         before exiting on error.
32224         (__libc_vfork): New strong alias.
32225         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32226         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32227
32228         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32229         that was previously under [RESET_PID].
32230         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32231
32232         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32233
32234 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32235
32236         [BZ #16977]
32237         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32238         value when x - 1 is zero.
32239         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32240         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32241         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32242         0.0L for an argument of 1.0L.
32243         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32244         Likewise.
32245         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32246         value when x - 1 is zero.
32247         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32248         * sysdeps/i386/fpu/libm-test-ulps: Update.
32249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32250
32251 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32252
32253         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32254         alphasort and versionsort.
32255
32256 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32257
32258         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32259         macro.
32260         [copysignf]: Likewise.
32261
32262 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32263
32264         * crypt/md5-crypt.c: Fix formatting.
32265
32266 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32267
32268         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32269         (b64_from_24bit): New function.
32270
32271 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32272
32273         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32274         libc_hidden_builtin_def to ifunc.
32275         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32276         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32277
32278 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32279
32280         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32281         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32282
32283 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32284
32285         * nscd/Depend (linuxthreads): Remove.
32286         (nptl): Add.
32287         * resolv/Depend (linuxthreads): Remove.
32288         * rt/Depend (linuxthreads): Remove.
32289
32290         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32291         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32292         $(common-objpfx)elf/.
32293         (link-libc-before-gnulib): Likewise.
32294         (elfobjdir): Remove variable.
32295         * Makefile (install): Use $(elf-objpfx) instead of
32296         $(common-objpfx)elf/.
32297         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32298         $(elfobjdir)/.
32299         (link-libc-deps): Likewise.
32300         ($(common-objpfx)libc.so): Likewise.
32301         ($(common-objpfx)linkobj/libc.so): Likewise.
32302         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32303         instead of $(common-objpfx)elf/.
32304         (symbolic-link-list): Likewise.
32305         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32306         [$(cross-compiling) = no]: Likewise.
32307         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32308         $(elfobjdir)/.
32309         (static-gnulib-arch): Likewise.
32310         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32311         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32312         $(common-objpfx)elf/.
32313
32314 2014-05-21  Richard Henderson  <rth@redhat.com>
32315
32316         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32317         (SINGLE_THREAD_P): Use the correct width load.  Fold
32318         into the ldr offset.
32319
32320         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32321         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32322
32323 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32324
32325         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32326         (libgcc_s_resume): Use __attribute_used__.
32327         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32328         Likewise.
32329
32330 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32331
32332         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32333         optimization when used with float constants.
32334
32335         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32336
32337 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32338
32339         [BZ #16915]
32340         * locale/nl_langinfo_l.c: Make direct reference to every
32341         _nl_current_CATEGORY symbol.
32342         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32343         (tests-static): Add tst-langinfo-static.
32344         (tests-special): Add tst-langinfo-static.out.
32345         ($(objpfx)tst-langinfo.out): Redirect output.
32346         ($(objpfx)tst-langinfo-static.out): New.
32347         * localedata/tst-langinfo.sh: Send output to stdout.
32348         * localedata/tst-langinfo-static.c: New file.
32349
32350         [BZ #16965]
32351         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32352         when the shift amount is modulo the limb size.
32353
32354 2014-05-20  Richard Henderson  <rth@redhat.com>
32355
32356         [BZ #16967]
32357         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32358         Change type of sa_flags from unsigned int to int.
32359
32360         [BZ #16966]
32361         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32362
32363         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32364
32365 2014-05-20  Will Newton  <will.newton@linaro.org>
32366
32367         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32368         Test the return value of the system call in the nocancel case.
32369
32370 2014-05-20  Will Newton  <will.newton@linaro.org>
32371             Yvan Roux  <yvan.roux@linaro.org>
32372
32373         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32374         #include of asm/ptrace.h.
32375         (PTRACE_GET_THREAD_AREA): Remove #undef.
32376         (PTRACE_GETHBPREGS): Likewise.
32377         (PTRACE_SETHBPREGS): Likewise.
32378         (struct user_regs_struct): New structure.
32379         (struct user_fpsimd_struct): New structure.
32380         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32381         #include of asm/ptrace.h and second #include of sys/user.h.
32382         (PTRACE_GET_THREAD_AREA): Remove #undef.
32383         (PTRACE_GETHBPREGS): Likewise.
32384         (PTRACE_SETHBPREGS): Likewise.
32385         (ELF_NGREG): Use new struct user_regs_struct.
32386         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32387
32388 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32389
32390         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32391         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32392
32393 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32394
32395         [BZ #16958]
32396         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32397         membar to avoid block loads/stores to overlap previous stores.
32398
32399 2014-05-17  Richard Henderson  <rth@redhat.com>
32400
32401         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32402         Create the __##syscall_name##_nocancel entry point.
32403         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32404         Remove; let the sysdep-cancel.h code create it.
32405
32406 2014-05-17  David S. Miller  <davem@davemloft.net>
32407
32408         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32409         Protect with __USE_GNU.
32410         (TIOCSET_TEMPT): Likewise.
32411         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32412         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32413         these are already provided in bits/ioctl-types.h
32414
32415 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32416
32417         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32418         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32419
32420         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32421         Use wait4 regardless of [__NR_waitpid].
32422
32423 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32424
32425         PR libgcc/60166
32426         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32427         (_FP_NANSIGN_Q): Set the quiet bit.
32428
32429 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32430
32431         * benchtests/Makefile
32432         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32433         not $(common-objpfx)math/libm.so.
32434         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32435         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32436         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32437         $(common-objpfx)dlfcn/libdl.so.
32438         ($(objpfx)tst-audit8): Depend on $(libm), not
32439         $(common-objpfx)math/libm.so.
32440         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32441         not $(common-objpfx)dlfcn/libdl.so.
32442         * math/Makefile
32443         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32444         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32445         [$(build-shared) = yes].
32446         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32447         $(common-objpfx)nptl/libpthread.so.
32448         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32449         $(common-objpfx)math/libm.so$(libm.so-version) or
32450         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32451         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32452         $(common-objpfx)dlfcn/libdl.so.
32453         * setjmp/Makefile (link-libm): Remove variable.
32454         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32455         * stdio-common/Makefile (link-libm): Remove variable.
32456         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32457         * stdlib/Makefile (link-libm): Remove variable.
32458         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32459         ($(objpfx)tst-strtod-round): Likewise.
32460         ($(objpfx)tst-tininess): Likewise.
32461         ($(objpfx)tst-strtod-underflow): Likewise.
32462         ($(objpfx)tst-strtod6): Likewise.
32463         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32464         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32465         $(common-objpfx)dlfcn/libdl.so.
32466
32467 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32468
32469         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32470         BSD terminal modes definitions.
32471
32472 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32473
32474         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32475         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32476
32477         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32478         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32479         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32480         Don't do #include_next.
32481         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32482         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32483         Don't do #include_next.
32484         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32485         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32486         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32487         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32488
32489 2014-05-16  Allan McRae  <allan@archlinux.org>
32490
32491         * po/sv.po: Update Swedish translation from translation project.
32492
32493         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32494         in sed expression.
32495
32496 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32497
32498         [BZ #16917]
32499         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32500         errno if the TIOCGPTN ioctl fails with an error different than
32501         EINVAL.
32502         * login/tst-ptsname.c: New file.
32503         * login/Makefile (tests): Add tst-ptsname.
32504
32505         [BZ #16943]
32506         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32507         and prlimit64.
32508
32509 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32510
32511         [BZ #16849]
32512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32513         herrno to return EAI_AGAIN.
32514
32515 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32516
32517         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32518         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32519         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32520         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32521         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32522         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32523         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32524         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32525         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32526         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32527         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32528         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32529         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32530         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32531         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32532         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32533         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32534         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32535         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32536         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32537         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32538         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32539         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32540         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32541         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32542         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32543         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32544         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32545         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32546         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32547         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32548         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32549         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32550         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32551         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32552         Moved ...
32553         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32554         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32555         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32556         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32557         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32558         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32559         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32560         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32561         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32562         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32563         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32564         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32565         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32566         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32567         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32568         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32569         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32570         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32571         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32572         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32573         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32574         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32575         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32576         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32577         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32578         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32579         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32580         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32581         Moved ...
32582         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32583         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32584         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32585         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32586         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32587         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32588         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32589         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32590         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32591         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32592         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32593         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32594         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32595         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32596         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32597         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32598         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32599         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32600         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32602         Moved ...
32603         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32604         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32605         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32606
32607         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32608         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32609         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32610         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32611         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32612         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32613         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32614         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32615         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32616         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32617         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32618         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32619         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32620         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32621         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32622         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32623         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32624         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32625         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32626         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32627         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32628         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32629         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32630         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32631         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32632         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32633         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32634         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32635         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32636         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32637         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32638
32639         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32640         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32641
32642         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32643         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32644         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32645         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32646         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32647         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32648         Moved ...
32649         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32650         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32651         Moved ...
32652         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32653         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32654         Moved ...
32655         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32656         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32657         Moved ...
32658         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32659         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32660         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32661         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32662         Moved ...
32663         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32664         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32665         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32666         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32667         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32668         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32669         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32670         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32671         Moved ...
32672         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32673         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32674         Moved ...
32675         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32676         ... here.
32677         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32678         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32679         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32680         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32681         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32682         Moved ...
32683         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32684         ... here.
32685         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32686         Moved ...
32687         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32688         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32689         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32690         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32691         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32692         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32693         Moved ...
32694         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32695         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32696         Moved ...
32697         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32698         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32699         Moved ...
32700         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32701         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32702         Moved ...
32703         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32704         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32705         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32706         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32707         Moved ...
32708         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32709         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32710         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32711         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32712         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32713         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32714         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32715         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32716         Moved ...
32717         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32718         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32719         Moved ...
32720         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32721         ... here.
32722         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32723         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32724         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32725         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32726         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32727         Moved ...
32728         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32729         ... here.
32730         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32731         Moved ...
32732         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32733         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32734         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32735         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32736         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32737         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32738         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32739         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32740         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32741         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32742         Moved ...
32743         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32744         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32745         Moved ...
32746         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32747         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32748         Moved ...
32749         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32750         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32751         Moved ...
32752         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32753         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32754         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32755         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32756         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32757         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32758         Moved ...
32759         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32760         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32761         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32762         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32763         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32764         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32765         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32766         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32767         Moved ...
32768         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32769         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32770         Moved ...
32771         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32772         ... here.
32773         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32774         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32775         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32776         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32777         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32778         Moved ...
32779         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32780         ... here.
32781         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32782         Moved ...
32783         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32784         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32785         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32786         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32787         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32788         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32789         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32790         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32791         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32792         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32793         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32794
32795         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32796         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32797
32798         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32799         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32800
32801         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32802         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32803         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32804         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32805         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32806         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32807         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32808         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32809         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32810         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32811         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32812         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32813         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32814         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32815         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32816         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32817         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32818         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32819         Moved ...
32820         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32821         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32822         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32823         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32824         Moved ...
32825         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32826         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32827         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32828         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32829         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32830         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32831         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32832         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32833         Moved ...
32834         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32835         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32836         Moved ...
32837         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32838         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32839         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32840         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32841         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32842         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32843         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32844         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32845         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32846         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32847         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32848         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32849         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32850         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32851         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32852         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32853         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32854
32855         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32856         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32857         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32858         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32859         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32860
32861         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32862         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32863         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32864         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32865         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32866         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32867         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32868         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32869         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32870         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32871
32872         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32873         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32874
32875         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32876         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32877         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32878         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32879         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32880         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32881         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32882         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32883         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32884         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32885         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32886         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32887         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32888         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32889         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32890         Update #include.
32891         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32892         Likewise.
32893         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32894         Likewise.
32895         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32896         Likewise.
32897         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32898         Likewise.
32899         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32900         Likewise.
32901         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32902         Likewise.
32903         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32904         Likewise.
32905         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32906         Likewise.
32907         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32908         Likewise.
32909         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32910         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32911         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32912         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32913         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32914         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32915         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32916         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32917         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32918         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32919         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32920         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32921         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32922         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32923         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32924
32925         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32926         that was previously under [RESET_PID].
32927         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32928         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32929         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32930
32931         * sysdeps/i386/nptl/Implies: New file.
32932         * sysdeps/x86_64/nptl/Implies: New file.
32933         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32934         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32935         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32936         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32937
32938         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32939         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32940         (__libc_vfork): New strong alias.
32941         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32942         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32943
32944         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32945         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32946         (__libc_vfork): New strong alias.
32947         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32948         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32949
32950         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32951         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32952         (__libc_vfork): New strong alias.
32953         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32954         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32955         * nptl/pt-vfork.c: New file.
32956         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32957         (libpthread: GLIBC_2.20): New version set (empty).
32958
32959 2014-05-14  Will Newton  <will.newton@linaro.org>
32960
32961         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32962         rather than #if.
32963
32964 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32965
32966         [BZ #16564]
32967         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32968         arguments with exponent 65 or above.
32969         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32970         arguments 0x1p113L or above.
32971         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32972         to arguments 0x1p107L or above.
32973         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32974         positive arguments with exponent 65 or above.
32975         * math/auto-libm-test-in: Add more tests of log1p.
32976         * math/auto-libm-test-out: Regenerated.
32977
32978         [BZ #16928]
32979         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32980         non-finite arguments is +0.
32981         * math/s_cacosf.c (__cacosf): Likewise.
32982         * math/s_cacosl.c (__cacosl): Likewise.
32983         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32984         * sysdeps/i386/fpu/libm-test-ulps: Update.
32985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32986
32987         [BZ #16927]
32988         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32989         value.
32990         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32991         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32992         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32993         for explicit high bit of mantissa when testing for argument equal
32994         to 1.
32995         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32996         * sysdeps/i386/fpu/libm-test-ulps: Update.
32997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32998
32999         [BZ #16516]
33000         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33001         (__erf): Scale by 16 instead of 8 in potentially underflowing
33002         case.  Ensure exception if result actually underflows.
33003         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33004         (__erff): Scale by 16 instead of 8 in potentially underflowing
33005         case.  Ensure exception if result actually underflows.
33006         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33007         (efx8): Remove variable.
33008         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33009         case.  Ensure exception if result actually underflows.
33010         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33011         (efx8): Remove variable.
33012         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33013         case.  Ensure exception if result actually underflows.
33014         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33015         (efx8): Remove variable.
33016         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33017         case.  Ensure exception if result actually underflows.
33018         * math/auto-libm-test-in: Add more tests of erf.
33019         * math/auto-libm-test-out: Regenerated.
33020
33021 2014-05-14  Andreas Schwab  <schwab@suse.de>
33022
33023         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33024         Remove code conditionalized on USE___THREAD.
33025
33026         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33027         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33028         not definedness.
33029
33030 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33031
33032         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33033         Define unconditionally.
33034         (__ASSUME_O_CLOEXEC): Likewise.
33035         (__ASSUME_SOCK_CLOEXEC): Likewise.
33036         (__ASSUME_IN_NONBLOCK): Likewise.
33037         (__ASSUME_PIPE2): Likewise.
33038         (__ASSUME_EVENTFD2): Likewise.
33039         (__ASSUME_SIGNALFD4): Likewise.
33040         (__ASSUME_DUP3): Likewise.
33041         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33042         (__ASSUME_DUP3): Do not define.
33043         (__ASSUME_EVENTFD2): Likewise.
33044         (__ASSUME_IN_NONBLOCK): Likewise.
33045         (__ASSUME_O_CLOEXEC): Likewise.
33046         (__ASSUME_PIPE2): Likewise.
33047         (__ASSUME_SIGNALFD4): Likewise.
33048         (__ASSUME_SOCK_CLOEXEC): Likewise.
33049         (__ASSUME_UTIMES): Undefine.
33050         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33051         (__ASSUME_UTIMES): Do not define.
33052         (__ASSUME_O_CLOEXEC): Likewise.
33053         (__ASSUME_SOCK_CLOEXEC): Likewise.
33054         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33055         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33056         0x020621].
33057         (__ASSUME_PIPE2): Likewise.
33058         (__ASSUME_EVENTFD2): Likewise.
33059         (__ASSUME_SIGNALFD4): Likewise.
33060         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33061         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33062         Do not define.
33063         (__ASSUME_EVENTFD2): Likewise.
33064         (__ASSUME_SIGNALFD4): Likewise.
33065         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33066         (__ASSUME_32BITUIDS): Likewise.
33067         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33068         (__ASSUME_IPC64): Likewise.
33069         (__ASSUME_ST_INO_64_BIT): Likewise.
33070         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33071         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33072         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33073         (__ASSUME_UTIMES): Do not define.
33074         (__ASSUME_PSELECT): Likewise.
33075         (__ASSUME_PPOLL): Likewise.
33076         (__ASSUME_O_CLOEXEC): Likewise.
33077         (__ASSUME_SOCK_CLOEXEC): Likewise.
33078         (__ASSUME_IN_NONBLOCK): Likewise.
33079         (__ASSUME_PIPE2): Likewise.
33080         (__ASSUME_EVENTFD2): Likewise.
33081         (__ASSUME_SIGNALFD4): Likewise.
33082         (__ASSUME_DUP3): Likewise.
33083         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33084         (__ASSUME_UTIMES): Likewise.
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         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33093         (__ASSUME_UTIMES): Likewise.
33094         (__ASSUME_O_CLOEXEC): Likewise.
33095         (__ASSUME_SOCK_CLOEXEC): Likewise.
33096         (__ASSUME_IN_NONBLOCK): Likewise.
33097         (__ASSUME_PIPE2): Likewise.
33098         (__ASSUME_EVENTFD2): Likewise.
33099         (__ASSUME_SIGNALFD4): Likewise.
33100         (__ASSUME_DUP3): Likewise.
33101         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33102         Likewise.
33103         (__ASSUME_UTIMES): Likewise.
33104         (__ASSUME_EVENTFD2): Likewise.
33105         (__ASSUME_SIGNALFD4): Likewise.
33106         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33107         (__ASSUME_O_CLOEXEC): Likewise.
33108         (__ASSUME_SOCK_CLOEXEC): Likewise.
33109         (__ASSUME_IN_NONBLOCK): Likewise.
33110         (__ASSUME_PIPE2): Likewise.
33111         (__ASSUME_EVENTFD2): Likewise.
33112         (__ASSUME_SIGNALFD4): Likewise.
33113         (__ASSUME_DUP3): Likewise.
33114         (__ASSUME_UTIMES): Undefine.
33115
33116         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33117         feclearexcept.  Remove symbol versioning code.
33118         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33119         symbol versioning code.
33120         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33121         symbol versioning code.
33122         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33123         feupdateenv.  Remove symbol versioning code.
33124         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33125         fegetexceptflag.  Remove symbol versioning code.
33126         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33127         fesetexceptflag.  Remove symbol versioning code.
33128         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33129         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33130         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33131         (__posix_fadvise64_l32): Remove prototype.
33132         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33133         code.
33134
33135 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33136
33137         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33138         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33139         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33140         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33141
33142 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33143
33144         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33145         current working directory
33146
33147 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33148
33149         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33150         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33151         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33152         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33153         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33154         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33155         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33156         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33157         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33158         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33159         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33160         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33161         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33162         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33163         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33164         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33165         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33166         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33167         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33168         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33169         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33170         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33171         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33172         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33173         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33174         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33175         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33176         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33177         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33178         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33179         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33180         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33181         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33182         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33183         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33184         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33185         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33186         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33187         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33188         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33189         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33190         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33191
33192         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33193         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33194
33195         * sysdeps/unix/sysv/linux/arm/Makefile
33196         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33197         Add rt-aeabi_unwind_cpp_pr1.
33198         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33199         Add nptl-aeabi_unwind_cpp_pr1.
33200         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33201         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33202         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33203         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33204         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33205         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33206
33207         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33208         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33209         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33210         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33211
33212         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33213         Deconditionalize the code that was previously under [RESET_PID].
33214         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33215
33216         * sysdeps/generic/exit-thread.h: New file.
33217         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33218         * include/unistd.h (__exit_thread): Remove declaration.
33219         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33220         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33221         * csu/libc-start.c: Include <exit-thread.h>.
33222         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33223         * nptl/pthread_create.c: Include <exit-thread.h>.
33224         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33225         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33226         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33227         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33228         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33229         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33230         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33231         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33232         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33233         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33234         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33235         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33236         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33237         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33238         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33239         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33240         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33241
33242 2014-05-13  Andreas Schwab  <schwab@suse.de>
33243
33244         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33245
33246 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33247
33248         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33249         (__ASSUME_UTIMES): Do not condition on kernel version.
33250         (__ASSUME_PSELECT): Define unconditionally.
33251         (__ASSUME_PPOLL): Likewise.
33252         (__ASSUME_ATFCTS): Likewise.
33253         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33254         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33255         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33256         (__ASSUME_UTIMENSAT): Define unconditionally.
33257         (__ASSUME_PRIVATE_FUTEX): Likewise.
33258         (__ASSUME_FALLOCATE): Likewise.
33259         (__ASSUME_O_CLOEXEC): Likewise.
33260         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33261         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33262         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33263         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33264         (__ASSUME_IN_NONBLOCK): Likewise.
33265         (__ASSUME_PIPE2): Likewise.
33266         (__ASSUME_EVENTFD2): Likewise.
33267         (__ASSUME_SIGNALFD4): Likewise.
33268         (__ASSUME_DUP3): Likewise.
33269         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33270         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33271         (__ASSUME_AT_RANDOM): Likewise.
33272         (__ASSUME_PREADV): Likewise.
33273         (__ASSUME_PWRITEV): Likewise.
33274         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33275         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33276         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33277         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33278         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33279         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33280         (__ASSUME_O_CLOEXEC): Define unconditionally.
33281         (__ASSUME_PSELECT): Do not undefine conditionally.
33282         (__ASSUME_PPOLL): Likewise.
33283         (__ASSUME_ATFCTS): Likewise.
33284         (__ASSUME_SET_ROBUST_LIST): Likewise.
33285         (__ASSUME_UTIMENSAT): Likewise.
33286         (__ASSUME_FDATASYNC): Define unconditionally.
33287         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33288         (__ASSUME_SIGFRAME_V2): Likewise.
33289         )__ASSUME_EVENTFD2): Likewise.
33290         (__ASSUME_SIGNALFD4): Likewise.
33291         (__ASSUME_PSELECT): Do not undefine conditionally.
33292         (__ASSUME_PPOLL): Likewise.
33293         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33294         (__ASSUME_PSELECT): Define unconditionally.
33295         (__ASSUME_PPOLL): Likewise.
33296         (__ASSUME_O_CLOEXEC): Likewise.
33297         (__ASSUME_SOCK_CLOEXEC): Likewise.
33298         (__ASSUME_IN_NONBLOCK): Likewise.
33299         (__ASSUME_PIPE2): Likewise.
33300         (__ASSUME_EVENTFD2): Likewise.
33301         (__ASSUME_SIGNALFD4): Likewise.
33302         (__ASSUME_DUP3): Likewise.
33303         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33304         (__ASSUME_O_CLOEXEC): Likewise.
33305         (__ASSUME_SOCK_CLOEXEC): Likewise.
33306         (__ASSUME_IN_NONBLOCK): Likewise.
33307         (__ASSUME_PIPE2): Likewise.
33308         (__ASSUME_EVENTFD2): Likewise.
33309         (__ASSUME_SIGNALFD4): Likewise.
33310         (__ASSUME_DUP3): Likewise.
33311         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33312         (__ASSUME_EVENTFD2): Likewise.
33313         (__ASSUME_SIGNALFD4): Likewise.
33314         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33315
33316 2014-05-12  Andreas Schwab  <schwab@suse.de>
33317
33318         [BZ #16932]
33319         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33320         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33321         than maximum RPC packet size.
33322         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33323         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33324         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33325         (_nss_nis_getservbyport_r): Likewise.
33326
33327 2014-05-12  Will Newton  <will.newton@linaro.org>
33328
33329         * malloc/Makefile (tests): Add tst-mallopt.
33330         * malloc/tst-mallopt.c: New file.
33331
33332 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33333
33334         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33335         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33336
33337 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33338
33339         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33340         (tst-tlsmod6.so): Likewise.
33341
33342 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33343
33344         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33345
33346 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33347
33348         [BZ #16064]
33349         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33350         and <dl-procinfo.h>.
33351         (__fegetenv): Save SSE state in envp->__eip if supported.
33352         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33353         envp->__eip if supported.
33354         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33355         and <dl-procinfo.h>.
33356         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33357         __data_offset and __data_selector in environment to 0.  Set SSE
33358         state if supported.
33359         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33360         test-fenv-sse.
33361         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33362         -mfpmath=sse.
33363         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33364
33365 2014-05-09  Will Newton  <will.newton@linaro.org>
33366
33367         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33368         and libc_relro_required for ARM.
33369         * sysdeps/arm/preconfigure: Regenerate.
33370
33371 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33372             Stefan Liebler  <stli@linux.vnet.ibm.com>
33373
33374         * config.make.in (enable-lock-elision): New Makefile variable.
33375         * configure.ac: Likewise.
33376         * configure: Regenerate.
33377         * sysdeps/s390/configure.ac:
33378         Add check for gcc transactions support.
33379         * sysdeps/s390/configure: Regenerate.
33380         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33381         Build elision files if enabled.
33382         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33383         Add lock elision support for s390.
33384         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33385         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33386         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33387         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33388         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33389         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33390         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33391         Likewise.
33392         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33393         Likewise.
33394         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33395         Likewise.
33396         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33397         Likewise.
33398         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33399         (__lll_timedlock_elision, __lll_lock_elision)
33400         (__lll_unlock_elision, __lll_trylock_elision)
33401         (lll_timedlock_elision, lll_lock_elision)
33402         (lll_unlock_elision, lll_trylock_elision): Add.
33403         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33404         (pthread_mutex_t): Add lock elision support for s390.
33405
33406 2014-05-14  Wilco  <wdijkstr@arm.com>
33407
33408         * sysdeps/arm/fclrexcpt.c: Cleanup.
33409         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33410         * sysdeps/arm/feenablxcpt.c: Cleanup.
33411         * sysdeps/arm/fegetenv.c: Cleanup.
33412         * sysdeps/arm/fegetexcept.c: Cleanup.
33413         * sysdeps/arm/fegetround.c: Cleanup.
33414         * sysdeps/arm/feholdexcpt.c: Cleanup.
33415         * sysdeps/arm/fesetenv.c: Cleanup.
33416         * sysdeps/arm/fesetround.c: Cleanup.
33417         * sysdeps/arm/feupdateenv.c: Cleanup.
33418         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33419         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33420         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33421         * sysdeps/arm/ftestexcept.c: Cleanup.
33422         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33423         * sysdeps/arm/setfpucw.c: Cleanup.
33424
33425 2014-05-09  Will Newton  <will.newton@linaro.org>
33426
33427         * sysdeps/arm/armv7/strcmp.S: New file.
33428         * NEWS: Mention addition of ARMv7 optimized strcmp.
33429
33430 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33431
33432         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33433         look for %.ac rather than %.in.
33434
33435         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33436         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33437         * sysdeps/mach/hurd/configure: Regenerated.
33438         * sysdeps/unix/sysv/linux/configure: Regenerated.
33439
33440         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33441
33442 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33443
33444         [BZ# 16922]
33445         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33446         (LONG_SUB): Ditto.
33447         (PTR_SUB): Ditto.
33448
33449 2014-05-07  Andreas Schwab  <schwab@suse.de>
33450
33451         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33452         when skipping over non-matching result from nscd.
33453
33454 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33455
33456         [BZ #16876]
33457         * nptl/sockperf.c (client): Check socket return value.
33458
33459         [BZ #16877]
33460         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33461         nscd security class.
33462
33463 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33464
33465         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33466         * sysdeps/arm/unwind.h: ... here.
33467
33468 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33469
33470         [BZ# 16916]
33471         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33472         Define.
33473
33474 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33475
33476         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33477         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33478         multiarch strncpy for PPC64.
33479         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33480         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33481         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33482         multiarch optimizations.
33483         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33484         (__libc_ifunc_impl_list): Likewise.
33485         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33486         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33487         multiarch stpncpy for PPC64.
33488         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33489         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33490
33491 2014-05-06  Andreas Schwab  <schwab@suse.de>
33492
33493         [BZ #16912]
33494         * gmon/mcount.c (_MCOUNT_DECL): Use
33495         atomic_compare_and_exchange_bool_acq instead of
33496         catomic_compare_and_exchange_bool_acq.
33497
33498 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33499
33500         * elf/Makefile (others, install-bin): Remove pldd.
33501         (pldd-modules): Variable removed.
33502         ($(objpfx)pldd): Target removed.
33503         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33504         (others, install-bin): Append pldd here.
33505         ($(objpfx)pldd): New target.
33506
33507         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33508         to 0, so the first #if test emitted later doesn't see it undefined.
33509         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33510         * sysdeps/gnu/errlist.c: Regenerated.
33511
33512 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33513
33514         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33515         [libc_hidden_builtin_def]: Define to empty value.
33516         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33517         [libc_hidden_builtin_def]: Likewise.
33518         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33519         [libc_hidden_builtin_def]: Likewise.
33520         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33521         [libc_hidden_builtin_def]: Likewise.
33522         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33523         __redirect_memcpy and define ifunc as default hidden symbol.
33524         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33525         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33526
33527 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33528
33529         * locale/iso-4217.def: Reintroduce XDR currency.
33530
33531 2014-05-04  Allan McRae  <allan@archlinux.org>
33532
33533         * po/eo.po: Update Esperanto translation from translation project.
33534
33535 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33536
33537         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33538         and FEATURE_INDEX_MAX to 1.
33539         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33540
33541 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33542
33543         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33544         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33545         * iconvdata/big5.c (ONE_DIRECTION): Define.
33546         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33547         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33548         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33549         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33550         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33551         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33552         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33553         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33554         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33555         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33556         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33557         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33558         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33559         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33560         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33561         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33562         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33563         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33564         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33565         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33566         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33567         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33568         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33569         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33570         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33571         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33572         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33573         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33574         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33575         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33576         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33577         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33578         * iconvdata/johab.c (ONE_DIRECTION): Define.
33579         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33580         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33581         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33582         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33583         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33584         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33585         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33586         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33587         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33588         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33589
33590 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33591
33592         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33593         (_IO_JUMPS_OFFSET): Define to 0.
33594
33595         * nptl/sysdeps/pthread/bits/libc-lock.h
33596         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33597         (__libc_lock_define_initialized_recursive): Always define using
33598         initializer.  Modern compilers treat uninitialized (implicit zero) and
33599         explicit zero initializers the same (i.e. put the datum in bss).
33600
33601 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33602
33603         * nscd/nscd-client.h: Include <string.h>.
33604
33605 2014-05-01  David S. Miller  <davem@davemloft.net>
33606
33607         [BZ #16885]
33608         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33609         multiple zero bytes exist at the end of a string.
33610         Reported by Aurelien Jarno <aurelien@aurel32.net>
33611
33612         * string/test-strcmp.c (check): Add explicit test for situations where
33613         there are multiple zero bytes after the first.
33614
33615 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33616
33617         [BZ #16890]
33618         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33619         when compiling wprintf.
33620         * stdio-common/tstdiomisc.c (t3): New function.
33621         (main): Call it.
33622
33623 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33624
33625         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33626         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33627         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33628         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33629
33630 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33631
33632         * stdlib/longlong.h: Updated from GCC.
33633
33634 2014-05-01  Will Newton  <will.newton@linaro.org>
33635             Bernard Ogden  <bernie.ogden@linaro.org>
33636
33637         * NEWS: Update fixed bug list.
33638
33639         [BZ #15119]
33640         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33641
33642 2014-04-30  David S. Miller  <davem@davemloft.net>
33643
33644         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33645         (libc_feholdexcept_setround_sparc_ctx): New function.
33646         (libc_fesetenv_sparc_ctx): Likewise.
33647         (libc_feupdateenv_sparc_ctx): Likewise.
33648         (libc_feholdsetround_sparc_ctx): Likewise.
33649         (libc_feholdexcept_setround_ctx): Define.
33650         (libc_feholdexcept_setroundf_ctx): Likewise.
33651         (libc_feholdexcept_setroundl_ctx): Likewise.
33652         (libc_fesetenv_ctx): Likewise.
33653         (libc_fesetenvf_ctx): Likewise.
33654         (libc_fesetenvl_ctx): Likewise.
33655         (libc_feupdateenv_ctx): Likewise.
33656         (libc_feupdateenvf_ctx): Likewise.
33657         (libc_feupdateenvl_ctx): Likewise.
33658         (libc_feresetround_ctx): Likewise.
33659         (libc_feresetroundf_ctx): Likewise.
33660         (libc_feresetroundl_ctx): Likewise.
33661         (libc_feholdsetround_ctx): Likewise.
33662         (libc_feholdsetroundf_ctx): Likewise.
33663         (libc_feholdsetroundl_ctx): Likewise.
33664
33665         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33666         with __USE_GNU instead of XOPEN cpp guards.
33667
33668         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33669         0.
33670
33671         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33672         with XOPEN cpp guards.
33673
33674 2014-04-30  Julian Brown  <julian@codesourcery.com>
33675
33676         [BZ #16888]
33677         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33678         handling.
33679
33680 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33681
33682         [BZ #9894]
33683         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33684         Change to 2.6.32.
33685         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33686         * sysdeps/unix/sysv/linux/configure: Regenerated.
33687         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33688         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33689         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33690         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33691         * README: Update reference to required Linux kernel version.
33692         * manual/install.texi (Linux): Update reference to required Linux
33693         kernel headers version.
33694         * INSTALL: Regenerated.
33695
33696         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33697         header inclusion.
33698         [POSIX] (limits.h): Likewise.
33699         [POSIX] (math.h): Likewise.
33700         [POSIX] (sys/wait.h): Likewise.
33701         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33702         function.
33703         [POSIX] (stddef.h): Do not allow header inclusion.
33704
33705 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33706
33707         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33708
33709 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33710
33711         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33712         Return immediately after lll_futex_wake.
33713
33714 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33715
33716         [BZ #16791]
33717         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33718         structure.
33719         (datahead_init_pos): Call datahead_init_common early.
33720         (datahead_init_neg): Likewise.
33721
33722         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33723         datahead_init_neg): New functions.
33724         * nscd/aicache.c (addhstaiX): Use them.
33725         * nscd/grpcache.c (cache_addgr): Likewise.
33726         * nscd/hstcache.c (cache_addhst): Likewise.
33727         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33728         * nscd/netgroupcache.c (do_notfound): Likewise.
33729         (addgetnetgrentX): Likewise.
33730         (addinnetgrX): Likewise.
33731         * nscd/pwdcache.c (cache_addpw): Likewise.
33732         * nscd/servicescache.c (cache_addserv): Likewise.
33733
33734 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33735             Atsushi Onoe  <atsushi@onoe.org>
33736
33737         [BZ #14308]
33738         [BZ #12994]
33739         [BZ #13651]
33740         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33741         one response is valid.
33742         * resolv/res_send.c (send_dg): Check for validity of other
33743         response if the current response is a referral.
33744
33745 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33746
33747         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33748
33749 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33750
33751         [BZ #16823]
33752         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33753         Always divide by positive zero when computing -Inf result.
33754         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33755         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33756
33757 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33758
33759         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33760         FPSCR if value do not change.
33761         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33762         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33763         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33764         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33765         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33766         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33767         function.
33768
33769 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33770
33771         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33772         * sysdeps/unix/sysv/linux/hppa: Move directory from
33773         ports/systeps/unix/sysv/linux/hppa.
33774         * README: Update listing for hppa-*-linux-gnu.
33775
33776 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33777
33778         [BZ #16754]
33779         * manual/stdio.texi (Hook functions): Fix types of stream hook
33780         functions.
33781         [BZ #16854]
33782         * socket/sys/socket.h: Fix typo in comment.
33783
33784 2014-04-28  Wilco  <wdijkstr@arm.com>
33785
33786         * sysdeps/arm/fenv_private.h: New file.
33787         * sysdeps/arm/math_private.h: New file.
33788         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33789
33790 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33791
33792         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33793         with __int128_t.
33794         (La_x86_64_retval): Likewise.
33795
33796 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33797
33798         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33799         fpsr if value didn't change.
33800         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33801         to fpcr if value didn't change.
33802         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33803         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33804         fpsr or fpcr if value didn't change.
33805         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33806         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33807         fpcr if value didn't change.
33808         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33809         to fpsr if value didn't change.
33810
33811 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33812
33813         * nptl/tst-sem3.c: Use test-skeleton.c
33814         (main): Rename to do_test.  Use return instead of
33815         exit.
33816         * nptl/tst-sem4.c: Use test-skeleton.c
33817         (main): Rename to do_test.
33818
33819 2014-04-22  David S. Miller  <davem@davemloft.net>
33820
33821         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33822         (struct sigaction): New struct member __glibc_reserved0, change
33823         type of sa_flags to int.
33824
33825 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33826
33827         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33828         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33829
33830 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33831
33832         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33833         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33834
33835 2014-04-22  Will Newton  <will.newton@linaro.org>
33836             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33837
33838         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33839         (__longjmp): Add longjmp and longjmp_target SystemTap
33840         probes.
33841         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33842         (__sigsetjmp): Add setjmp SystemTap probe.
33843
33844 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33845
33846         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33847         match manual order.
33848
33849 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33850
33851         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33852
33853         * sysdeps/powerpc/fpu/fenv_private.h
33854         (libc_feholdexcept_setroundl_ctx): Define to
33855         libc_feholdexcept_setround_ppc_ctx.
33856         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33857         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33858         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33859         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33860
33861 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33862
33863         * sysdeps/aarch64/math-tests.h: New file.
33864
33865 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33866
33867         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33868         New.
33869         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33870         Check and set bit_AVX2_Usable.
33871         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33872         macro.
33873         (bit_AVX2): Likewise.
33874         (index_AVX2_Usable): Likewise.
33875         (CPUID_AVX2): Likewise.
33876         (HAS_AVX2): Likewise.
33877
33878 2014-04-17  Will Newton  <will.newton@linaro.org>
33879
33880         * manual/setjmp.texi (System V contexts): Add note that
33881         calling setcontext on a context created by a call to a
33882         signal handler is undefined.  Update text to note that
33883         setcontext from a signal handler is possible but not
33884         recommended.
33885
33886         [BZ #16629]
33887         * stdlib/tst-setcontext.c: Include signal.h.
33888         (main): Check that the signal stack before and
33889         after swapcontext is the same.
33890
33891         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33892         Re-implement to restore registers in user code and avoid
33893         rt_sigreturn system call.
33894
33895 2014-04-17  Wilco  <wdijkstr@arm.com>
33896
33897         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33898         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33899         * math/test-fenv.c: Skip exception trap tests on targets which only
33900         support non-stop mode.
33901
33902 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33903             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33904
33905         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33906         (libc_feholdsetround_aarch64_ctx)
33907         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33908         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33909         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33910         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33911         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33912         (libc_feresetround_noexl_ctx): Define.
33913
33914 2014-04-16  Richard Henderson  <rth@redhat.com>
33915
33916         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33917
33918         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33919         unwind tables.
33920
33921         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33922         const from the non-libc, non-ldso copy.
33923
33924         * sysdeps/alpha/libm-test-ulps: Regenerate.
33925
33926 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33927             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33928
33929         * sysdeps/aarch64/fpu/math_private.h: New file.
33930
33931 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33932
33933         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33934
33935 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33936
33937         [BZ #16275]
33938         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33939         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33940         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33941         Intel MPX bound registers before _dl_profile_fixup.
33942         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33943         registers after _dl_profile_fixup.  Save and restore bound
33944         registers bnd0/bnd1 when calling _dl_call_pltexit.
33945         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33946         (LR_BND_OFFSET): Likewise.
33947         (LRV_BND0_OFFSET): Likewise.
33948         (LRV_BND1_OFFSET): Likewise.
33949
33950 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33951
33952         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33953         to...
33954         * sysdeps/mach/hurd/i386/tls.h: ... here.
33955         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33956         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33957         fields.
33958
33959 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33960
33961         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33962
33963 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33964
33965         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33966
33967 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33968
33969         [BZ #14770]
33970         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33971         * sysdeps/s390/configure: Regenerate.
33972
33973         [BZ #16824]
33974         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33975         Set round-to-nearest internally to reduce error accumulation.
33976
33977 2014-04-16  Alan Modra  <amodra@gmail.com>
33978
33979         [BZ #16740]
33980         [BZ #16619]
33981         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33982         * math/libm-test.inc (frexp_test_data): Add tests.
33983         * NEWS: Update fixed bug list.
33984
33985 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33986
33987         * benchtests/Makefile: Depend on libraries in build directory.
33988         (bench-math): Separate out math tests.
33989         (bench-pthread): Separate out pthread tests.
33990         (bench): Include math and pthread tests.
33991
33992 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33993
33994         [BZ #16831]
33995         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33996         _dl_debug_initialize.
33997
33998         * configure.ac: Remove SELinux header check.
33999         * configure: Regenerate.
34000         * nscd/selinux.c (perms): Array of const char* to permission names.
34001         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34002         default policy. Call string_to_security_class and string_to_av_perm to
34003         translate strings. Enforce default policy and call avs_has_perm with
34004         results of translated strings.
34005
34006 2014-04-13  David S. Miller  <davem@davemloft.net>
34007
34008         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34009
34010 2014-04-12  Allan McRae  <allan@archlinux.org>
34011
34012         [BZ #16838]
34013         * manual/string.texi (Collation Functions): Fix qsort argument
34014         order in example.
34015         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34016
34017 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34018
34019         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34020         Make the test a no-op if there are no exceptions defined.
34021
34022 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34023
34024         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34025         enable-hardcoded-path-in-tests
34026
34027 2014-04-11  Will Newton  <will.newton@linaro.org>
34028
34029         * benchtests/Makefile (extra-objs): Add json-lib.o.
34030         (bench-func): Tidy up JSON output.
34031         * benchtests/bench-skeleton.c: Include json-lib.h.
34032         (main): Use JSON library functions to do output of
34033         benchmark results.
34034         * benchtests/bench-timing-type.c (main): Output the
34035         timing type simply, leaving formatting to the user.
34036         * benchtests/json-lib.c: New file.
34037         * benchtests/json-lib.h: Likewise.
34038
34039 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34040
34041         [BZ #15215]
34042         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34043         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34044         memory barriers.  Add comments.
34045         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34046         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34047         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34048         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34049         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34050         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34051
34052 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34053
34054         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34055         * sysdeps/s390/s390-64/configure.ac: ... this ...
34056         * sysdeps/s390/configure.ac: ... to here.
34057         * sysdeps/s390/s390-32/configure: Delete file.
34058         * sysdeps/s390/s390-64/configure: Delete file.
34059         * sysdeps/s390/configure: Regenerate.
34060
34061 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34062
34063         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34064
34065 2014-04-11  Will Newton  <will.newton@linaro.org>
34066
34067         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34068         to zero if it is not defined elsewhere.  (mtrim): Test
34069         the value of MALLOC_DEBUG with #if rather than #ifdef.
34070
34071 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34072
34073         * benchtests/pthread_once-inputs: New file.
34074         * benchtests/pthread_once-source.c: New file.
34075         * benchtests/README: Update documentation.
34076
34077 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34078             H.J. Lu  <hongjiu.lu@intel.com>
34079
34080         [BZ #16275]
34081         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34082         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34083         * sysdeps/x86_64/configure: Regenerated.
34084         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34085         macro.
34086         (REGISTER_SAVE_RAX): Likewise.
34087         (REGISTER_SAVE_RCX): Likewise.
34088         (REGISTER_SAVE_RDX): Likewise.
34089         (REGISTER_SAVE_RSI): Likewise.
34090         (REGISTER_SAVE_RDI): Likewise.
34091         (REGISTER_SAVE_R8): Likewise.
34092         (REGISTER_SAVE_R9): Likewise.
34093         (REGISTER_SAVE_BND0): Likewise.
34094         (REGISTER_SAVE_BND1): Likewise.
34095         (REGISTER_SAVE_BND2): Likewise.
34096         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34097         bound registers when calling _dl_fixup.
34098
34099 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34100
34101         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34102         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34103         of its definition.
34104         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34105         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34106         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34107         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34108         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34109         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34110         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34111
34112 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34113
34114         [BZ #15514]
34115         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34116         pathconf(_PC_NAME_MAX).
34117
34118 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34119
34120         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34121         Remove macro usage.
34122         (__PTHREAD_SPINS): Move definition to ...
34123         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34124         (__PTHREAD_SPINS): ... here.
34125         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34126         (__PTHREAD_SPIN): Likewise.
34127         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34128         (__PTHREAD_SPIN): Likewise.
34129         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34130         (__PTHREAD_SPIN): Likewise.
34131         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34132         (__PTHREAD_SPIN): Likewise.
34133         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34134         (__PTHREAD_SPIN): Likewise.
34135         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34136         (__PTHREAD_SPIN): Likewise.
34137         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34138         (__PTHREAD_SPIN): Likewise.
34139         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34140         (__PTHREAD_SPIN): Likewise.
34141         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34142         (__PTHREAD_SPIN): Likewise.
34143         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34144         (__PTHREAD_SPIN): Likewise.
34145         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34146         (__PTHREAD_SPIN): Likewise.
34147         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34148         (__PTHREAD_SPIN): Likewise.
34149
34150         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34151         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34152         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34153         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34154         imply folder.
34155         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34156         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34157         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34158         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34159         correct imply path.
34160         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34161         strlen symbol for non multi-arch builds.
34162         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34163         missing hidden_def and weak_alias.
34164
34165 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34166
34167         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34168
34169 2014-04-07  Will Newton  <will.newton@linaro.org>
34170
34171         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34172         and contents.  [!_LIBC] Remove #ifndef and contents.
34173         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34174         * string/memccpy.c (__memccpy): Use ANSI prototype.
34175         * string/memfrob.c (memfrob): Likewise.
34176         * string/strcoll.c (STRCOLL): Likewise.
34177         * string/strlen.c (strlen): Likewise.
34178         * string/strtok.c (STRTOK): Likewise.
34179         * string/strcat.c: Remove unused #include of memcopy.h.
34180         (strcat): Use ANSI prototype.
34181         * string/strchr.c: Remove unused #include of memcopy.h.
34182         (strchr): Use ANSI prototype.
34183         * string/strcmp.c: Remove unused #include of memcopy.h.
34184         (strcmp): Use ANSI prototype.
34185         * string/strcpy.c: Remove unused #include of memcopy.h.
34186         (strcpy): Use ANSI prototype.
34187
34188 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34189
34190         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34191         * config.make.in (config-extra-cppflags): Set it from
34192         libc_extra_cppflags.
34193         * configure.ac (libc_extra_cflags): Make it accumulate over
34194         configure fragments.
34195         (libc_extra_cppflags): New flag.
34196         * configure. Regenerate.
34197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34198         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34199         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34201
34202         [BZ #16815]
34203         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34204         result for FE_DOWNWARD rounding mode.
34205         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34206         Likewise.
34207         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34208
34209 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34210
34211         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34212         in function argument name.
34213
34214 2014-04-03  David Svoboda  <svoboda@cert.org>
34215
34216         [BZ #5666]
34217         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34218         explicitly.
34219
34220 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34221
34222         * elf/dl-unmap-segments.h: New file.
34223         * sysdeps/generic/ldsodefs.h
34224         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34225         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34226         * elf/dl-fptr.c: Likewise.
34227         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34228         * sysdeps/aarch64/tlsdesc.c: Likewise.
34229         * sysdeps/arm/tlsdesc.c: Likewise.
34230         * sysdeps/i386/tlsdesc.c: Likewise.
34231         * sysdeps/tile/dl-runtime.c: Likewise.
34232         * sysdeps/x86_64/tlsdesc.c: Likewise.
34233         * elf/dl-load.h: New file.
34234         * elf/dl-load.c: Include it.
34235         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34236         Macros moved to dl-load.h.
34237         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34238         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34239         Use _dl_unmap_segments in place of __munmap.
34240         Break out segment-mapping loop into ...
34241         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34242
34243 2014-04-03  Will Newton  <will.newton@linaro.org>
34244
34245         * elf/dl-lookup.c (do_lookup_x): Remove comment
34246         referring to nested function and move variable
34247         declarations down to before first use.
34248
34249 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34250
34251         [BZ #16799]
34252         [BZ #16800]
34253         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34254         with 0 numerator.
34255         * math/s_catanf.c (__catanf): Likewise.
34256         * math/s_catanh.c (__catanh): Likewise.
34257         * math/s_catanhf.c (__catanhf): Likewise.
34258         * math/s_catanhl.c (__catanhl): Likewise.
34259         * math/s_catanl.c (__catanl): Likewise.
34260         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34261         by positive zero when computing -Inf result.
34262         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34263         (catanh_test): Likewise.
34264         * sysdeps/i386/fpu/libm-test-ulps: Update.
34265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34266
34267         [BZ #16789]
34268         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34269         instead of using underflowing value in computing result.
34270         * math/s_clog10.c (__clog10): Likewise.
34271         * math/s_clog10f.c (__clog10f): Likewise.
34272         * math/s_clog10l.c (__clog10l): Likewise.
34273         * math/s_clogf.c (__clogf): Likewise.
34274         * math/s_clogl.c (__clogl): Likewise.
34275         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34276         (clog10_test): Likewise.
34277         * sysdeps/i386/fpu/libm-test-ulps: Update.
34278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34279
34280 2014-04-02  Alan Modra  <amodra@gmail.com>
34281
34282         [BZ #16739]
34283         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34284         output when value is near a power of two.  Use int64_t for lx and
34285         remove casts.  Use decimal rather than hex exponent constants.
34286         Don't use long double multiplication when double will suffice.
34287         * math/libm-test.inc (nextafter_test_data): Add tests.
34288         * NEWS: Add 16739 and 16786 to bug list.
34289
34290         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34291
34292         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34293
34294 2014-04-01  Will Newton  <will.newton@linaro.org>
34295
34296         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34297         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34298
34299 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34300
34301         [BZ #13347]
34302         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34303         * nptl/tst-setuid2.c: New file.
34304         * nptl/Makefile (xtests): Add tst-setuid2.
34305
34306 2014-04-01  Alan Modra  <amodra@gmail.com>
34307
34308         [BZ #16786]
34309         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34310
34311 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34312
34313         [BZ #6803]
34314         [BZ #6804]
34315         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34316         set errno as appropriate.
34317         * math/w_scalbf.c (__scalbf): Likewise.
34318         * math/w_scalbl.c (__scalbl): Likewise.
34319         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34320         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34321         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34322         Add more NaN tests.
34323
34324         [BZ #16349]
34325         * math/w_atan2.c: Include <errno.h>.
34326         (__atan2): Set errno for result underflowing to zero.
34327         * math/w_atan2f.c: Include <errno.h>.
34328         (__atan2f): Set errno for result underflowing to zero.
34329         * math/w_atan2l.c: Include <errno.h>.
34330         (__atan2l): Set errno for result underflowing to zero.
34331         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34332         tests.
34333         * math/auto-libm-test-out: Regenerated.
34334
34335 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34336
34337         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34338         Encode instruction correctly in little endian.
34339         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34340         Likewise.
34341         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34342         Likewise.
34343         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34344         Likewise.
34345         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34346         Likewise.
34347
34348 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34349
34350         [BZ #9894]
34351         * sysdeps/unix/sysv/linux/kernel-features.h
34352         [__sparc__ && !__arch64__ && !__sparc_v9__]
34353         (__ASSUME_SET_ROBUST_LIST): Do not define.
34354         [__sparc__ && !__arch64__ && !__sparc_v9__]
34355         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34356         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34357         Likewise.
34358         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34359         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34360         (__ASSUME_REQUEUE_PI): Likewise.
34361         (__ASSUME_SET_ROBUST_LIST): Likewise.
34362         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34363         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34364         Undefine.
34365         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34366         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34367         Likewise.
34368         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34369         Likewise.
34370         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34371         Likewise.
34372         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34373         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34374         Undefine.
34375         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34376         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34377         Likewise.
34378
34379         [BZ #16648]
34380         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34381         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34382         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34383
34384 2014-03-31  Will Newton  <will.newton@linaro.org>
34385
34386         * benchtests/Makefile (bench): Add ffs and ffsll to list
34387         of tests.
34388         * benchtests/ffs-inputs: New file.
34389         * benchtests/ffsll-inputs: Likewise.
34390
34391 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34392
34393         [BZ #16770]
34394         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34395         too large before casting to int.
34396         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34397         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34398         * math/libm-test.inc (scalb_test_data): Add more tests.
34399
34400 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34401
34402         * benchtests/Makefile (DETAILED_OPT): New make option.
34403         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34404         set.
34405         * benchtests/bench-skeleton.c: Include stdbool.h.
34406         (main): Store and print timings per input.
34407         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34408         member to each argument value.
34409         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34410         (_print_arg_data): Initialize per-input timing to 0.
34411
34412         * benchtests/Makefile (timing-type): New binary.
34413         (bench-clean): Also remove bench-timing-type.
34414         (bench): New target for timing-type.
34415         (bench-func): Print output in JSON format.
34416         * benchtests/bench-skeleton.c (main): Print output in JSON
34417         format.
34418         * benchtests/bench-timing-type.c: New file.
34419         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34420         (TIMING_PRINT_STATS): Remove.
34421         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34422         name separately.
34423
34424         * benchtests/bench-modf.c: Remove.
34425         * benchtests/modf-inputs: New inputs file.
34426
34427 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34428
34429         [BZ #16362]
34430         * math/s_clog10.c (M_PI_LOG10E): New macro.
34431         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34432         imaginary parts are 0.
34433         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34434         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34435         imaginary parts are 0.
34436         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34437         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34438         imaginary parts are 0.
34439         * math/libm-test.inc (clog10_test_data): Update expected results
34440         for when real and imaginary parts are 0.
34441
34442 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34443
34444         * elf/dl-load.c: Finish conversion of __builtin_expect into
34445         __glibc_{un}likely.
34446
34447 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34448
34449         [BZ #16348]
34450         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34451         1+x for argument with exponent below -67.
34452         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34453         Likewise.
34454         * math/auto-libm-test-in: Add more tests of exp.
34455         * math/auto-libm-test-out: Regenerated.
34456
34457 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34458
34459         [BZ #16759]
34460         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34461         (nscd_getnetgrent): Use it.
34462
34463         [BZ #16760]
34464         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34465         of stpcpy.
34466
34467 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34468
34469         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34470         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34471         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34472         (lll_robust_unlock): Remove out of line section. Use cfi
34473         intrinsics.
34474         (LLL_STUB_UNWIND_INFO*): Remove.
34475         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34476         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34477         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34478         (lll_robust_unlock): Remove out of line section. Use cfi
34479         intrinsics.
34480         (LLL_STUB_UNWIND_INFO*): Remove.
34481
34482 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34483
34484         [BZ #16758]
34485         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34486         blank values.
34487
34488 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34489
34490         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34491
34492 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34493
34494         [BZ #16198]
34495         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34496         fnstenv.
34497         * math/test-fenv-preserve.c: New file.
34498         * math/Makefile (tests): Add test-fenv-preserve.
34499
34500 2014-03-26  Will Newton <will.newton@linaro.org>
34501
34502         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34503
34504 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34505
34506         * scripts/versionlist.awk: Partition the version sets and emit all
34507         GLIBC_* (sorted) before all others (sorted).
34508
34509 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34510
34511         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34512         GLIBC_2.2.5 version.
34513
34514 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34515
34516         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34517         calls.
34518
34519         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34520         previous change.
34521
34522         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34523
34524 2014-03-25  Andreas Schwab  <schwab@suse.de>
34525
34526         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34527         label to be used after in6ailist is initialized.
34528
34529 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34530
34531         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34532         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34533
34534 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34535
34536         [BZ #16357]
34537         [BZ #16599]
34538         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34539         min_plus_half.
34540         (fp_formats): Update initializers.
34541         (init_fp_formats): Initialize new field.
34542         (output_for_one_input_case): Allow underflow for results up to
34543         min_plus_half.
34544         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34545         * math/auto-libm-test-in: Don't mark some underflows from asin and
34546         atanh as spurious.
34547         * math/auto-libm-test-out: Regenerated.
34548         * sysdeps/i386/fpu/libm-test-ulps: Update.
34549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34550
34551 2014-03-25  Andreas Schwab  <schwab@suse.de>
34552
34553         * libio/Makefile (tst-ftell-partial-wide-ENV)
34554         (tst-ftell-active-handler-ENV): Define.
34555
34556 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34557
34558         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34559
34560 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34561
34562         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34563
34564 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34565
34566         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34567         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34568         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34569
34570 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34571
34572         [BZ #16634]
34573         * elf/dl-load.c (open_verify): Add mode parameter.
34574         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34575         (open_path): Change from boolean 'secure' to complete flag 'mode'
34576         (_dl_map_object): Adjust.
34577         * elf/Makefile (tests): Add tst-dlopen-aout.
34578         * elf/tst-dlopen-aout.c: New test.
34579
34580 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34581
34582         [BZ #16714]
34583         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34584         (struct stat): Rename member pad0 to __glibc_reserved0.
34585
34586         [BZ #16712]
34587         * sysdeps/s390/s390-32/bits/wordsize.h
34588         (__WORDSIZE32_SIZE_ULONG): New define.
34589         * sysdeps/s390/s390-64/bits/wordsize.h
34590         (__WORDSIZE32_SIZE_ULONG): Likewise.
34591         * sysdeps/generic/stdint.h (SIZE_MAX):
34592         Define as UL if __WORDSIZE32_SIZE_ULONG.
34593
34594         [BZ #16713]
34595         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34596         (__glibc_reserved0): New variable.
34597         (sa_flags): Change type to int.
34598
34599         * posix/Makefile (before-compile): Use += before-compile instead
34600         of a :=.
34601
34602         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34603         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34604
34605 2014-03-20  Andreas Schwab  <schwab@suse.de>
34606
34607         [BZ #16743]
34608         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34609         non-matching result from nscd.
34610
34611 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34612
34613         * scripts/bench.py: Moved to ...
34614         * benchtests/scripts/bench.py: ... here.
34615         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34616
34617 2014-03-24  Andreas Schwab  <schwab@suse.de>
34618
34619         [BZ #16002]
34620         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34621         alloca_account and account alloca use for struct in6ailist.
34622
34623 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34624
34625         [BZ #16284]
34626         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34627         rounding mode to recompute results that overflow to infinity or
34628         underflow to zero.
34629         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34630         bug 16284.
34631         * math/auto-libm-test-out: Regenerated.
34632         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34633         (ccosh_test): Likewise.
34634         (csin_test_data): Use plus_oflow.
34635         (csin_test): Use ALL_RM_TEST.
34636         (csinh_test_data): Use plus_oflow.
34637         (csinh_test): Use ALL_RM_TEST.
34638         * sysdeps/i386/fpu/libm-test-ulps: Update.
34639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34640
34641 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34642
34643         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34644         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34645         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34646
34647         [BZ #16731]
34648         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34649         when x - 1 is zero.
34650         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34651         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34652         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34653         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34654         argument is 1.
34655         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34656         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34657         zero.
34658         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34659         * sysdeps/i386/fpu/libm-test-ulps: Update.
34660         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34661
34662 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34663
34664         * scripts/bench.pl: Remove file.
34665         * scripts/bench.py: New benchmark script.
34666         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34667         * benchtests/README: Mention python dependency.
34668         * scripts/pylintrc: New file.
34669         * scripts/pylint: New file.
34670
34671         * bits/mathdef.h: Use #ifdef instead of #if.
34672         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34673         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34674         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34675         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34676         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34677         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34678
34679 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34680             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34681
34682         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34683         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34684         and strpbrk-ppc64 objects.
34685         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34686         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34687         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34688         multiarch strpbrk for POWER7.
34689         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34690         multiarch strpbrk for PPC64.
34691         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34692         ifunc selector.
34693         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34694         strpbrk for POWER7.
34695
34696 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34697
34698         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34699         (atan_test): Likewise.
34700         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34701         (atanh_test): Use ALL_RM_TEST.
34702         (atan2_test_data): Likewise.
34703         (cabs_test): Likewise.
34704         (cacosh_test): Likewise.
34705         (carg_test): Likewise.
34706         (casin_test): Likewise.
34707         (casinh_test): Likewise.
34708         (cbrt_test): Likewise.
34709         (csqrt_test): Likewise.
34710         (erf_test): Likewise.
34711         (erfc_test): Likewise.
34712         (pow10_test): Likewise.
34713         (exp2_test): Likewise.
34714         (hypot_test): Likewise.
34715         (j0_test): Likewise.
34716         (j1_test): Likewise.
34717         (lgamma_test): Likewise.
34718         (gamma_test): Likewise.
34719         (sincos_test): Likewise.
34720         (tanh_test): Likewise.
34721         (y0_test): Likewise.
34722         (y1_test): Likewise.
34723         * sysdeps/i386/fpu/libm-test-ulps: Update.
34724         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34725
34726 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34727
34728         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34729         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34730         and strcspn-ppc64 objects.
34731         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34732         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34733         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34734         multiarch strcspn for POWER7.
34735         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34736         multiarch strcspn for PPC64.
34737         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34738         ifunc selector.
34739         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34740         strcspn for POWER7.
34741
34742 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34743
34744         * math/gen-libm-test.pl (generate_testfile): Expect only function
34745         name as argument to AUTO_TESTS_* and pass results for all rounding
34746         modes to parse_args.
34747         (parse_auto_input): Separate inputs of automatic tests from
34748         outputs before storing in %auto_tests.
34749         * math/libm-test.inc (acos_test_data): Update call to
34750         AUTO_TESTS_f_f.
34751         (acos_test): Use ALL_RM_TEST.
34752         (acos_tonearest_test_data): Remove.
34753         (acos_test_tonearest): Likewise.
34754         (acos_towardzero_test_data): Likewise.
34755         (acos_test_towardzero): Likewise.
34756         (acos_downward_test_data): Likewise.
34757         (acos_test_downward): Likewise.
34758         (acos_upward_test_data): Likewise.
34759         (acos_test_upward): Likewise.
34760         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34761         (asin_test_data): Likewise.
34762         (asin_test): Use ALL_RM_TEST.
34763         (asin_tonearest_test_data): Remove.
34764         (asin_test_tonearest): Likewise.
34765         (asin_towardzero_test_data): Likewise.
34766         (asin_test_towardzero): Likewise.
34767         (asin_downward_test_data): Likewise.
34768         (asin_test_downward): Likewise.
34769         (asin_upward_test_data): Likewise.
34770         (asin_test_upward): Likewise.
34771         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34772         (atan_test_data): Likewise.
34773         (atanh_test_data): Likewise.
34774         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34775         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34776         (carg_test_data): Likewise.
34777         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34778         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34779         (ccosh_test_data): Likewise.
34780         (cexp_test_data): Likewise.
34781         (clog_test_data): Likewise.
34782         (clog10_test_data): Likewise.
34783         (cos_test_data): Update call to AUTO_TESTS_f_f.
34784         (cos_test): Use ALL_RM_TEST.
34785         (cos_tonearest_test_data): Remove.
34786         (cos_test_tonearest): Likewise.
34787         (cos_towardzero_test_data): Likewise.
34788         (cos_test_towardzero): Likewise.
34789         (cos_downward_test_data): Likewise.
34790         (cos_test_downward): Likewise.
34791         (cos_upward_test_data): Likewise.
34792         (cos_test_upward): Likewise.
34793         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34794         (cosh_test): Use ALL_RM_TEST.
34795         (cosh_tonearest_test_data): Remove.
34796         (cosh_test_tonearest): Likewise.
34797         (cosh_towardzero_test_data): Likewise.
34798         (cosh_test_towardzero): Likewise.
34799         (cosh_downward_test_data): Likewise.
34800         (cosh_test_downward): Likewise.
34801         (cosh_upward_test_data): Likewise.
34802         (cosh_test_upward): Likewise.
34803         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34804         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34805         (ctan_test_data): Likewise.
34806         (ctan_test): Use ALL_RM_TEST.
34807         (ctan_tonearest_test_data): Remove.
34808         (ctan_test_tonearest): Likewise.
34809         (ctan_towardzero_test_data): Likewise.
34810         (ctan_test_towardzero): Likewise.
34811         (ctan_downward_test_data): Likewise.
34812         (ctan_test_downward): Likewise.
34813         (ctan_upward_test_data): Likewise.
34814         (ctan_test_upward): Likewise.
34815         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34816         (ctanh_test): Use ALL_RM_TEST.
34817         (ctanh_tonearest_test_data): Remove.
34818         (ctanh_test_tonearest): Likewise.
34819         (ctanh_towardzero_test_data): Likewise.
34820         (ctanh_test_towardzero): Likewise.
34821         (ctanh_downward_test_data): Likewise.
34822         (ctanh_test_downward): Likewise.
34823         (ctanh_upward_test_data): Likewise.
34824         (ctanh_test_upward): Likewise.
34825         (erf_test_data): Update call to AUTO_TESTS_f_f.
34826         (erfc_test_data): Likewise.
34827         (exp_test_data): Likewise.
34828         (exp_test): Use ALL_RM_TEST.
34829         (exp_tonearest_test_data): Remove.
34830         (exp_test_tonearest): Likewise.
34831         (exp_towardzero_test_data): Likewise.
34832         (exp_test_towardzero): Likewise.
34833         (exp_downward_test_data): Likewise.
34834         (exp_test_downward): Likewise.
34835         (exp_upward_test_data): Likewise.
34836         (exp_test_upward): Likewise.
34837         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34838         (exp10_test): Use ALL_RM_TEST.
34839         (exp10_tonearest_test_data): Remove.
34840         (exp10_test_tonearest): Likewise.
34841         (exp10_towardzero_test_data): Likewise.
34842         (exp10_test_towardzero): Likewise.
34843         (exp10_downward_test_data): Likewise.
34844         (exp10_test_downward): Likewise.
34845         (exp10_upward_test_data): Likewise.
34846         (exp10_test_upward): Likewise.
34847         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34848         (expm1_test_data): Likewise.
34849         (expm1_test): Use ALL_RM_TEST.
34850         (expm1_tonearest_test_data): Remove.
34851         (expm1_test_tonearest): Likewise.
34852         (expm1_towardzero_test_data): Likewise.
34853         (expm1_test_towardzero): Likewise.
34854         (expm1_downward_test_data): Likewise.
34855         (expm1_test_downward): Likewise.
34856         (expm1_upward_test_data): Likewise.
34857         (expm1_test_upward): Likewise.
34858         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34859         (fma_test): Use ALL_RM_TEST.
34860         (fma_towardzero_test_data): Remove.
34861         (fma_test_towardzero): Likewise.
34862         (fma_downward_test_data): Likewise.
34863         (fma_test_downward): Likewise.
34864         (fma_upward_test_data): Likewise.
34865         (fma_test_upward): Likewise.
34866         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34867         (j0_test_data): Update call to AUTO_TESTS_f_f.
34868         (j1_test_data): Likewise.
34869         (jn_test_data): Update call to AUTO_TESTS_if_f.
34870         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34871         (log_test_data): Update call to AUTO_TESTS_f_f.
34872         (log10_test_data): Likewise.
34873         (log1p_test_data): Likewise.
34874         (log2_test_data): Likewise.
34875         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34876         (pow_tonearest_test_data): Likewise.
34877         (sin_test_data): Update call to AUTO_TESTS_f_f.
34878         (sin_test): Use ALL_RM_TEST.
34879         (sin_tonearest_test_data): Remove.
34880         (sin_test_tonearest): Likewise.
34881         (sin_towardzero_test_data): Likewise.
34882         (sin_test_towardzero): Likewise.
34883         (sin_downward_test_data): Likewise.
34884         (sin_test_downward): Likewise.
34885         (sin_upward_test_data): Likewise.
34886         (sin_test_upward): Likewise.
34887         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34888         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34889         (sinh_test): Use ALL_RM_TEST.
34890         (sinh_tonearest_test_data): Remove.
34891         (sinh_test_tonearest): Likewise.
34892         (sinh_towardzero_test_data): Likewise.
34893         (sinh_test_towardzero): Likewise.
34894         (sinh_downward_test_data): Likewise.
34895         (sinh_test_downward): Likewise.
34896         (sinh_upward_test_data): Likewise.
34897         (sinh_test_upward): Likewise.
34898         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34899         (sqrt_test): Use ALL_RM_TEST.
34900         (sqrt_tonearest_test_data): Remove.
34901         (sqrt_test_tonearest): Likewise.
34902         (sqrt_towardzero_test_data): Likewise.
34903         (sqrt_test_towardzero): Likewise.
34904         (sqrt_downward_test_data): Likewise.
34905         (sqrt_test_downward): Likewise.
34906         (sqrt_upward_test_data): Likewise.
34907         (sqrt_test_upward): Likewise.
34908         (tan_test_data): Update call to AUTO_TESTS_f_f.
34909         (tan_test): Use ALL_RM_TEST.
34910         (tan_tonearest_test_data): Remove.
34911         (tan_test_tonearest): Likewise.
34912         (tan_towardzero_test_data): Likewise.
34913         (tan_test_towardzero): Likewise.
34914         (tan_downward_test_data): Likewise.
34915         (tan_test_downward): Likewise.
34916         (tan_upward_test_data): Likewise.
34917         (tan_test_upward): Likewise.
34918         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34919         (tgamma_test_data): Likewise.
34920         (y0_test_data): Likewise.
34921         (y1_test_data): Likewise.
34922         (yn_test_data): Update call to AUTO_TESTS_if_f.
34923         (main): Do not call removed functions.
34924
34925 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34926
34927         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34928         (ldexp_test_data): Remove.
34929         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34930         scalbn_test_data.
34931         (scalb_test): Use ALL_RM_TEST.
34932
34933 2014-03-19  Andreas Schwab  <schwab@suse.de>
34934
34935         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34936
34937 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34938
34939         [BZ #16649]
34940         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34941         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34942         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34943         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34944         (__ASSUME_PREADV): Undefine.
34945         (__ASSUME_PWRITEV): Likewise.
34946
34947 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34948
34949         * bits/mman-linux.h: Add comment about non-Linux use.
34950         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34951         bits/mman-linux.h resting place.
34952
34953         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34954         * bits/mman-linux.h: ... here.
34955
34956 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34957
34958         * conform/conformtest.pl: Add standard definition when calling C
34959         preprocessor on data files.
34960         (checknamespace): Remove unused variable.
34961
34962 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34963
34964         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34965         minus_oflow, plus_uflow and minus_uflow in expected results.
34966         * math/libm-test.inc (scalbn_test_data): Add more tests of
34967         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34968         minus_uflow.
34969         (scalbn_test): Use ALL_RM_TEST.
34970         (scalbln_test_data): Add more tests of negative arguments.  Use
34971         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34972         (scalbln_test): Use ALL_RM_TEST.
34973
34974 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34975
34976         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34977
34978 2014-03-18  Will Newton  <will.newton@linaro.org>
34979
34980         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34981         inaccurate comment.
34982
34983 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34984
34985         * Makerules [!subdir] (check-abi): Exit with error status if a
34986         test failed.
34987
34988 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34989
34990         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34991         for rint.  Include results for all rounding modes.
34992         (nearbyint_test): Use ALL_RM_TEST.
34993         (rint_test_data): Include all tests used for nearbyint.
34994
34995 2014-03-17  Will Newton  <will.newton@linaro.org>
34996
34997         * nptl/sysdeps/pthread/pthread.h: Revert previous
34998         change.
34999
35000         * sysdeps/generic/ldsodefs.h: Revert previous
35001         change.
35002
35003         * libio/genops.c: Revert previous change.
35004         * libio/libioP.h: Likewise.
35005         * stdio-common/vfprintf.c: Likewise.
35006
35007         * sysdeps/generic/math_private.h: Revert previous
35008         change.
35009
35010         * sysdeps/generic/math_private.h: Check whether
35011         HAVE_RM_CTX is defined with #ifdef rather
35012         than #if.
35013
35014         * argp/argp-fmtstream.h: Check whether
35015         __STRICT_ANSI__ is defined with #ifdef rather
35016         than #if.
35017         * argp/argp.h: Likewise.
35018
35019         * libio/genops.c: Check whether
35020         _IO_JUMPS_OFFSET is defined with #ifdef rather
35021         than #if.
35022         * libio/libioP.h: Likewise.
35023         * stdio-common/vfprintf.c: Likewise.
35024
35025         * sysdeps/generic/ldsodefs.h: Check whether
35026         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35027         than #if.
35028
35029         * nptl/sysdeps/pthread/pthread.h: Check
35030         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35031         its value.
35032
35033 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35034
35035         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35036         setting O_APPEND.
35037         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35038         test case.
35039
35040         [BZ #16680]
35041         * libio/fileops.c (_IO_file_open): Seek to end of file but
35042         don't cache the offset.
35043         (get_file_offset): Remove function.
35044         (do_ftell): Use cached offset when available.
35045         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35046         don't cache the offset.
35047         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35048         case.
35049         (do_one_test): Call it.
35050         (do_ftell_test): Fix up expected old offset for a+ mode.
35051         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35052         available.
35053
35054         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35055         up test status with function return status.
35056         (do_write_test): Likewise.
35057         (do_append_test): Likewise.
35058
35059         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35060         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35061         Remove.
35062
35063 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35064
35065         * math/gen-libm-test.pl (parse_args): Handle results specified for
35066         each rounding mode separately.
35067         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35068         tests and results from lrint_tonearest_test_data,
35069         lrint_towardzero_test_data, lrint_downward_test_data and
35070         lrint_upward_test_data.
35071         (lrint_test): Use ALL_RM_TEST.
35072         (lrint_tonearest_test_data): Remove.
35073         (lrint_test_tonearest): Likewise.
35074         (lrint_towardzero_test_data): Likewise.
35075         (lrint_test_towardzero): Likewise.
35076         (lrint_downward_test_data): Likewise.
35077         (lrint_test_downward): Likewise.
35078         (lrint_upward_test_data): Likewise.
35079         (lrint_test_upward): Likewise.
35080         (llrint_test_data): Merge in per-rounding-mode tests and results
35081         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35082         llrint_downward_test_data and llrint_upward_test_data.
35083         (llrint_test): Use ALL_RM_TEST.
35084         (llrint_tonearest_test_data): Remove.
35085         (llrint_test_tonearest): Likewise.
35086         (llrint_towardzero_test_data): Likewise.
35087         (llrint_test_towardzero): Likewise.
35088         (llrint_downward_test_data): Likewise.
35089         (llrint_test_downward): Likewise.
35090         (llrint_upward_test_data): Likewise.
35091         (llrint_test_upward): Likewise.
35092         (rint_test_data): Merge in per-rounding-mode tests and results
35093         from rint_tonearest_test_data, rint_towardzero_test_data,
35094         rint_downward_test_data and rint_upward_test_data.  Add
35095         per-rounding-mode results for tests not in those arrays.
35096         (rint_test): Use ALL_RM_TEST.
35097         (rint_tonearest_test_data): Remove.
35098         (rint_test_tonearest): Likewise.
35099         (rint_towardzero_test_data): Likewise.
35100         (rint_test_towardzero): Likewise.
35101         (rint_downward_test_data): Likewise.
35102         (rint_test_downward): Likewise.
35103         (rint_upward_test_data): Likewise.
35104         (rint_test_upward): Likewise.
35105         (main): Don't call removed functions.
35106
35107 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35108
35109         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35110         "Compiled on ..." crapola.  It is anti-useful.
35111
35112 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35113
35114         * scripts/evaluate-test.sh: Handle fourth argument to determine
35115         whether test run should stop on failure.
35116         * Makeconfig (stop-on-test-failure): New variable.
35117         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35118         $(stop-on-test-failure).
35119         * Makefile (tests): Give a summary of results from testing and
35120         exit with failure status if they include an ERROR or FAIL.
35121         (xtests): Likewise.
35122         * manual/install.texi (Configuring and compiling): Mention
35123         stop-on-test-failure=y.
35124         * INSTALL: Regenerated.
35125
35126 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35127
35128         * scripts/versionlist.awk: New file.
35129         * Makerules [$(build-shared) = yes]
35130         (postclean-generated): Add Versions.def, not Versions.def.v and
35131         Versions.def.v.i.
35132         ($(common-objpfx)Versions.def.v.i): Target removed.
35133         ($(common-objpfx)Versions.def): New target.
35134         ($(common-objpfx)Versions.all): Depend on that rather that
35135         $(common-objpfx)Versions.def.v.
35136         * Versions.def: File removed.
35137
35138         * Makeconfig (+gccwarn): Add -Wundef.
35139         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35140         a dl-sysdep.h breaking its contract.
35141         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35142         * include/stackinfo.h: New file.
35143         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35144         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35145         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35146         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35147         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35148         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35149         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35150         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35151         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35152         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35153         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35154         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35155         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35156         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35157         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35158
35159 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35160
35161         [BZ #16707]
35162         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35163         implementation.
35164         * math/libm-test.inc (round_test_data): Add more tests.
35165
35166         [BZ #16706]
35167         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35168         implementation.
35169         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35170
35171         [BZ #16701]
35172         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35173         implementation.
35174         * math/libm-test.inc (ceil_test_data): Add more tests.
35175
35176         * math/libm-test.inc (trunc_test_data): Add more tests related to
35177         BZ#16414.
35178
35179 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35180
35181         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35182         with #if rather than #ifdef.
35183         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35184
35185 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35186
35187         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35188         first.  Disable AVX-512 GCC support if assembler doesn't support
35189         it.
35190         * sysdeps/x86_64/configure: Regenerated.
35191
35192 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35193
35194         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35195         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35196         (__old_pthread_attr_setstack): Likewise.
35197         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35198         [!_STACK_GROWS_DOWN]: Likewise.
35199
35200 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35201
35202         * config.make.in (have-bash2): Delete.
35203         * configure.ac (libc_cv_have_bash2): Delete.
35204         * configure: Regenerate.
35205         * elf/Makefile (common-ldd-rewrite): Rename to ...
35206         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35207         (sh-ldd-rewrite): Delete.
35208         (bash-ldd-rewrite): Delete.
35209         (have-bash2): Delete checks.
35210         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35211         ldd-rewrite.
35212
35213         * config.make.in (have-ksh): Delete.
35214         (KSH): Delete.
35215         * configure.ac (libc_cv_have_ksh): Delete.
35216         * configure: Regenerate.
35217
35218         * elf/Makefile: Delete $(have-ksh) check.
35219         ($(objpfx)sotruss): Change KSH to BASH.
35220         * elf/sotruss.ksh: Rename to ...
35221         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35222         function style to match POSIX.  Drop ksh vim mode setting.
35223
35224         * manual/time.texi (Specifying the Time Zone with TZ): Change
35225         Tuesday to Thursday.
35226
35227         * debug/tst-longjmp_chk2.c: Update header comment.
35228         (stackoverflow_handler): Add comment.  Call assert on pass value.
35229
35230 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35231
35232         [BZ #16194]
35233         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35234         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35235         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35236         (La_x86_64_vector): Add zmm.
35237         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35238         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35239         ($(objpfx)tst-audit10): New target.
35240         ($(objpfx)tst-audit10.out): Likewise.
35241         (tst-audit10-ENV): New.
35242         (AVX512-CFLAGS): Likewise.
35243         (CFLAGS-tst-audit10.c): Likewise.
35244         (CFLAGS-tst-auditmod10a.c): Likewise.
35245         (CFLAGS-tst-auditmod10b.c): Likewise.
35246         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35247         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35248         * sysdeps/x86_64/configure: Regenerated.
35249         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35250         AVX-512 zmm register support.
35251         (_dl_x86_64_save_sse): Likewise.
35252         (_dl_x86_64_restore_sse): Likewise.
35253         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35254         size vector registers.
35255         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35256         (ZMM_SIZE): Likewise.
35257         * sysdeps/x86_64/tst-audit10.c: New file.
35258         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35259         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35260
35261 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35262
35263         * configure.ac (HAVE_EHDR_START): New check.
35264         * configure: Regenerated.
35265         * config.h.in (HAVE_EHDR_START): New #undef.
35266         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35267         assuming the lowest-addressed segment maps the start of the file.
35268
35269 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35270
35271         * INSTALL: Regenerated.
35272
35273 2014-03-13  Will Newton  <will.newton@linaro.org>
35274
35275         * manual/setjmp.texi (System V contexts): Improve
35276         clarity and grammar of documentation.
35277
35278 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35279
35280         [BZ #16381]
35281         * elf/Makefile (tests): Add tst-pie2.
35282         (tests-pie): Add tst-pie2.
35283         * elf/tst-pie2.c: New file.
35284         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35285         for ET_EXEC.
35286         * elf/rtld.c (map_doit): Load executable as lt_executable.
35287         (dl_main): Likewise.
35288
35289 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35290
35291         [BZ #16642]
35292         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35293         (__ASSUME_PSELECT): Undefine.
35294
35295 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35296
35297         [BZ #16689]
35298         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35299         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35300         static build.
35301         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35302         selector for static builds.
35303
35304 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35305
35306         [BZ #16695]
35307         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35308         key in the buffer.
35309
35310 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35311
35312         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35313         IFUNC selector for static builds.
35314
35315 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35316
35317         * sysdeps/mips/math_private.h [__mips_hard_float]
35318         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35319         libc_feresetround_mips_ctx.
35320         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35321         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35322         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35323
35324         [BZ #16677]
35325         * math/s_nextafter.c (__nextafter): Do not return value from
35326         overflowing computation.
35327         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35328         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35329         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35330         Likewise.
35331         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35332         Likewise.
35333         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35334         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35335
35336 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35337
35338         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35339         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35340         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35341         the new mov targetting sp.
35342
35343 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35344
35345         [BZ #16683]
35346         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35347         Define it for static builds as well.
35348         (NO_BZERO_IMPL): Likewise.
35349
35350 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35351
35352         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35353         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35354         multiarch strspn for PPC64.
35355         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35356         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35357         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35358         (__libc_ifunc_impl_list): Likewise.
35359         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35360         multiarch optimizations
35361         * string/strspn.c (strspn): Using macro to redefine symbol name.
35362
35363 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35364             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35365
35366         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35367         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35368         multiarch strncat for PPC64.
35369         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35370         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35371         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35372         (__libc_ifunc_impl_list): Likewise.
35373         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35374         multiarch optimizations
35375
35376 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35377
35378         [BZ #16639]
35379         * nscd/nscd.service: Make service type forking.
35380
35381 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35382
35383         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35384         sign in non default rounding modes.
35385         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35386
35387 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35388
35389         * math/libm-test.inc (ALL_RM_TEST): New macro.
35390         (ceil_test): Use ALL_RM_TEST.
35391         (cimag_test): Likewise.
35392         (conj_test): Likewise.
35393         (copysign_test): Likewise.
35394         (cproj_test): Likewise.
35395         (creal_test): Likewise.
35396         (fabs_test): Likewise.
35397         (floor_test): Likewise.
35398         (fmax_test): Likewise.
35399         (fmin_test): Likewise.
35400         (fmod_test): Likewise.
35401         (fpclassify_test): Likewise.
35402         (frexp_test): Likewise.
35403         (ilogb_test): Likewise.
35404         (isfinite_test): Likewise.
35405         (finite_test): Likewise.
35406         (isgreater_test): Likewise.
35407         (isgreaterequal_test): Likewise.
35408         (isinf_test): Likewise.
35409         (isless_test): Likewise.
35410         (islessequal_test): Likewise.
35411         (islessgreater_test): Likewise.
35412         (isnan_test): Likewise.
35413         (isnormal_test): Likewise.
35414         (issignaling_test): Likewise.
35415         (isunordered_test): Likewise.
35416         (logb_test): Likewise.
35417         (logb_downward_test_data): Remove.
35418         (logb_test_downward): Likewise.
35419         (lround_test): Use ALL_RM_TEST.
35420         (llround_test): Likewise.
35421         (modf_test): Likewise.
35422         (nexttoward_test): Likewise.
35423         (remainder_test): Likewise.
35424         (drem_test): Likewise.
35425         (remainder_tonearest_test_data): Likewise.
35426         (remainder_test_tonearest): Likewise.
35427         (drem_test_tonearest): Likewise.
35428         (remainder_towardzero_test_data): Likewise.
35429         (remainder_test_towardzero): Likewise.
35430         (drem_test_towardzero): Likewise.
35431         (remainder_downward_test_data): Likewise.
35432         (remainder_test_downward): Likewise.
35433         (drem_test_downward): Likewise.
35434         (remainder_upward_test_data): Likewise.
35435         (remainder_test_upward): Likewise.
35436         (drem_test_upward): Likewise.
35437         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35438         (round_test): Use ALL_RM_TEST.
35439         (signbit_test): Likewise.
35440         (trunc_test): Likewise.
35441         (significand_test): Likewise.
35442         (main): Don't call removed functions.
35443
35444 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35445
35446         [BZ #16674]
35447         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35448         || __USE_XOPEN2K8].
35449         (ILL_ILLOPN): Likewise.
35450         (ILL_ILLADR): Likewise.
35451         (ILL_ILLTRP): Likewise.
35452         (ILL_PRVOPC): Likewise.
35453         (ILL_PRVREG): Likewise.
35454         (ILL_COPROC): Likewise.
35455         (ILL_BADSTK): Likewise.
35456         (FPE_INTDIV): Likewise.
35457         (FPE_INTOVF): Likewise.
35458         (FPE_FLTDIV): Likewise.
35459         (FPE_FLTOVF): Likewise.
35460         (FPE_FLTUND): Likewise.
35461         (FPE_FLTRES): Likewise.
35462         (FPE_FLTINV): Likewise.
35463         (FPE_FLTSUB): Likewise.
35464         (SEGV_MAPERR): Likewise.
35465         (SEGV_ACCERR): Likewise.
35466         (BUS_ADRALN): Likewise.
35467         (BUS_ADRERR): Likewise.
35468         (BUS_OBJERR): Likewise.
35469         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35470         (TRAP_TRACE): Likewise.
35471         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35472         __USE_XOPEN2K8].
35473         (CLD_KILLED): Likewise.
35474         (CLD_DUMPED): Likewise.
35475         (CLD_TRAPPED): Likewise.
35476         (CLD_STOPPED): Likewise.
35477         (CLD_CONTINUED): Likewise.
35478         (POLL_IN): Likewise.
35479         (POLL_OUT): Likewise.
35480         (POLL_MSG): Likewise.
35481         (POLL_ERR): Likewise.
35482         (POLL_PRI): Likewise.
35483         (POLL_HUP): Likewise.
35484         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35485         Likewise.
35486         (ILL_ILLOPN): Likewise.
35487         (ILL_ILLADR): Likewise.
35488         (ILL_ILLTRP): Likewise.
35489         (ILL_PRVOPC): Likewise.
35490         (ILL_PRVREG): Likewise.
35491         (ILL_COPROC): Likewise.
35492         (ILL_BADSTK): Likewise.
35493         (FPE_INTDIV): Likewise.
35494         (FPE_INTOVF): Likewise.
35495         (FPE_FLTDIV): Likewise.
35496         (FPE_FLTOVF): Likewise.
35497         (FPE_FLTUND): Likewise.
35498         (FPE_FLTRES): Likewise.
35499         (FPE_FLTINV): Likewise.
35500         (FPE_FLTSUB): Likewise.
35501         (SEGV_MAPERR): Likewise.
35502         (SEGV_ACCERR): Likewise.
35503         (BUS_ADRALN): Likewise.
35504         (BUS_ADRERR): Likewise.
35505         (BUS_OBJERR): Likewise.
35506         (BUS_MCEERR_AR): Likewise.
35507         (BUS_MCEERR_AO): Likewise.
35508         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35509         (TRAP_TRACE): Likewise.
35510         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35511         __USE_XOPEN2K8].
35512         (CLD_KILLED): Likewise.
35513         (CLD_DUMPED): Likewise.
35514         (CLD_TRAPPED): Likewise.
35515         (CLD_STOPPED): Likewise.
35516         (CLD_CONTINUED): Likewise.
35517         (POLL_IN): Likewise.
35518         (POLL_OUT): Likewise.
35519         (POLL_MSG): Likewise.
35520         (POLL_ERR): Likewise.
35521         (POLL_PRI): Likewise.
35522         (POLL_HUP): Likewise.
35523         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35524         (ILL_ILLOPN): Likewise.
35525         (ILL_ILLADR): Likewise.
35526         (ILL_ILLTRP): Likewise.
35527         (ILL_PRVOPC): Likewise.
35528         (ILL_PRVREG): Likewise.
35529         (ILL_COPROC): Likewise.
35530         (ILL_BADSTK): Likewise.
35531         (FPE_INTDIV): Likewise.
35532         (FPE_INTOVF): Likewise.
35533         (FPE_FLTDIV): Likewise.
35534         (FPE_FLTOVF): Likewise.
35535         (FPE_FLTUND): Likewise.
35536         (FPE_FLTRES): Likewise.
35537         (FPE_FLTINV): Likewise.
35538         (FPE_FLTSUB): Likewise.
35539         (SEGV_MAPERR): Likewise.
35540         (SEGV_ACCERR): Likewise.
35541         (BUS_ADRALN): Likewise.
35542         (BUS_ADRERR): Likewise.
35543         (BUS_OBJERR): Likewise.
35544         (BUS_MCEERR_AR): Likewise.
35545         (BUS_MCEERR_AO): Likewise.
35546         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35547         (TRAP_TRACE): Likewise.
35548         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35549         __USE_XOPEN2K8].
35550         (CLD_KILLED): Likewise.
35551         (CLD_DUMPED): Likewise.
35552         (CLD_TRAPPED): Likewise.
35553         (CLD_STOPPED): Likewise.
35554         (CLD_CONTINUED): Likewise.
35555         (POLL_IN): Likewise.
35556         (POLL_OUT): Likewise.
35557         (POLL_MSG): Likewise.
35558         (POLL_ERR): Likewise.
35559         (POLL_PRI): Likewise.
35560         (POLL_HUP): Likewise.
35561         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35562         Likewise.
35563         (ILL_ILLOPN): Likewise.
35564         (ILL_ILLADR): Likewise.
35565         (ILL_ILLTRP): Likewise.
35566         (ILL_PRVOPC): Likewise.
35567         (ILL_PRVREG): Likewise.
35568         (ILL_COPROC): Likewise.
35569         (ILL_BADSTK): Likewise.
35570         (ILL_BADIADDR): Likewise.
35571         (ILL_BREAK): Likewise.
35572         (FPE_INTDIV): Likewise.
35573         (FPE_INTOVF): Likewise.
35574         (FPE_FLTDIV): Likewise.
35575         (FPE_FLTOVF): Likewise.
35576         (FPE_FLTUND): Likewise.
35577         (FPE_FLTRES): Likewise.
35578         (FPE_FLTINV): Likewise.
35579         (FPE_FLTSUB): Likewise.
35580         (FPE_DECOVF): Likewise.
35581         (FPE_DECDIV): Likewise.
35582         (FPE_DECERR): Likewise.
35583         (FPE_INVASC): Likewise.
35584         (FPE_INVDEC): Likewise.
35585         (SEGV_MAPERR): Likewise.
35586         (SEGV_ACCERR): Likewise.
35587         (SEGV_PSTKOVF): Likewise.
35588         (BUS_ADRALN): Likewise.
35589         (BUS_ADRERR): Likewise.
35590         (BUS_OBJERR): Likewise.
35591         (BUS_MCEERR_AR): Likewise.
35592         (BUS_MCEERR_AO): Likewise.
35593         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35594         (TRAP_TRACE): Likewise.
35595         (TRAP_BRANCH): Likewise.
35596         (TRAP_HWBKPT): Likewise.
35597         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35598         __USE_XOPEN2K8].
35599         (CLD_KILLED): Likewise.
35600         (CLD_DUMPED): Likewise.
35601         (CLD_TRAPPED): Likewise.
35602         (CLD_STOPPED): Likewise.
35603         (CLD_CONTINUED): Likewise.
35604         (POLL_IN): Likewise.
35605         (POLL_OUT): Likewise.
35606         (POLL_MSG): Likewise.
35607         (POLL_ERR): Likewise.
35608         (POLL_PRI): Likewise.
35609         (POLL_HUP): Likewise.
35610         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35611         (ILL_ILLOPN): Likewise.
35612         (ILL_ILLADR): Likewise.
35613         (ILL_ILLTRP): Likewise.
35614         (ILL_PRVOPC): Likewise.
35615         (ILL_PRVREG): Likewise.
35616         (ILL_COPROC): Likewise.
35617         (ILL_BADSTK): Likewise.
35618         (FPE_INTDIV): Likewise.
35619         (FPE_INTOVF): Likewise.
35620         (FPE_FLTDIV): Likewise.
35621         (FPE_FLTOVF): Likewise.
35622         (FPE_FLTUND): Likewise.
35623         (FPE_FLTRES): Likewise.
35624         (FPE_FLTINV): Likewise.
35625         (FPE_FLTSUB): Likewise.
35626         (SEGV_MAPERR): Likewise.
35627         (SEGV_ACCERR): Likewise.
35628         (BUS_ADRALN): Likewise.
35629         (BUS_ADRERR): Likewise.
35630         (BUS_OBJERR): Likewise.
35631         (BUS_MCEERR_AR): Likewise.
35632         (BUS_MCEERR_AO): Likewise.
35633         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35634         (TRAP_TRACE): Likewise.
35635         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35636         __USE_XOPEN2K8].
35637         (CLD_KILLED): Likewise.
35638         (CLD_DUMPED): Likewise.
35639         (CLD_TRAPPED): Likewise.
35640         (CLD_STOPPED): Likewise.
35641         (CLD_CONTINUED): Likewise.
35642         (POLL_IN): Likewise.
35643         (POLL_OUT): Likewise.
35644         (POLL_MSG): Likewise.
35645         (POLL_ERR): Likewise.
35646         (POLL_PRI): Likewise.
35647         (POLL_HUP): Likewise.
35648         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35649         (ILL_ILLOPN): Likewise.
35650         (ILL_ILLADR): Likewise.
35651         (ILL_ILLTRP): Likewise.
35652         (ILL_PRVOPC): Likewise.
35653         (ILL_PRVREG): Likewise.
35654         (ILL_COPROC): Likewise.
35655         (ILL_BADSTK): Likewise.
35656         (FPE_INTDIV): Likewise.
35657         (FPE_INTOVF): Likewise.
35658         (FPE_FLTDIV): Likewise.
35659         (FPE_FLTOVF): Likewise.
35660         (FPE_FLTUND): Likewise.
35661         (FPE_FLTRES): Likewise.
35662         (FPE_FLTINV): Likewise.
35663         (FPE_FLTSUB): Likewise.
35664         (SEGV_MAPERR): Likewise.
35665         (SEGV_ACCERR): Likewise.
35666         (BUS_ADRALN): Likewise.
35667         (BUS_ADRERR): Likewise.
35668         (BUS_OBJERR): Likewise.
35669         (BUS_MCEERR_AR): Likewise.
35670         (BUS_MCEERR_AO): Likewise.
35671         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35672         (TRAP_TRACE): Likewise.
35673         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35674         __USE_XOPEN2K8].
35675         (CLD_KILLED): Likewise.
35676         (CLD_DUMPED): Likewise.
35677         (CLD_TRAPPED): Likewise.
35678         (CLD_STOPPED): Likewise.
35679         (CLD_CONTINUED): Likewise.
35680         (POLL_IN): Likewise.
35681         (POLL_OUT): Likewise.
35682         (POLL_MSG): Likewise.
35683         (POLL_ERR): Likewise.
35684         (POLL_PRI): Likewise.
35685         (POLL_HUP): Likewise.
35686         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35687         (ILL_ILLOPN): Likewise.
35688         (ILL_ILLADR): Likewise.
35689         (ILL_ILLTRP): Likewise.
35690         (ILL_PRVOPC): Likewise.
35691         (ILL_PRVREG): Likewise.
35692         (ILL_COPROC): Likewise.
35693         (ILL_BADSTK): Likewise.
35694         (FPE_INTDIV): Likewise.
35695         (FPE_INTOVF): Likewise.
35696         (FPE_FLTDIV): Likewise.
35697         (FPE_FLTOVF): Likewise.
35698         (FPE_FLTUND): Likewise.
35699         (FPE_FLTRES): Likewise.
35700         (FPE_FLTINV): Likewise.
35701         (FPE_FLTSUB): Likewise.
35702         (SEGV_MAPERR): Likewise.
35703         (SEGV_ACCERR): Likewise.
35704         (BUS_ADRALN): Likewise.
35705         (BUS_ADRERR): Likewise.
35706         (BUS_OBJERR): Likewise.
35707         (BUS_MCEERR_AR): Likewise.
35708         (BUS_MCEERR_AO): Likewise.
35709         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35710         (TRAP_TRACE): Likewise.
35711         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35712         __USE_XOPEN2K8].
35713         (CLD_KILLED): Likewise.
35714         (CLD_DUMPED): Likewise.
35715         (CLD_TRAPPED): Likewise.
35716         (CLD_STOPPED): Likewise.
35717         (CLD_CONTINUED): Likewise.
35718         (POLL_IN): Likewise.
35719         (POLL_OUT): Likewise.
35720         (POLL_MSG): Likewise.
35721         (POLL_ERR): Likewise.
35722         (POLL_PRI): Likewise.
35723         (POLL_HUP): Likewise.
35724         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35725         (ILL_ILLOPN): Likewise.
35726         (ILL_ILLADR): Likewise.
35727         (ILL_ILLTRP): Likewise.
35728         (ILL_PRVOPC): Likewise.
35729         (ILL_PRVREG): Likewise.
35730         (ILL_COPROC): Likewise.
35731         (ILL_BADSTK): Likewise.
35732         (ILL_DBLFLT): Likewise.
35733         (ILL_HARDWALL): Likewise.
35734         (FPE_INTDIV): Likewise.
35735         (FPE_INTOVF): Likewise.
35736         (FPE_FLTDIV): Likewise.
35737         (FPE_FLTOVF): Likewise.
35738         (FPE_FLTUND): Likewise.
35739         (FPE_FLTRES): Likewise.
35740         (FPE_FLTINV): Likewise.
35741         (FPE_FLTSUB): Likewise.
35742         (SEGV_MAPERR): Likewise.
35743         (SEGV_ACCERR): Likewise.
35744         (BUS_ADRALN): Likewise.
35745         (BUS_ADRERR): Likewise.
35746         (BUS_OBJERR): Likewise.
35747         (BUS_MCEERR_AR): Likewise.
35748         (BUS_MCEERR_AO): Likewise.
35749         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35750         (TRAP_TRACE): Likewise.
35751         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35752         __USE_XOPEN2K8].
35753         (CLD_KILLED): Likewise.
35754         (CLD_DUMPED): Likewise.
35755         (CLD_TRAPPED): Likewise.
35756         (CLD_STOPPED): Likewise.
35757         (CLD_CONTINUED): Likewise.
35758         (POLL_IN): Likewise.
35759         (POLL_OUT): Likewise.
35760         (POLL_MSG): Likewise.
35761         (POLL_ERR): Likewise.
35762         (POLL_PRI): Likewise.
35763         (POLL_HUP): Likewise.
35764         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35765         (ILL_ILLOPN): Likewise.
35766         (ILL_ILLADR): Likewise.
35767         (ILL_ILLTRP): Likewise.
35768         (ILL_PRVOPC): Likewise.
35769         (ILL_PRVREG): Likewise.
35770         (ILL_COPROC): Likewise.
35771         (ILL_BADSTK): Likewise.
35772         (FPE_INTDIV): Likewise.
35773         (FPE_INTOVF): Likewise.
35774         (FPE_FLTDIV): Likewise.
35775         (FPE_FLTOVF): Likewise.
35776         (FPE_FLTUND): Likewise.
35777         (FPE_FLTRES): Likewise.
35778         (FPE_FLTINV): Likewise.
35779         (FPE_FLTSUB): Likewise.
35780         (SEGV_MAPERR): Likewise.
35781         (SEGV_ACCERR): Likewise.
35782         (BUS_ADRALN): Likewise.
35783         (BUS_ADRERR): Likewise.
35784         (BUS_OBJERR): Likewise.
35785         (BUS_MCEERR_AR): Likewise.
35786         (BUS_MCEERR_AO): Likewise.
35787         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35788         (TRAP_TRACE): Likewise.
35789         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35790         __USE_XOPEN2K8].
35791         (CLD_KILLED): Likewise.
35792         (CLD_DUMPED): Likewise.
35793         (CLD_TRAPPED): Likewise.
35794         (CLD_STOPPED): Likewise.
35795         (CLD_CONTINUED): Likewise.
35796         (POLL_IN): Likewise.
35797         (POLL_OUT): Likewise.
35798         (POLL_MSG): Likewise.
35799         (POLL_ERR): Likewise.
35800         (POLL_PRI): Likewise.
35801         (POLL_HUP): Likewise.
35802         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35803         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35804
35805         [BZ #16670]
35806         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35807         before #include of <time.h>.
35808         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35809         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35810         (test-xfail-UNIX98/sched.h/conform): Likewise.
35811
35812 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35813
35814         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35815         error absence of trapping exception support.
35816         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35817
35818 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35819
35820         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35821         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35822         * timezone/Makefile (testdata): Move definition above include of
35823         Rules.
35824         (test-zones): New variable.
35825         (tests-special): Add zone files.
35826         (build-testdata): Use $(evaluate-test).
35827
35828         * elf/Makefile (tests-special): Rename tests to end with .out.
35829         ($(objpfx)noload-mem): Likewise.
35830         ($(objpfx)tst-leaks1-mem): Likewise.
35831         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35832         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35833         $(objpfx)test-iconvconfig.out.
35834         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35835         set -e inside subshell and redirect output to file.
35836         * iconvdata/Makefile (generated): Rename tests to end with .out.
35837         Correct type.
35838         (tests-special): Rename tests to end with .out.
35839         ($(objpfx)mtrace-tst-loading): Likewise.
35840         * intl/Makefile (generated): Likewise.
35841         (tests-special): Likewise.
35842         ($(objpfx)mtrace-tst-gettext): Likewise.
35843         * misc/Makefile (generated): Likewise.
35844         (tests-special): Likewise.
35845         ($(objpfx)tst-error1-mem): Likewise.
35846         * nptl/Makefile (tests-special): Likewise.
35847         ($(objpfx)tst-stack3-mem): Likewise.
35848         (generated): Likewise.
35849         * posix/Makefile (generated): Likewise.
35850         (tests-special): Likewise.
35851         (xtests-special): Likewise.
35852         ($(objpfx)tst-fnmatch-mem): Likewise.
35853         ($(objpfx)bug-regex2-mem): Likewise.
35854         ($(objpfx)bug-regex14-mem): Likewise.
35855         ($(objpfx)bug-regex21-mem): Likewise.
35856         ($(objpfx)bug-regex31-mem): Likewise.
35857         ($(objpfx)tst-vfork3-mem): Likewise.
35858         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35859         ($(objpfx)tst-pcre-mem): Likewise.
35860         ($(objpfx)tst-boost-mem): Likewise.
35861         ($(objpfx)bug-ga2-mem): Likewise.
35862         ($(objpfx)bug-glob2-mem): Likewise.
35863         * resolv/Makefile (generate): Likewise.
35864         (tests-special): Likewise.
35865         (xtests-special): Likewise.
35866         (generated): Likewise.
35867         ($(objpfx)mtrace-tst-leaks): Likewise.
35868         ($(objpfx)mtrace-tst-leaks2): Likewise.
35869
35870         * scripts/merge-test-results.sh: New file.
35871         * Makefile (tests-special-notdir): New variable.
35872         (tests): Run merge-test-results.sh.
35873         (xtests): Likewise.
35874         * Rules (tests-special-notdir): New variable.
35875         (xtests-special-notdir): Likewise.
35876         (tests): Run merge-test-results.sh
35877         (xtests): Likewise.
35878
35879         * Makeconfig (test-xfail-name): New variable.
35880         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35881         compute variable name for expected failures.
35882         * conform/Makefile (conformtest-headers-data): New variable.
35883         (conformtest-standards): Likewise.
35884         (conformtest-headers-ISO): Likewise.
35885         (conformtest-headers-ISO99): Likewise.
35886         (conformtest-headers-ISO11): Likewise.
35887         (conformtest-headers-POSIX): Likewise.
35888         (conformtest-headers-XPG3): Likewise.
35889         (conformtest-headers-XPG4): Likewise.
35890         (conformtest-headers-UNIX98): Likewise.
35891         (conformtest-headers-XOPEN2K): Likewise.
35892         (conformtest-headers-POSIX2008): Likewise.
35893         (conformtest-headers-XOPEN2K8): Likewise.
35894         (conformtest-header-list-base): Likewise.
35895         (conformtest-header-list-tests): Likewise.
35896         (conformtest-header-base): Likewise.
35897         (conformtest-header-tests): Likewise.
35898         (tests-special): Add $(conformtest-header-list-tests).  If
35899         [$(fast-check) && !$(cross-compiling)], add
35900         $(conformtest-header-tests) instead of
35901         $(objpfx)run-conformtest.out.
35902         (generated): Add $(conformtest-header-list-base).  If
35903         [$(fast-check) && !$(cross-compiling)], add
35904         $(conformtest-header-base).  Remove previous setting.
35905         ($(conformtest-header-list-tests)): New target.
35906         (test-xfail-run-conformtest): Remove variable.
35907         ($(objpfx)run-conformtest.out): Remove target.
35908         (test-xfail-ISO11/complex.h/conform): New variable.
35909         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35910         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35911         (test-xfail-XPG3/varargs.h/conform): Likewise.
35912         (test-xfail-XPG4/varargs.h/conform): Likewise.
35913         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35914         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35915         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35916         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35917         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35918         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35919         (test-xfail-XPG3/ftw.h/conform): Likewise.
35920         (test-xfail-XPG3/grp.h/conform): Likewise.
35921         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35922         (test-xfail-XPG3/limits.h/conform): Likewise.
35923         (test-xfail-XPG3/pwd.h/conform): Likewise.
35924         (test-xfail-XPG3/search.h/conform): Likewise.
35925         (test-xfail-XPG3/signal.h/conform): Likewise.
35926         (test-xfail-XPG3/stdio.h/conform): Likewise.
35927         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35928         (test-xfail-XPG3/string.h/conform): Likewise.
35929         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35930         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35931         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35932         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35933         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35934         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35935         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35936         (test-xfail-XPG3/termios.h/conform): Likewise.
35937         (test-xfail-XPG3/time.h/conform): Likewise.
35938         (test-xfail-XPG3/unistd.h/conform): Likewise.
35939         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35940         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35941         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35942         (test-xfail-XPG4/netdb.h/conform): Likewise.
35943         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35944         (test-xfail-XPG4/signal.h/conform): Likewise.
35945         (test-xfail-XPG4/stdio.h/conform): Likewise.
35946         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35947         (test-xfail-XPG4/stropts.h/conform): Likewise.
35948         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35949         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35950         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35951         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35952         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35953         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35954         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35955         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35956         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35957         (test-xfail-XPG4/termios.h/conform): Likewise.
35958         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35959         (test-xfail-XPG4/unistd.h/conform): Likewise.
35960         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35961         (test-xfail-POSIX/sched.h/conform): Likewise.
35962         (test-xfail-POSIX/signal.h/conform): Likewise.
35963         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35964         (test-xfail-POSIX/tar.h/conform): Likewise.
35965         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35966         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35967         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35968         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35969         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35970         (test-xfail-UNIX98/sched.h/conform): Likewise.
35971         (test-xfail-UNIX98/signal.h/conform): Likewise.
35972         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35973         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35974         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35975         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35976         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35977         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35978         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35979         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35980         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35981         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35982         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35983         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35984         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35985         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35986         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35987         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35988         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35989         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35990         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35991         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35992         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35993         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35994         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35995         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35996         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35997         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35998         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35999         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36000         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36001         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36002         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36003         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36004         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36005         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36006         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36007         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36008         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36009         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36010         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36011         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36012         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36013         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36014         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36015         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36016         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36017         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36018         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36019         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36020         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36021         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36022         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36023         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36024         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36025         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36026         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36027         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36028         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36029         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36030         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36031         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36032         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36033         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36034         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36035         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36036         (conformtest-cc-flags): Likewise.
36037         ($(conformtest-header-tests): New target.
36038         * conform/check-header-lists.sh: New file.
36039         * conform/run-conformtest.sh: Remove.
36040
36041         * conform/conformtest.pl: Allow ' and \ in values given for
36042         constants.
36043         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36044         inclusion.
36045         [POSIX] (sys/types.h): Likewise.
36046         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36047         inclusion.
36048         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36049         inclusion.
36050         * conform/data/signal.h-data (SIGIO): Remove expectation.
36051         [XPG3] (SIGBUS): Do not expect.
36052         [POSIX || XPG3] (SIGPOLL): Likewise.
36053         [POSIX || XPG3] (SIGPROF): Likewise.
36054         [POSIX || XPG3] (SIGSYS): Likewise.
36055         [XPG3] (SIGTRAP): Likewise.
36056         [POSIX || XPG3] (SIGURG): Likewise.
36057         [POSIX || XPG3] (SIGVTALRM): Likewise.
36058         [POSIX || XPG3] (SIGXCPU): Likewise.
36059         [POSIX || XPG3] (SIGXFSZ): Likewise.
36060         [POSIX] (SA_SIGINFO): Expect.
36061         [XPG3] (siginfo_t): Do not expect type or contents.
36062         [POSIX] (si_pid): Do not expect element.
36063         [POSIX] (si_uid): Likewise.
36064         [POSIX] (si_addr): Likewise.
36065         [POSIX] (si_status): Likewise.
36066         [POSIX] (si_band): Likewise.
36067         [XPG4] (si_value): Likewise.
36068         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36069         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36070         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36071         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36072         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36073         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36074         [POSIX || XPG3] (ILL_COPROC): Likewise.
36075         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36076         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36077         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36078         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36079         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36080         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36081         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36082         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36083         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36084         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36085         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36086         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36087         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36088         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36089         [POSIX || XPG3] (CLD_EXITED): Likewise.
36090         [POSIX || XPG3] (CLD_KILLED): Likewise.
36091         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36092         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36093         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36094         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36095         [POSIX || XPG3] (POLL_IN): Likewise.
36096         [POSIX || XPG3] (POLL_OUT): Likewise.
36097         [POSIX || XPG3] (POLL_MSG): Likewise.
36098         [POSIX || XPG3] (POLL_ERR): Likewise.
36099         [POSIX || XPG3] (POLL_PRI): Likewise.
36100         [POSIX || XPG3] (POLL_HUP): Likewise.
36101         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36102         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36103         (SIG*): Do not allow.
36104         [XPG3] (si_*): Likewise.
36105         [XPG3] (SI_*): Likewise.
36106         [XPG3 || XPG4] (sigev_*): Likewise.
36107         [XPG3 || XPG4] (SIGEV_*): Likewise.
36108         [XPG3 || XPG4] (sival_*): Likewise.
36109         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36110         [POSIX || XPG3] (BUS_*): Likewise.
36111         [POSIX || XPG3] (CLD_*): Likewise.
36112         [POSIX || XPG3] (FPE_*): Likewise.
36113         [POSIX || XPG3] (ILL_*): Likewise.
36114         [POSIX || XPG3] (POLL_*): Likewise.
36115         [POSIX || XPG3] (SEGV_*): Likewise.
36116         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36117         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36118         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36119         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36120         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36121         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36122         Specify type and value.
36123         (TVERSLEN): Likewise.
36124         (REGTYPE): Likewise.
36125         (AREGTYPE): Likewise.
36126         (LNKTYPE): Likewise.
36127         (SYMTYPE): Likewise.
36128         (CHRTYPE): Likewise.
36129         (BLKTYPE): Likewise.
36130         (DIRTYPE): Likewise.
36131         (FIFOTYPE): Likewise.
36132         (CONTTYPE): Likewise.
36133         (TSUID): Likewise.
36134         (TSGID): Likewise.
36135         (TSVTX): Likewise.
36136         (TUREAD): Likewise.
36137         (TUWRITE): Likewise.
36138         (TUEXEC): Likewise.
36139         (TGREAD): Likewise.
36140         (TGWRITE): Likewise.
36141         (TGEXEC): Likewise.
36142         (TOREAD): Likewise.
36143         (TOWRITE): Likewise.
36144         (TOEXEC): Likewise.
36145         [POSIX] (TSVTX): Expect constant.
36146
36147 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36148
36149         * Makefile (tests): Change dependencies to ....
36150         (tests-special): ... additions to this variable.
36151         (tests): Depend on $(tests-special).
36152         * Makerules (check-abi-list): New variable.
36153         (check-abi): Depend on $(check-abi-list).
36154         [$(subdir) = elf] (tests-special): Add
36155         $(objpfx)check-abi-libc.out.
36156         [$(build-shared) = yes && subdir] (tests-special): Add
36157         $(check-abi-list).
36158         [$(build-shared) = yes && subdir] (tests): Do not depend on
36159         check-abi.
36160         * Rules (tests): Depend on $(tests-special).
36161         (xtests): Depend on $(xtests-special).
36162         * catgets/Makefile (tests): Change dependencies to ....
36163         (tests-special): ... additions to this variable.
36164         * conform/Makefile (tests): Change dependencies to ....
36165         (tests-special): ... additions to this variable.
36166         * elf/Makefile (tests): Change dependencies to ....
36167         (tests-special): ... additions to this variable.
36168         * grp/Makefile (tests): Change dependencies to ....
36169         (tests-special): ... additions to this variable.
36170         * iconv/Makefile (xtests): Change dependencies to ....
36171         (xtests-special): ... additions to this variable.
36172         * iconvdata/Makefile (tests): Change dependencies to ....
36173         (tests-special): ... additions to this variable.
36174         * intl/Makefile (tests): Change dependencies to ....
36175         (tests-special): ... additions to this variable.  Also add
36176         $(objpfx)tst-gettext.out.
36177         * io/Makefile (tests): Change dependencies to ....
36178         (tests-special): ... additions to this variable.
36179         * libio/Makefile (tests): Change dependencies to ....
36180         (tests-special): ... additions to this variable.
36181         * malloc/Makefile (tests): Change dependencies to ....
36182         (tests-special): ... additions to this variable.
36183         * misc/Makefile (tests): Change dependencies to ....
36184         (tests-special): ... additions to this variable.
36185         * nptl/Makefile (tests): Change dependencies to ....
36186         (tests-special): ... additions to this variable.
36187         * nptl_db/Makefile (tests): Change dependencies to ....
36188         (tests-special): ... additions to this variable.
36189         * posix/Makefile (tests): Change dependencies to ....
36190         (tests-special): ... additions to this variable.
36191         (xtests): Change dependencies to ....
36192         (xtests-special): ... additions to this variable.
36193         * resolv/Makefile (tests): Change dependencies to ....
36194         (tests-special): ... additions to this variable.
36195         (xtests): Change dependencies to ....
36196         (xtests-special): ... additions to this variable.
36197         * stdio-common/Makefile (tests): Change dependencies to ....
36198         (tests-special): ... additions to this variable.
36199         (do-tst-unbputc): Remove target.
36200         (do-tst-printf): Likewise.
36201         * stdlib/Makefile (tests): Change dependencies to ....
36202         (tests-special): ... additions to this variable.
36203         * string/Makefile (tests): Change dependencies to ....
36204         (tests-special): ... additions to this variable.
36205         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36206         (tests-special): ... additions to this variable.
36207
36208         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36209         whole file.
36210         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36211         whole file.
36212         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36213         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36214
36215         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36216         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36217         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36218         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36219         * conform/data/libgen.h-data [XPG3]: Likewise.
36220         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36221         * conform/data/ndbm.h-data [XPG3]: Likewise.
36222         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36223         * conform/data/netdb.h-data [XPG3]: Likewise.
36224         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36225         * conform/data/poll.h-data [XPG3]: Likewise.
36226         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36227         * conform/data/strings.h-data [XPG3]: Likewise.
36228         * conform/data/stropts.h-data [XPG3]: Likewise.
36229         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36230         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36231         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36232         Likewise.
36233         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36234         * conform/data/sys/time.h-data [XPG3]: Likewise.
36235         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36236         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36237         * conform/data/sys/un.h-data [XPG3]: Likewise.
36238         * conform/data/syslog.h-data [XPG3]: Likewise.
36239         * conform/data/ucontext.h-data [XPG3]: Likewise.
36240         * conform/data/utmpx.h-data [XPG3]: Likewise.
36241         * conform/data/varargs.h-data [UNIX98]: Enable file.
36242
36243         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36244
36245         * math/libm-test.inc (struct test_f_f_data): Move expected results
36246         into structure for each rounding mode.
36247         (struct test_ff_f_data): Likewise.
36248         (struct test_ff_f_data_nexttoward): Likewise.
36249         (struct test_fi_f_data): Likewise.
36250         (struct test_fl_f_data): Likewise.
36251         (struct test_if_f_data): Likewise.
36252         (struct test_fff_f_data): Likewise.
36253         (struct test_c_f_data): Likewise.
36254         (struct test_f_f1_data): Likewise.
36255         (struct test_fF_f1_data): Likewise.
36256         (struct test_ffI_f1_data): Likewise.
36257         (struct test_c_c_data): Likewise.
36258         (struct test_cc_c_data): Likewise.
36259         (struct test_f_i_data): Likewise.
36260         (struct test_ff_i_data): Likewise.
36261         (struct test_f_l_data): Likewise.
36262         (struct test_f_L_data): Likewise.
36263         (struct test_fFF_11_data): Likewise.
36264         (RM_): New macro.
36265         (RM_FE_DOWNWARD): Likewise.
36266         (RM_FE_TONEAREST): Likewise.
36267         (RM_FE_TOWARDZERO): Likewise.
36268         (RM_FE_UPWARD): Likewise.
36269         (RUN_TEST_LOOP_f_f): Update references to expected results.
36270         (RUN_TEST_LOOP_2_f): Likewise.
36271         (RUN_TEST_LOOP_fff_f): Likewise.
36272         (RUN_TEST_LOOP_c_f): Likewise.
36273         (RUN_TEST_LOOP_f_f1): Likewise.
36274         (RUN_TEST_LOOP_fF_f1): Likewise.
36275         (RUN_TEST_LOOP_fI_f1): Likewise.
36276         (RUN_TEST_LOOP_ffI_f1): Likewise.
36277         (RUN_TEST_LOOP_c_c): Likewise.
36278         (RUN_TEST_LOOP_cc_c): Likewise.
36279         (RUN_TEST_LOOP_f_i): Likewise.
36280         (RUN_TEST_LOOP_f_i_tg): Likewise.
36281         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36282         (RUN_TEST_LOOP_f_b): Likewise.
36283         (RUN_TEST_LOOP_f_b_tg): Likewise.
36284         (RUN_TEST_LOOP_f_l): Likewise.
36285         (RUN_TEST_LOOP_f_L): Likewise.
36286         (RUN_TEST_LOOP_fFF_11): Likewise.
36287         * math/gen-libm-test.pl (parse_args): Output four copies of
36288         expected results for each test.
36289
36290         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36291         (__ASSUME_UTIMES): Remove.
36292         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36293         (__ASSUME_UTIMES): Likewise.
36294
36295         * math/gen-auto-libm-tests.c: Update comment on output format.
36296         (output_for_one_input_case): Generate before-rounding and
36297         after-rounding information as conditions on output flags not
36298         floating-point format.
36299         * math/auto-libm-test-out: Regenerated.
36300         * math/gen-libm-test.pl (cond_value): New function.
36301         (or_cond_value): Use cond_value.
36302         (generate_testfile): Handle conditional exceptions.
36303
36304 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36305
36306         * math/libm-test.inc (max_valid_error): New variable.
36307         (init_max_error): Take new argument specifying whether function
36308         results are exactly determined.  Set max_valid_error and bound
36309         other variables for errors based on this argument.
36310         (set_max_error): Do not record results above max_valid_error.
36311         (check_float_internal): Only accept errors of up to 0.5ulps if
36312         also at most max_valid_error.
36313         (START): Take new argument EXACT and pass it to init_max_error.
36314         (acos_test): Update call to START.
36315         (acos_test_tonearest): Likewise.
36316         (acos_test_towardzero): Likewise.
36317         (acos_test_downward): Likewise.
36318         (acos_test_upward): Likewise.
36319         (acosh_test): Likewise.
36320         (asin_test): Likewise.
36321         (asin_test_tonearest): Likewise.
36322         (asin_test_towardzero): Likewise.
36323         (asin_test_downward): Likewise.
36324         (asin_test_upward): Likewise.
36325         (asinh_test): Likewise.
36326         (atan_test): Likewise.
36327         (atanh_test): Likewise.
36328         (atan2_test): Likewise.
36329         (cabs_test): Likewise.
36330         (cacos_test): Likewise.
36331         (cacosh_test): Likewise.
36332         (carg_test): Likewise.
36333         (casin_test): Likewise.
36334         (casinh_test): Likewise.
36335         (catan_test): Likewise.
36336         (catanh_test): Likewise.
36337         (cbrt_test): Likewise.
36338         (ccos_test): Likewise.
36339         (ccosh_test): Likewise.
36340         (ceil_test): Likewise.
36341         (cexp_test): Likewise.
36342         (cimag_test): Likewise.
36343         (clog_test): Likewise.
36344         (clog10_test): Likewise.
36345         (conj_test): Likewise.
36346         (copysign_test): Likewise.
36347         (cos_test): Likewise.
36348         (cos_test_tonearest): Likewise.
36349         (cos_test_towardzero): Likewise.
36350         (cos_test_downward): Likewise.
36351         (cos_test_upward): Likewise.
36352         (cosh_test): Likewise.
36353         (cosh_test_tonearest): Likewise.
36354         (cosh_test_towardzero): Likewise.
36355         (cosh_test_downward): Likewise.
36356         (cosh_test_upward): Likewise.
36357         (cpow_test): Likewise.
36358         (cproj_test): Likewise.
36359         (creal_test): Likewise.
36360         (csin_test): Likewise.
36361         (csinh_test): Likewise.
36362         (csqrt_test): Likewise.
36363         (ctan_test): Likewise.
36364         (ctan_test_tonearest): Likewise.
36365         (ctan_test_towardzero): Likewise.
36366         (ctan_test_downward): Likewise.
36367         (ctan_test_upward): Likewise.
36368         (ctanh_test): Likewise.
36369         (ctanh_test_tonearest): Likewise.
36370         (ctanh_test_towardzero): Likewise.
36371         (ctanh_test_downward): Likewise.
36372         (ctanh_test_upward): Likewise.
36373         (erf_test): Likewise.
36374         (erfc_test): Likewise.
36375         (exp_test): Likewise.
36376         (exp_test_tonearest): Likewise.
36377         (exp_test_towardzero): Likewise.
36378         (exp_test_downward): Likewise.
36379         (exp_test_upward): Likewise.
36380         (exp10_test): Likewise.
36381         (exp10_test_tonearest): Likewise.
36382         (exp10_test_towardzero): Likewise.
36383         (exp10_test_downward): Likewise.
36384         (exp10_test_upward): Likewise.
36385         (pow10_test): Likewise.
36386         (exp2_test): Likewise.
36387         (expm1_test): Likewise.
36388         (expm1_test_tonearest): Likewise.
36389         (expm1_test_towardzero): Likewise.
36390         (expm1_test_downward): Likewise.
36391         (expm1_test_upward): Likewise.
36392         (fabs_test): Likewise.
36393         (fdim_test): Likewise.
36394         (floor_test): Likewise.
36395         (fma_test): Likewise.
36396         (fma_test_towardzero): Likewise.
36397         (fma_test_downward): Likewise.
36398         (fma_test_upward): Likewise.
36399         (fmax_test): Likewise.
36400         (fmin_test): Likewise.
36401         (fmod_test): Likewise.
36402         (fpclassify_test): Likewise.
36403         (frexp_test): Likewise.
36404         (hypot_test): Likewise.
36405         (ilogb_test): Likewise.
36406         (isfinite_test): Likewise.
36407         (finite_test): Likewise.
36408         (isgreater_test): Likewise.
36409         (isgreaterequal_test): Likewise.
36410         (isinf_test): Likewise.
36411         (isless_test): Likewise.
36412         (islessequal_test): Likewise.
36413         (islessgreater_test): Likewise.
36414         (isnan_test): Likewise.
36415         (isnormal_test): Likewise.
36416         (issignaling_test): Likewise.
36417         (isunordered_test): Likewise.
36418         (j0_test): Likewise.
36419         (j1_test): Likewise.
36420         (jn_test): Likewise.
36421         (ldexp_test): Likewise.
36422         (lgamma_test): Likewise.
36423         (gamma_test): Likewise.
36424         (lrint_test): Likewise.
36425         (lrint_test_tonearest): Likewise.
36426         (lrint_test_towardzero): Likewise.
36427         (lrint_test_downward): Likewise.
36428         (lrint_test_upward): Likewise.
36429         (llrint_test): Likewise.
36430         (llrint_test_tonearest): Likewise.
36431         (llrint_test_towardzero): Likewise.
36432         (llrint_test_downward): Likewise.
36433         (llrint_test_upward): Likewise.
36434         (log_test): Likewise.
36435         (log10_test): Likewise.
36436         (log1p_test): Likewise.
36437         (log2_test): Likewise.
36438         (logb_test): Likewise.
36439         (logb_test_downward): Likewise.
36440         (lround_test): Likewise.
36441         (llround_test): Likewise.
36442         (modf_test): Likewise.
36443         (nearbyint_test): Likewise.
36444         (nextafter_test): Likewise.
36445         (nexttoward_test): Likewise.
36446         (pow_test): Likewise.
36447         (pow_test_tonearest): Likewise.
36448         (pow_test_towardzero): Likewise.
36449         (pow_test_downward): Likewise.
36450         (pow_test_upward): Likewise.
36451         (remainder_test): Likewise.
36452         (drem_test): Likewise.
36453         (remainder_test_tonearest): Likewise.
36454         (drem_test_tonearest): Likewise.
36455         (remainder_test_towardzero): Likewise.
36456         (drem_test_towardzero): Likewise.
36457         (remainder_test_downward): Likewise.
36458         (drem_test_downward): Likewise.
36459         (remainder_test_upward): Likewise.
36460         (drem_test_upward): Likewise.
36461         (remquo_test): Likewise.
36462         (rint_test): Likewise.
36463         (rint_test_tonearest): Likewise.
36464         (rint_test_towardzero): Likewise.
36465         (rint_test_downward): Likewise.
36466         (rint_test_upward): Likewise.
36467         (round_test): Likewise.
36468         (scalb_test): Likewise.
36469         (scalbn_test): Likewise.
36470         (scalbln_test): Likewise.
36471         (signbit_test): Likewise.
36472         (sin_test): Likewise.
36473         (sin_test_tonearest): Likewise.
36474         (sin_test_towardzero): Likewise.
36475         (sin_test_downward): Likewise.
36476         (sin_test_upward): Likewise.
36477         (sincos_test): Likewise.
36478         (sinh_test): Likewise.
36479         (sinh_test_tonearest): Likewise.
36480         (sinh_test_towardzero): Likewise.
36481         (sinh_test_downward): Likewise.
36482         (sinh_test_upward): Likewise.
36483         (sqrt_test): Likewise.
36484         (sqrt_test_tonearest): Likewise.
36485         (sqrt_test_towardzero): Likewise.
36486         (sqrt_test_downward): Likewise.
36487         (sqrt_test_upward): Likewise.
36488         (tan_test): Likewise.
36489         (tan_test_tonearest): Likewise.
36490         (tan_test_towardzero): Likewise.
36491         (tan_test_downward): Likewise.
36492         (tan_test_upward): Likewise.
36493         (tanh_test): Likewise.
36494         (tgamma_test): Likewise.
36495         (trunc_test): Likewise.
36496         (y0_test): Likewise.
36497         (y1_test): Likewise.
36498         (yn_test): Likewise.
36499         (significand_test): Likewise.
36500
36501         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36502         individual tests in comment.
36503         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36504         (prev_max_error): New variable.
36505         (prev_real_max_error): Likewise.
36506         (prev_imag_max_error): Likewise.
36507         (compare_ulp_data): Don't refer to test names in comment.
36508         (find_test_ulps): Remove function.
36509         (find_function_ulps): Likewise.
36510         (find_complex_function_ulps): Likewise.
36511         (init_max_error): Take function name as argument.  Look up ulps
36512         for that function.
36513         (print_ulps): Remove function.
36514         (print_max_error): Use prev_max_error instead of calling
36515         find_function_ulps.
36516         (print_complex_max_error): Use prev_real_max_error and
36517         prev_imag_max_error instead of calling find_complex_function_ulps.
36518         (check_float_internal): Take max_ulp parameter instead of calling
36519         find_test_ulps.  Don't call print_ulps.
36520         (check_float): Update call to check_float_internal.
36521         (check_complex): Update calls to check_float_internal.
36522         (START): Pass argument to init_max_error.
36523         * math/gen-libm-test.pl (%results): Don't include "kind"
36524         information.
36525         (parse_ulps): Don't handle ulps of individual tests.
36526         (print_ulps_file): Likewise.
36527         (output_ulps): Likewise.
36528         * math/README.libm-test: Update.
36529         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36530         individual tests.
36531         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36532         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36533         * sysdeps/arm/libm-test-ulps: Likewise.
36534         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36535         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36536         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36537         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36538         * sysdeps/microblaze/libm-test-ulps: Likewise.
36539         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36540         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36541         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36542         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36543         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36544         * sysdeps/sh/libm-test-ulps: Likewise.
36545         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36546         * sysdeps/tile/libm-test-ulps: Likewise.
36547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36548
36549 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36550
36551         * math/libm-test.inc (print_complex_max_error): Check separately
36552         whether real and imaginary errors are within allowed range and
36553         pass 0 to print_complex_function_ulps instead of value within
36554         allowed range.
36555
36556 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36557
36558         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36559         formatting.
36560         (get_handles_fopen): Likewise.
36561         (do_write_test): Likewise.
36562
36563         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36564
36565         * libio/fileops.c (do_ftell): Use cached offset when
36566         available.
36567         * libio/iofwide.c (do_ftell_wide): Likewise.
36568         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36569         _IO_file_attach.
36570         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36571
36572         [BZ #16532]
36573         * libio/libioP.h (get_file_offset): New function.
36574         * libio/fileops.c (get_file_offset): Likewise.
36575         (do_ftell): Likewise.
36576         (_IO_new_file_seekoff): Split out ftell logic.
36577         * libio/wfileops.c (do_ftell_wide): Likewise.
36578         (_IO_wfile_seekoff): Split out ftell logic.
36579         * libio/tst-ftell-active-handler.c: New test case.
36580         * libio/Makefile (tests): Add it.
36581
36582 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36583
36584         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36585         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36586
36587 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36588
36589         [BZ #16639]
36590         * nscd/connections.c (nscd_init): Call do_exit.
36591         (start_threads): Call do_exit and notify_parent.
36592         (begin_drop_privileges): Call do_exit.
36593         (finish_drop_privileges): Likewise.
36594         * nscd/selinux.c (preserve_capabilities): Likewise.
36595         (install_real_capabilities): Likewise.
36596         (nscd_selinux_enabled): Likewise.
36597         (avc_create_thread): Likewise.
36598         (avc_alloc_lock): Likewise.
36599         (nscd_avc_init): Likewise.
36600         * nscd/nscd.c (parent_fd): New static variable.
36601         (main): Create a pipe between parent and child processes.
36602         Skip closing parent_fd.
36603         (monitor_child): New function.
36604         (do_exit): Likewise.
36605         (notify_parent): Likewise.
36606         * nscd/nscd.h (notify_parent): Likewise.
36607         (do_exit): Likewise.
36608
36609 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36610
36611         * malloc/malloc.c (__libc_calloc): Revert last change.
36612
36613 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36614
36615         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36616
36617 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36618
36619         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36620         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36621         implementation.
36622         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36623         (__libc_ifunc_impl_list): Likewise.
36624         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36625         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36626         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36627         * string/strrchr.c: Define STRRCHR.
36628
36629 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36630
36631         * benchtest/bench-strtok.c (simple_strtok): Delete.
36632         (strtok_string): Use as benchmark.
36633         * string/strtok (STRTOK): New macro.
36634
36635 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36636
36637         * manual/threads.texi: Add header and standard comments to all
36638         functions.
36639
36640         * elf/dl-lookup.c (check_match): New function.
36641         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36642         (do_lookup_x): Remove nested function check_match. Use non-nested
36643         function check_match.
36644
36645 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36646
36647         * csu/Makefile (generated, before-compile): Use += rather than =.
36648         * catgets/Makefile (generated, generated-dirs): Likewise.
36649         * debug/Makefile (generated): Likewise.
36650         * dlfcn/Makefile (generated): Likewise.
36651         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36652         * iconvdata/Makefile (before-compile, generated): Likewise.
36653         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36654         * libio/Makefile (generated): Likewise.
36655         * malloc/Makefile (generated): Likewise.
36656         * manual/Makefile (generated, generated-dirs): Likewise.
36657         * misc/Makefile (generated): Likewise.
36658         * posix/Makefile (generated): Likewise.
36659         * resolv/Makefile (generated): Likewise.
36660         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36661         * timezone/Makefile (generated, generated-dirs): Likewise.
36662
36663         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36664
36665 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36666
36667         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36668         power8 implementation.
36669         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36670         file: POWER8 llround ifunc implementation.
36671         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36672         (__lllround): Add POWER8 implementation.
36673         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36674         POWER8 llround implementation.
36675
36676         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36677         power8 implementation.
36678         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36679         file: POWER8 llrint ifunc implementation.
36680         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36681         Add POWER8 implementation.
36682         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36683         POWER8 llrint implementation.
36684
36685         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36686         power8 implementation.
36687         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36688         file: POWER8 finite ifunc implementation.
36689         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36690         Add POWER8 implementation.
36691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36692         Likewise.
36693         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36694         POWER8 finite implementation.
36695         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36696
36697         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36698         power8 implementation.
36699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36700         file: POWER8 isinf ifunc implementation.
36701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36702         POWER8 implementation.
36703         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36704         Likewise.
36705         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36706         isinf implementation.
36707         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36708
36709         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36710         (INIT_ARCH): Add hwcap2 initialization.
36711         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36712         power8 implementation.
36713         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36714         file: POWER8 isnan ifunc implementation.
36715         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36716         POWER8 implementation.
36717         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36718         Likewise.
36719         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36720         isnan implementation.
36721         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36722
36723 2014-02-27  Joey Ye  <joey.ye@arm.com>
36724
36725         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36726         (_FP_NANFRAC_Q): Set to zero.
36727
36728 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36729
36730         [BZ #16623]
36731         * math/auto-libm-test-in: New test inputs.
36732         * math/auto-libm-test-out: Regenerate.
36733         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36734         and DA.
36735         (__cos): Likewise.
36736         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36737
36738 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36739
36740         * scripts/evaluate-test.sh: Take new argument indicating whether
36741         failure is expected.
36742         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36743         indicating whether failure is expected.
36744         * conform/Makefile (test-xfail-run-conformtest): New variable.
36745         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36746         level.
36747         * posix/Makefile (test-xfail-annexc): New variable.
36748         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36749
36750 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36751
36752         * argp/Makefile: Include Makeconfig immediately after defining
36753         subdir.
36754         * assert/Makefile: Likewise.
36755         * benchtests/Makefile: Likewise.
36756         * catgets/Makefile: Likewise.
36757         * conform/Makefile: Likewise.
36758         * crypt/Makefile: Likewise.
36759         * csu/Makefile: Likewise.
36760         (all): Remove target.
36761         * ctype/Makefile: Include Makeconfig immediately after defining
36762         subdir.
36763         * debug/Makefile: Likewise.
36764         * dirent/Makefile: Likewise.
36765         * dlfcn/Makefile: Likewise.
36766         * gmon/Makefile: Likewise.
36767         * gnulib/Makefile: Likewise.
36768         * grp/Makefile: Likewise.
36769         * gshadow/Makefile: Likewise.
36770         * hesiod/Makefile: Likewise.
36771         * hurd/Makefile: Likewise.
36772         (all): Remove target.
36773         * iconvdata/Makefile: Include Makeconfig immediately after
36774         defining subdir.
36775         * inet/Makefile: Likewise.
36776         * intl/Makefile: Likewise.
36777         * io/Makefile: Likewise.
36778         * libio/Makefile: Likewise.
36779         (all): Remove target.
36780         * locale/Makefile: Include Makeconfig immediately after defining
36781         subdir.
36782         * login/Makefile: Likewise.
36783         * mach/Makefile: Likewise.
36784         (all): Remove target.
36785         * malloc/Makefile: Include Makeconfig immediately after defining
36786         subdir.
36787         (all): Remove target.
36788         * manual/Makefile: Include Makeconfig immediately after defining
36789         subdir.
36790         * math/Makefile: Likewise.
36791         * misc/Makefile: Likewise.
36792         * nis/Makefile: Likewise.
36793         * nss/Makefile: Likewise.
36794         * po/Makefile: Likewise.
36795         (all): Remove target.
36796         * posix/Makefile: Include Makeconfig immediately after defining
36797         subdir.
36798         * pwd/Makefile: Likewise.
36799         * resolv/Makefile: Likewise.
36800         * resource/Makefile: Likewise.
36801         * rt/Makefile: Likewise.
36802         * setjmp/Makefile: Likewise.
36803         * shadow/Makefile: Likewise.
36804         * signal/Makefile: Likewise.
36805         * socket/Makefile: Likewise.
36806         * soft-fp/Makefile: Likewise.
36807         * stdio-common/Makefile: Likewise.
36808         * stdlib/Makefile: Likewise.
36809         * streams/Makefile: Likewise.
36810         * string/Makefile: Likewise.
36811         * sunrpc/Makefile: Likewise.
36812         (all): Remove target.
36813         * sysvipc/Makefile: Include Makeconfig immediately after defining
36814         subdir.
36815         * termios/Makefile: Likewise.
36816         * time/Makefile: Likewise.
36817         * timezone/Makefile: Likewise.
36818         (all): Remove target.
36819         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36820         subdir.
36821         * wctype/Makefile: Likewise.
36822
36823 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36824
36825         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36826         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36827         (libc_feholdexcept_setround_mips): Ditto.
36828         (libc_feholdsetround): New.
36829         (libc_feholdsetroundf): New.
36830         (libc_feholdsetroundl): New.
36831         (libc_feupdateenv_test_mips): New.
36832         (libc_feupdateenv_test): New.
36833         (libc_feupdateenv_testf): New.
36834         (libc_feupdateenv_testl): New.
36835         (libc_feresetround): New.
36836         (libc_feresetroundf): New.
36837         (libc_feresetroundl): New.
36838         (libc_fetestexcept_mips): New.
36839         (libc_fetestexcept): New.
36840         (libc_fetestexceptf): New.
36841         (libc_fetestexceptl): New.
36842         (HAVE_RM_CTX): New.
36843         (libc_feholdexcept_setround_mips_ctx): New.
36844         (libc_feholdexcept_setround_ctx): New.
36845         (libc_feholdexcept_setroundf_ctx): New.
36846         (libc_feholdexcept_setroundl_ctx): New.
36847         (libc_fesetenv_mips_ctx): New.
36848         (libc_fesetenv_ctx): New.
36849         (libc_fesetenv_ctxf): New.
36850         (libc_fesetenv_ctxl): New.
36851         (libc_feupdateenv_mips_ctx): New.
36852         (libc_feupdateenv_ctx): New.
36853         (libc_feupdateenvf_ctx): New.
36854         (libc_feupdateenvl_ctx): New.
36855         (libc_feholdsetround_mips_ctx): New.
36856         (libc_feholdsetround_ctx): New.
36857         (libc_feholdsetroundf_ctx): New.
36858         (libc_feholdsetroundl_ctx): New.
36859         (libc_feresetround_mips_ctx): New.
36860         (libc_feresetround_ctx): New.
36861         (libc_feresetroundf_ctx): New.
36862         (libc_feresetroundl_ctx): New.
36863
36864 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36865
36866         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36867
36868         * manual/ipc.texi: New file.
36869         * manual/Makefile (chapters): Add ipc.
36870         * manual/job.texi: Add "Inter-Process Communication" to next.
36871         * manual/process.texi: Add "Inter-Process Communication" to prev.
36872
36873 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36874
36875         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36876
36877 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36878
36879         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36880
36881         * manual/arith.texi: Fix spaces after sentences.
36882         * manual/charset.texi: Likewise.
36883         * manual/errno.texi: Likewise.
36884         * manual/install.texi: Likewise.
36885         * manual/llio.texi: Likewise.
36886         * manual/locale.texi: Likewise.
36887         * manual/maint.texi: Likewise.
36888         * manual/math.texi: Likewise.
36889         * manual/memory.texi: Likewise.
36890         * manual/message.texi: Likewise.
36891         * manual/probes.texi: Likewise.
36892         * manual/resource.texi: Likewise.
36893         * manual/signal.texi: Likewise.
36894         * manual/socket.texi: Likewise.
36895         * manual/stdio.texi: Likewise.
36896         * manual/string.texi: Likewise.
36897         * manual/time.texi: Likewise.
36898         * manual/users.texi: Likewise.
36899
36900 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36901
36902         [BZ #16632]
36903         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36904         _DEFAULT_SOURCE is defined.
36905
36906 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36907             Carlos O'Donell  <carlos@redhat.com>
36908
36909         [BZ #16613]
36910         * elf/dl-tls.c (_dl_count_modids): New function.
36911         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36912         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36913         audit library and increment generation counter.
36914         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36915         * elf/tst-audit9.c: New file.
36916         * elf/tst-auditmod9a.c: New file.
36917         * elf/tst-auditmod9b.c: New file.
36918         * elf/Makefile: Add rules to build and run tst-audit9.
36919
36920 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36921
36922         [BZ #15347]
36923         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36924
36925 2014-02-25  Will Newton  <will.newton@linaro.org>
36926
36927         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36928         (__longjmp): Restore sp and lr before restoring callee
36929         saved registers.  Add longjmp and longjmp_target
36930         SystemTap probe point.
36931         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36932         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36933         Define to zero to match jmpbuf layout.
36934         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36935         (__sigsetjmp): Save sp and lr before saving callee
36936         saved registers.  Add setjmp SystemTap probe point.
36937
36938 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36939
36940         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36941
36942 2014-02-24  Andreas Schwab  <schwab@suse.de>
36943
36944         [BZ #15804]
36945         * elf/pldd.c (wait_for_ptrace_stop): New function.
36946         (main): Call it after attaching.
36947
36948 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36949
36950         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36951         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36952         Versions files is now verboten.
36953         * hurd/Versions (libc: GLIBC_2.0):
36954         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36955         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36956         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36957         * mach/Versions: Likewise.
36958
36959         * csu/Versions: Remove unused %include.
36960         * resolv/Versions: Likewise.
36961
36962 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36963
36964         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36965         ($(objpfx)check-local-headers.out): Likewise.
36966         ($(objpfx)begin-end-check.out): Likewise.
36967         * Makerules (check-abi-%.out): Likewise.
36968         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36969         ($(objpfx)test2.cat): Likewise.
36970         ($(objpfx)de/libc.cat): Likewise.
36971         ($(objpfx)test-gencat.out): Likewise.
36972         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36973         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36974         ($(objpfx)noload-mem): Likewise.
36975         ($(objpfx)tst-pathopt.out): Likewise.
36976         ($(objpfx)tst-rtld-load-self.out): Likewise.
36977         ($(objpfx)tst-array1-cmp.out): Likewise.
36978         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36979         ($(objpfx)tst-array2-cmp.out): Likewise.
36980         ($(objpfx)tst-array3-cmp.out): Likewise.
36981         ($(objpfx)tst-array4-cmp.out): Likewise.
36982         ($(objpfx)tst-array5-cmp.out): Likewise.
36983         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36984         ($(objpfx)check-textrel.out): Likewise.
36985         ($(objpfx)check-execstack.out): Likewise.
36986         ($(objpfx)check-localplt.out): Likewise.
36987         ($(objpfx)order2-cmp.out): Likewise.
36988         ($(objpfx)tst-leaks1-mem): Likewise.
36989         ($(objpfx)tst-leaks1-static-mem): Likewise.
36990         ($(objpfx)tst-initorder-cmp.out): Likewise.
36991         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36992         ($(objpfx)tst-unused-dep.out): Likewise.
36993         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36994         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36995         * iconv/Makefile (test-iconvconfig): Likewise.
36996         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36997         ($(objpfx)iconv-test.out): Likewise.
36998         ($(objpfx)tst-tables.out): Likewise.
36999         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37000         ($(objpfx)tst-gettext.out): Likewise.
37001         ($(objpfx)tst-translit.out): Likewise.
37002         ($(objpfx)tst-gettext2.out): Likewise.
37003         ($(objpfx)tst-gettext4.out): Likewise.
37004         ($(objpfx)tst-gettext6.out): Likewise.
37005         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37006         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37007         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37008         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37009         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37010         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37011         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37012         ($(objpfx)wordexp-tst.out): Likewise.
37013         ($(objpfx)annexc.out): Likewise.
37014         ($(objpfx)tst-fnmatch-mem): Likewise.
37015         ($(objpfx)bug-regex2-mem): Likewise.
37016         ($(objpfx)bug-regex14-mem): Likewise.
37017         ($(objpfx)bug-regex21-mem): Likewise.
37018         ($(objpfx)bug-regex31-mem): Likewise.
37019         ($(objpfx)tst-vfork3-mem): Likewise.
37020         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37021         ($(objpfx)tst-pcre-mem): Likewise.
37022         ($(objpfx)tst-boost-mem): Likewise.
37023         ($(objpfx)tst-getconf.out): Likewise.
37024         ($(objpfx)bug-ga2-mem): Likewise.
37025         ($(objpfx)bug-glob2-mem): Likewise.
37026         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37027         ($(objpfx)mtrace-tst-leaks2): Likewise.
37028         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37029         ($(objpfx)tst-printf.out): Likewise.
37030         ($(objpfx)tst-setvbuf1.out): Likewise.
37031         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37032         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37033         ($(objpfx)tst-fmtmsg.out): Likewise.
37034         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37035         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37036
37037         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37038         * bits/sigaction.h [__USE_MISC]: Likewise.
37039         * bits/waitstatus.h: Update #endif comments.
37040         * ctype/ctype.h: Likewise.
37041         * dirent/dirent.h: Likewise.
37042         [__USE_MISC]: Remove redundant conditionals.
37043         * grp/grp.h: Update #endif comments.
37044         [__USE_GNU]: Remove redundant conditionals.
37045         [__USE_MISC]: Likewise.
37046         * inet/netinet/in.h [__USE_GNU]: Likewise.
37047         * io/sys/stat.h [__USE_MISC]: Likewise.
37048         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37049         * libio/bits/stdio.h: Update #endif comments.
37050         [__USE_MISC]: Remove redundant conditionals.
37051         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37052         * libio/stdio.h: Update #endif comments.
37053         [__USE_MISC]: Remove redundant conditionals.
37054         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37055         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37056         * math/math.h: Update #else and #endif comments.
37057         [__USE_MISC]: Remove redundant conditionals.
37058         * misc/sys/uio.h: Update #endif comments.
37059         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37060         * posix/glob.h [__USE_MISC]: Likewise.
37061         * posix/sys/types.h: Update #endif comments.
37062         [__USE_MISC]: Remove redundant conditionals.
37063         * posix/sys/wait.h: Update #endif comments.
37064         [__USE_MISC]: Remove redundant conditionals.
37065         * posix/unistd.h: Update #endif comments.
37066         [__USE_MISC]: Remove redundant conditionals.
37067         * pwd/pwd.h [__USE_GNU]: Likewise.
37068         [__USE_MISC]: Likewise.
37069         * resolv/netdb.h [__USE_GNU]: Likewise.
37070         * signal/signal.h: Update #endif comments.
37071         [__USE_MISC]: Remove redundant conditionals.
37072         * stdlib/stdlib.h: Update #else and #endif comments.
37073         [__USE_MISC]: Remove redundant conditionals.
37074         [__USE_GNU]: Likewise.
37075         * string/bits/string2.h [__USE_MISC]: Likewise.
37076         * string/string.h: Update #endif comments.
37077         [__USE_MISC]: Remove redundant conditionals.
37078         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37079         Likewise.
37080         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37081         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37082         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37083         Likewise.
37084         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37085         Likewise.
37086         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37087         comments.
37088         [__USE_MISC]: Remove redundant conditionals.
37089         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37090         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37091         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37092         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37093         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37094         Likewise.
37095         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37096         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37097         Likewise.
37098         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37099         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37100         Likewise.
37101         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37102         Likewise.
37103         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37104         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37105         Likewise.
37106         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37107         Likewise.
37108         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37109         * sysdeps/x86/bits/string.h: Update #endif comments.
37110         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37111         conditionals.
37112         * time/sys/time.h: Update #endif comments.
37113         * time/time.h: Likewise.
37114         [__USE_MISC]: Remove redundant conditionals.
37115
37116 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37117
37118         [BZ #16600]
37119         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37120
37121 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37122
37123         * Versions.def (librt): Add GLIBC_2.17.
37124
37125 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37126
37127         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37128         synonym for _SYS_AUXV_H to allow direct inclusion.
37129         * sysdeps/sparc/bits/hwcap.h: Likewise.
37130         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37131         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37132         * sysdeps/sparc/sysdep.h: Likewise.
37133
37134 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37135
37136         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37137
37138 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37139
37140         * benchtests/bench-strrchr.c: Print length instead of position.
37141
37142 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37143
37144         [BZ #16611]
37145         * sysdeps/unix/sysv/linux/kernel-features.h
37146         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37147         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37148         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37149         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37150         Likewise.
37151         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37152         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37153         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37154         (__ASSUME_SENDMMSG): Define instead of using previous
37155         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37156         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37157         (__ASSUME_SENDMMSG_SYSCALL): Define.
37158         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37159         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37160         Likewise.
37161         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37162         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37163         Likewise.
37164         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37165         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37166         Likewise.
37167         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37168         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37169         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37170         [__ASSUME_SENDMMSG]: Change conditionals to
37171         [__ASSUME_SENDMMSG_SOCKETCALL].
37172         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37173         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37174         Define.
37175         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37176         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37177         Likewise.
37178         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37179         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37180         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37181         [!__ASSUME_SENDMMSG]: Change conditional to
37182         [!__ASSUME_SENDMMSG_SOCKETCALL].
37183         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37184         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37185         Define.
37186
37187         [BZ #16610]
37188         * sysdeps/unix/sysv/linux/kernel-features.h
37189         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37190         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37191         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37192         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37193         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37194         [__i386__ || __sparc__]
37195         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37196         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37197         (__ASSUME_RECVMMSG): Define instead of using previous
37198         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37199         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37200         (__ASSUME_RECVMMSG_SYSCALL): Define.
37201         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37202         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37203         Likewise.
37204         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37205         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37206         Likewise.
37207         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37208         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37209         Likewise.
37210         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37211         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37212         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37213         [__ASSUME_RECVMMSG]: Change condition to
37214         [__ASSUME_RECVMMSG_SOCKETCALL].
37215         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37216         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37217         Define.
37218         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37219         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37220         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37221         Likewise.
37222         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37223         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37224         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37225         [!__ASSUME_RECVMMSG]: Change condition to
37226         [!__ASSUME_RECVMMSG_SOCKETCALL].
37227         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37228         (__ASSUME_RECVMMSG_SYSCALL): Define.
37229
37230         [BZ #16609]
37231         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37232         __powerpc__ || __s390__ || __sh__ || __sparc__]
37233         (__ASSUME_SOCKETCALL): Define.
37234         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37235         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37236         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37237         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37238         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37239         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37240         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37241         (__ASSUME_ACCEPT4): Define instead of using previous
37242         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37243         __powerpc__ || __sparc__ || __s390__)] condition.
37244         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37245         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37246         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37247         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37248         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37249         [!__ASSUME_ACCEPT4]: Change condition to
37250         [!__ASSUME_ACCEPT4_SOCKETCALL].
37251         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37252         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37253         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37254         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37255         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37256         __ASSUME_ACCEPT4_SYSCALL.
37257         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37258         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37259         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37260         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37261         __ASSUME_ACCEPT4_SYSCALL.
37262         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37263         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37264         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37265         [__ASSUME_ACCEPT4]: Change condition to
37266         [__ASSUME_ACCEPT4_SOCKETCALL].
37267         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37268         (__ASSUME_SOCKETCALL): Define.
37269         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37270         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37271         (__ASSUME_SOCKETCALL): Define.
37272         (__ASSUME_ACCEPT4): Remove.
37273         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37274         Define.
37275         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37276         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37277         Likewise.
37278         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37279         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37280
37281         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37282         macro.
37283         (HWCAP_ARM_LPAE): Likewise.
37284         (HWCAP_ARM_EVTSTRM): Likewise.
37285         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37286         Add vpfd32, lpae and evtstrm.
37287         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37288         Increase to 22.
37289
37290 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37291
37292         * math/auto-libm-test-in: Add tests of clog10.
37293         * math/auto-libm-test-out: Regenerated.
37294         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37295         * sysdeps/i386/fpu/libm-test-ulps: Update.
37296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37297
37298 2014-02-18  Andreas Schwab  <schwab@suse.de>
37299
37300         [BZ #16574]
37301         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37302         Store non-zero if the second buffer was newly allocated.
37303         (send_dg): Likewise.
37304         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37305         to send_vc and send_dg.
37306         (res_nsend): Pass NULL for ansp2_malloced.
37307         * resolv/res_query.c (__libc_res_nquery): Add parameter
37308         answerp2_malloced and pass it down to __libc_res_nsend.
37309         (res_nquery): Pass additional NULL to __libc_res_nquery.
37310         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37311         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37312         second answer buffer if answerp2_malloced was set.
37313         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37314         (__libc_res_nquerydomain): Add parameter
37315         answerp2_malloced and pass it down to __libc_res_nquery.
37316         (res_nquerydomain): Pass additional NULL to
37317         __libc_res_nquerydomain.
37318         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37319         additional NULL to __libc_res_nsend and __libc_res_nquery.
37320         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37321         additional NULL to __libc_res_nsearch.
37322         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37323         parameter of __libc_res_nsearch to check for separately allocated
37324         second buffer.
37325         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37326         __libc_res_nquery.
37327         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37328         additional NULL to __libc_res_nquery.
37329         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37330         __libc_res_nsearch.
37331         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37332         * include/resolv.h: Update prototypes of __libc_res_nquery,
37333         __libc_res_nsearch, __libc_res_nsend.
37334
37335 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37336
37337         * math/auto-libm-test-in: Add tests of fma.
37338         * math/auto-libm-test-out: Regenerated.
37339         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37340         (fma_towardzero_test_data): Likewise.
37341         (fma_downward_test_data): Likewise.
37342         (fma_upward_test_data): Likewise.
37343         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37344         mpc_mode.
37345         (rounding_modes): Add values for new field.
37346         (func_calc_method): Add value mpfr_fff_f.
37347         (func_calc_desc): Add mpfr_fff_f union field.
37348         (test_function): Add field exact_args.
37349         (FUNC): Add macro argument EXACT_ARGS.
37350         (FUNC_mpfr_f_f): Update call to FUNC.
37351         (FUNC_mpfr_f_f): Likewise.
37352         (FUNC_mpfr_ff_f): Likewise.
37353         (FUNC_mpfr_if_f): Likewise.
37354         (FUNC_mpc_c_f): Likewise.
37355         (FUNC_mpc_c_c): Likewise.
37356         (test_functions): Add fma.  Update calls to FUNC.
37357         (handle_input_arg): Add argument exact_args.
37358         (add_test): Update call to handle_input_arg.
37359         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37360         (output_for_one_input_case): Update call to calc_generic_results.
37361         Recalculate exact zero results in each rounding mode.
37362
37363         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37364         non-negative before setting low bit.
37365         * math/auto-libm-test-in: Mark one asin test possibly having
37366         spurious underflow.
37367         * math/auto-libm-test-out: Regenerated.
37368         * sysdeps/i386/fpu/libm-test-ulps: Update.
37369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37370
37371 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37372
37373         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37374         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37375         ports/sysdeps/unix/sysv/linux/microblaze.
37376         * README: Add missing listing for microblaze*-*-linux-gnu.
37377
37378 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37379
37380         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37381         duplicate code
37382
37383 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37384
37385         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37386         * sysdeps/unix/sysv/linux/ia64: Move directory from
37387         ports/sysdeps/unix/sysv/linux/ia64.
37388         * README: Update listing for ia64-*-linux-gnu.
37389
37390 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37391             Joseph Myers  <joseph@codesourcery.com>
37392
37393         * Makeconfig (test-name): New variable.
37394         (evaluate-test): Likewise.
37395         * Makerules (do-test-clean): Remove .test-result files.
37396         (common-mostlyclean): Likewise.
37397         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37398         * scripts/evaluate-test.sh: New file.
37399
37400 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37401
37402         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37403         separate $(objpfx)tst-fopenloc-cmp.out and
37404         $(objpfx)tst-fopenloc-mem.out targets.
37405         (tests): Update dependencies.
37406         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37407         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37408         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37409         (tst-rxspencer-no-utf8-ARGS): New variable.
37410         (tst-rxspencer-no-utf8-ENV): Likewise.
37411         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37412         instead of $(objpfx)tst-rxspencer-mem.
37413         ($(objpfx)tst-rxspencer-mem): Change target to
37414         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37415         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37416         * posix/tst-rxspencer-no-utf8.c: New file.
37417
37418         * elf/Makefile ($(objpfx)order.out): Remove rule.
37419         [$(run-built-tests) = yes] (tests): Depend on
37420         $(objpfx)order-cmp.out.
37421         ($(objpfx)order-cmp.out): New rule.
37422         [$(run-built-tests) = yes] (tests): Depend on
37423         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37424         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37425         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37426         $(objpfx)tst-array5-static-cmp.out.
37427         ($(objpfx)tst-array1.out): Remove rule.
37428         ($(objpfx)tst-array1-cmp.out): New rule.
37429         ($(objpfx)tst-array1-static.out): Remove rule.
37430         ($(objpfx)tst-array1-static-cmp.out): New rule.
37431         ($(objpfx)tst-array2.out): Remove rule.
37432         ($(objpfx)tst-array2-cmp.out): New rule.
37433         ($(objpfx)tst-array3.out): Remove rule.
37434         ($(objpfx)tst-array3-cmp.out): New rule.
37435         ($(objpfx)tst-array4.out): Remove rule.
37436         ($(objpfx)tst-array4-cmp.out): New rule.
37437         ($(objpfx)tst-array5.out): Remove rule.
37438         ($(objpfx)tst-array5-cmp.out): New rule.
37439         ($(objpfx)tst-array5-static.out): Remove rule.
37440         ($(objpfx)tst-array5-static-cmp.out): New rule.
37441         [$(run-built-tests) = yes] (tests): Depend on
37442         $(objpfx)order2-cmp.out.
37443         ($(objpfx)order2.out): Remove rule.
37444         ($(objpfx)order2-cmp.out): New rule.
37445         ($(objpfx)tst-initorder.out): Remove rule.
37446         [$(run-built-tests) = yes] (tests): Depend on
37447         $(objpfx)tst-initorder-cmp.out.
37448         ($(objpfx)tst-initorder-cmp.out): New rule.
37449         ($(objpfx)tst-initorder2.out): Remove rule.
37450         [$(run-built-tests) = yes] (tests): Depend on
37451         $(objpfx)tst-initorder2-cmp.out.
37452         ($(objpfx)tst-initorder2-cmp.out): New rule.
37453         [$(run-built-tests) = yes] (tests): Depend on
37454         $(objpfx)tst-unused-dep-cmp.out.
37455         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37456         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37457         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37458         on $(objpfx)tst-setvbuf1-cmp.out.
37459         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37460         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37461         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37462         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37463         ($(objpfx)tst-svc.out): Remove rule.
37464         ($(objpfx)tst-svc-cmp.out): New rule.
37465
37466 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37467
37468         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37469         * ctype/ctype.h [__USE_MISC]: Likewise.
37470         * dirent/dirent.h [__USE_MISC]: Likewise.
37471         * grp/grp.h [__USE_MISC]: Likewise.
37472         * io/fcntl.h [__USE_MISC]: Likewise.
37473         * io/sys/stat.h [__USE_MISC]: Likewise.
37474         * libio/stdio.h [__USE_MISC]: Likewise.
37475         * posix/unistd.h [__USE_MISC]: Likewise.
37476         * pwd/pwd.h [__USE_MISC]: Likewise.
37477         * stdlib.h [__USE_MISC]: Likewise.
37478         * string/bits/string2.h [__USE_MISC]: Likewise.
37479         * string/string.h [__USE_MISC]: Likewise.
37480         * time/time.h [__USE_MISC]: Likewise.
37481
37482 2014-02-13  Andreas Schwab  <schwab@suse.de>
37483
37484         [BZ #16574]
37485         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37486         second answer buffer if it was separately allocated.
37487
37488 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37489
37490         * sysdeps/mips/math-tests.h: Include <features.h>.
37491         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37492         (ROUNDING_TESTS_long_double): Do not define.
37493         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37494         (EXCEPTION_TESTS_long_double): Likewise.
37495         * sysdeps/mips/mips64/libm-test-ulps: Update.
37496
37497         * include/features.h (__USE_BSD): Remove macro definitions.
37498         (__USE_SVID): Likewise.
37499         (_BSD_SOURCE): Likewise.
37500         (_SVID_SOURCE): Likewise.
37501         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37502         from definition of _DEFAULT_SOURCE.
37503         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37504         [_DEFAULT_SOURCE].
37505         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37506         * bits/mman.h [__USE_BSD]: Likewise.
37507         * bits/termios.h [__USE_BSD]: Likewise.
37508         * bits/waitstatus.h [__USE_BSD]: Likewise.
37509         * ctype/ctype.h [__USE_SVID]: Likewise.
37510         * dirent/dirent.h [__USE_BSD]: Likewise.
37511         * grp/grp.h [__USE_SVID]: Likewise.
37512         [__USE_BSD]: Likewise.
37513         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37514         * io/fcntl.h [__USE_BSD]: Likewise.
37515         * io/ftw.h [__USE_BSD]: Likewise.
37516         * io/sys/stat.h [__USE_BSD]: Likewise.
37517         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37518         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37519         * libio/stdio.h [__USE_SVID]: Likewise.
37520         [__USE_BSD]: Likewise.
37521         * math/math.h [__USE_SVID]: Likewise.
37522         [__USE_BSD]: Likewise.
37523         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37524         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37525         * misc/search.h [__USE_SVID]: Likewise.
37526         * misc/sys/mman.h [__USE_BSD]: Likewise.
37527         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37528         * misc/sys/uio.h [__USE_BSD]: Likewise.
37529         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37530         * posix/glob.h [__USE_BSD]: Likewise.
37531         * posix/regex.h [__USE_BSD]: Likewise.
37532         * posix/sys/types.h [__USE_BSD]: Likewise.
37533         [__USE_SVID]: Likewise.
37534         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37535         * posix/sys/wait.h [__USE_BSD]: Likewise.
37536         [__USE_SVID]: Likewise.
37537         * posix/unistd.h [__USE_BSD]: Likewise.
37538         [__USE_SVID]: Likewise.
37539         * pwd/pwd.h [__USE_SVID]: Likewise.
37540         * resolv/netdb.h [__USE_BSD]: Likewise.
37541         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37542         * signal/signal.h [__USE_BSD]: Likewise.
37543         [__USE_SVID]: Likewise.
37544         * socket/sys/socket.h [__USE_BSD]: Likewise.
37545         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37546         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37547         [__USE_SVID]: Likewise.
37548         * string/bits/string2.h [__USE_BSD]: Likewise.
37549         [__USE_SVID]: Likewise.
37550         * string/bits/string3.h [__USE_BSD]: Likewise.
37551         * string/endian.h [__USE_BSD]: Likewise.
37552         * string/string.h [__USE_SVID]: Likewise.
37553         [__USE_BSD]: Likewise.
37554         * string/strings.h [__USE_BSD]: Likewise.
37555         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37556         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37557         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37558         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37559         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37560         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37561         Likewise.
37562         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37563         Likewise.
37564         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37565         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37566         Likewise.
37567         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37568         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37569         Likewise.
37570         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37571         Likewise.
37572         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37573         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37574         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37575         Likewise.
37576         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37577         Likewise.
37578         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37579         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37580         * termios/termios.h [__USE_BSD]: Likewise.
37581         * time/sys/time.h [__USE_BSD]: Likewise.
37582         * time/time.h [__USE_BSD]: Likewise.
37583         [__USE_SVID]: Likewise.
37584
37585         * Makefile (subdir_targets): Remove subdir_lint.out.
37586
37587         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37588         (do-tst-printf): Likewise.
37589         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37590         $(objpfx)tst-printf.out.
37591
37592         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37593
37594         * Makerules (check-abi-%): Change target to
37595         $(objpfx)check-abi-%.out.
37596         (check-abi target): Update dependencies.
37597         (check-abi-pattern variable): Redirect output of diff to $@.
37598         (check-abi variable): Likewise.
37599         * elf/Makefile (check-abi): Update dependencies.
37600
37601         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37602         unused.
37603         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37604         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37605         subnormal range.
37606         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37607         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37608         value has largest subnormal exponent.
37609         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37610         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37611         * sysdeps/aarch64/soft-fp/sfp-machine.h
37612         (_FP_TININESS_AFTER_ROUNDING): New macro.
37613         * sysdeps/alpha/soft-fp/sfp-machine.h
37614         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37615         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37616         Likewise.
37617         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37618         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37619         * sysdeps/mips/soft-fp/sfp-machine.h
37620         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37621         * sysdeps/powerpc/soft-fp/sfp-machine.h
37622         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37623         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37624         Likewise.
37625         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37626         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37627         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37628         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37629         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37630         Likewise.
37631
37632 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37633
37634         [BZ #16545]
37635         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37636         model 1.
37637
37638 2014-02-12  Richard Henderson  <rth@redhat.com>
37639
37640         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37641         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37642         * sysdeps/unix/sysv/linux/alpha: Move directory from
37643         ports/sysdeps/unix/sysv/linux/alpha.
37644         * README: Update listing for alpha-*-linux-gnu.
37645
37646 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37647
37648         * include/features.h: Update comment documenting feature test
37649         macros.
37650         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37651         _DEFAULT_SOURCE.
37652         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37653         (_SVID_SOURCE): Likewise.
37654         (_DEFAULT_SOURCE): Update description of default features.
37655         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37656         with _GNU_SOURCE.
37657         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37658         (S_ISVTX): Likewise.
37659         * manual/math.texi (Mathematical Constants): Likewise.
37660         * manual/signal.texi (Interrupted Primitives): Likewise.
37661         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37662         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37663         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37664         Don't refer to _SVID_SOURCE in warning text.
37665
37666         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37667
37668         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37669         already defined.
37670         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37671         * sysdeps/mips/dl-lookup.c: Remove.
37672         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37673
37674 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37675
37676         [BZ #16447]
37677         * math/auto-libm-test-in: Add testcase for expl.
37678         * math/auto-libm-test-out: Regenerate.
37679         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37680         calculation of unsafe.
37681         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37682
37683 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37684
37685         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37686         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37687         ports/sysdeps/unix/sysv/linux/aarch64.
37688         * README: Update listing for aarch64*-*-linux-gnu.
37689
37690 2014-02-11  Will Newton  <will.newton@linaro.org>
37691
37692         * manual/probes.texi (Mathematical Function Probes): Use
37693         "triggered" instead of "hit".
37694
37695         * manual/probes.texi (Internal Probes): Add documentation
37696         of setjmp, longjmp and longjmp_target probes.
37697
37698         * include/stap-probe.h: Add comment about probe argument
37699         format.
37700
37701         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37702         definition.  (tr_where, tr_freehook, tr_mallochook,
37703         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37704
37705 2014-02-11  David S. Miller  <davem@davemloft.net>
37706
37707         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37708         processing int_tests.
37709
37710 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37711
37712         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37713         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37714         * sysdeps/unix/sysv/linux/mips: Move directory from
37715         ports/sysdeps/unix/sysv/linux/mips.
37716         * README: Update listing for mips-*-linux-gnu and
37717         mips64-*-linux-gnu.
37718
37719 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37720
37721         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37722         * sysdeps/unix/sysv/linux/m68k: Move directory from
37723         ports/sysdeps/unix/sysv/linux/m68k.
37724         * README: Update listing for m68k-*-linux-gnu.
37725
37726 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37727
37728         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37729         * sysdeps/unix/sysv/linux/generic: Move directory from
37730         ports/sysdeps/unix/sysv/linux/generic.
37731         * sysdeps/unix/sysv/linux/tile: Move directory from
37732         ports/sysdeps/unix/sysv/linux/tile.
37733         * README: Update listing for tile*-*-linux-gnu.
37734
37735 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37736
37737         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37738         __builtin_expect.
37739         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37740         * catgets/open_catalog.c (__open_catalog): Likewise.
37741         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37742         * debug/confstr_chk.c: Likewise.
37743         * debug/fread_chk.c (__fread_chk): Likewise.
37744         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37745         * debug/getgroups_chk.c: Likewise.
37746         * debug/mbsnrtowcs_chk.c: Likewise.
37747         * debug/mbsrtowcs_chk.c: Likewise.
37748         * debug/mbstowcs_chk.c: Likewise.
37749         * debug/memcpy_chk.c: Likewise.
37750         * debug/memmove_chk.c: Likewise.
37751         * debug/mempcpy_chk.c: Likewise.
37752         * debug/memset_chk.c: Likewise.
37753         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37754         * debug/strcat_chk.c (__strcat_chk): Likewise.
37755         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37756         * debug/strncat_chk.c (__strncat_chk): Likewise.
37757         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37758         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37759         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37760         * debug/wcpncpy_chk.c: Likewise.
37761         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37762         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37763         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37764         * debug/wcsncpy_chk.c: Likewise.
37765         * debug/wcsnrtombs_chk.c: Likewise.
37766         * debug/wcsrtombs_chk.c: Likewise.
37767         * debug/wcstombs_chk.c: Likewise.
37768         * debug/wmemcpy_chk.c: Likewise.
37769         * debug/wmemmove_chk.c: Likewise.
37770         * debug/wmempcpy_chk.c: Likewise.
37771         * debug/wmemset_chk.c: Likewise.
37772         * dirent/scandirat.c (SCANDIRAT): Likewise.
37773         * dlfcn/dladdr1.c (dladdr1): Likewise.
37774         * dlfcn/dladdr.c (dladdr): Likewise.
37775         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37776         * dlfcn/dlerror.c (__dlerror): Likewise.
37777         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37778         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37779         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37780         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37781         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37782         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37783         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37784         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37785         Likewise.
37786         * elf/dl-conflict.c: Likewise.
37787         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37788         * elf/dl-dst.h: Likewise.
37789         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37790         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37791         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37792         * elf/dl-init.c (call_init, _dl_init): Likewise.
37793         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37794         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37795         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37796         Likewise.
37797         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37798         Likewise.
37799         * elf/dl-minimal.c (__libc_memalign): Likewise.
37800         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37801         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37802         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37803         * elf/dl-sym.c (do_sym): Likewise.
37804         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37805         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37806         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37807         * elf/dl-writev.h (_dl_writev): Likewise.
37808         * elf/ldconfig.c (search_dir): Likewise.
37809         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37810         (dl_main): Likewise.
37811         * elf/setup-vdso.h (setup_vdso): Likewise.
37812         * grp/compat-initgroups.c (compat_call): Likewise.
37813         * grp/fgetgrent.c (fgetgrent): Likewise.
37814         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37815         * grp/putgrent.c (putgrent): Likewise.
37816         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37817         Likewise.
37818         * hurd/hurdinit.c: Likewise.
37819         * iconvdata/8bit-gap.c (struct): Likewise.
37820         * iconvdata/ansi_x3.110.c : Likewise.
37821         * iconvdata/big5.c : Likewise.
37822         * iconvdata/big5hkscs.c : Likewise.
37823         * iconvdata/cp1255.c: Likewise.
37824         * iconvdata/cp1258.c : Likewise.
37825         * iconvdata/cp932.c : Likewise.
37826         * iconvdata/euc-cn.c: Likewise.
37827         * iconvdata/euc-jisx0213.c : Likewise.
37828         * iconvdata/euc-jp.c: Likewise.
37829         * iconvdata/euc-jp-ms.c : Likewise.
37830         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37831         * iconvdata/gb18030.c : Likewise.
37832         * iconvdata/gbbig5.c (const): Likewise.
37833         * iconvdata/gbgbk.c: Likewise.
37834         * iconvdata/gbk.c : Likewise.
37835         * iconvdata/ibm1364.c : Likewise.
37836         * iconvdata/ibm930.c : Likewise.
37837         * iconvdata/ibm932.c: Likewise.
37838         * iconvdata/ibm933.c : Likewise.
37839         * iconvdata/ibm935.c : Likewise.
37840         * iconvdata/ibm937.c : Likewise.
37841         * iconvdata/ibm939.c : Likewise.
37842         * iconvdata/ibm943.c: Likewise.
37843         * iconvdata/iso_11548-1.c: Likewise.
37844         * iconvdata/iso-2022-cn.c : Likewise.
37845         * iconvdata/iso-2022-cn-ext.c : Likewise.
37846         * iconvdata/iso-2022-jp-3.c: Likewise.
37847         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37848         * iconvdata/iso-2022-kr.c : Likewise.
37849         * iconvdata/iso646.c (gconv_end): Likewise.
37850         * iconvdata/iso_6937-2.c : Likewise.
37851         * iconvdata/iso_6937.c : Likewise.
37852         * iconvdata/iso8859-1.c: Likewise.
37853         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37854         * iconvdata/shift_jisx0213.c : Likewise.
37855         * iconvdata/sjis.c : Likewise.
37856         * iconvdata/t.61.c : Likewise.
37857         * iconvdata/tcvn5712-1.c : Likewise.
37858         * iconvdata/tscii.c: Likewise.
37859         * iconvdata/uhc.c : Likewise.
37860         * iconvdata/unicode.c (gconv_end): Likewise.
37861         * iconvdata/utf-16.c (gconv_end): Likewise.
37862         * iconvdata/utf-32.c (gconv_end): Likewise.
37863         * iconvdata/utf-7.c (base64): Likewise.
37864         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37865         * iconv/gconv_close.c (__gconv_close): Likewise.
37866         * iconv/gconv_open.c (__gconv_open): Likewise.
37867         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37868         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37869         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37870         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37871         (ucs4le_internal_loop_single): Likewise.
37872         * iconv/iconv.c (iconv): Likewise.
37873         * iconv/iconv_close.c: Likewise.
37874         * iconv/loop.c (SINGLE): Likewise.
37875         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37876         * include/atomic.h: Likewise.
37877         * inet/inet6_option.c (option_alloc): Likewise.
37878         * intl/bindtextdom.c (set_binding_values): Likewise.
37879         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37880         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37881         * intl/localealias.c (read_alias_file): Likewise.
37882         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37883         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37884         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37885         * libio/fmemopen.c (fmemopen): Likewise.
37886         * libio/iofgets.c (_IO_fgets): Likewise.
37887         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37888         * libio/iofgetws.c (fgetws): Likewise.
37889         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37890         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37891         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37892         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37893         * locale/findlocale.c (_nl_find_locale): Likewise.
37894         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37895         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37896         Likewise.
37897         * locale/setlocale.c (setlocale): Likewise.
37898         * login/programs/pt_chown.c (main): Likewise.
37899         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37900         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37901         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37902         (mmap, mmap64, mremap, munmap): Likewise.
37903         * math/e_exp2l.c: Likewise.
37904         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37905         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37906         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37907         * math/s_catan.c (__catan): Likewise.
37908         * math/s_catanf.c (__catanf): Likewise.
37909         * math/s_catanh.c (__catanh): Likewise.
37910         * math/s_catanhf.c (__catanhf): Likewise.
37911         * math/s_catanhl.c (__catanhl): Likewise.
37912         * math/s_catanl.c (__catanl): Likewise.
37913         * math/s_ccosh.c (__ccosh): Likewise.
37914         * math/s_ccoshf.c (__ccoshf): Likewise.
37915         * math/s_ccoshl.c (__ccoshl): Likewise.
37916         * math/s_cexp.c (__cexp): Likewise.
37917         * math/s_cexpf.c (__cexpf): Likewise.
37918         * math/s_cexpl.c (__cexpl): Likewise.
37919         * math/s_clog10.c (__clog10): Likewise.
37920         * math/s_clog10f.c (__clog10f): Likewise.
37921         * math/s_clog10l.c (__clog10l): Likewise.
37922         * math/s_clog.c (__clog): Likewise.
37923         * math/s_clogf.c (__clogf): Likewise.
37924         * math/s_clogl.c (__clogl): Likewise.
37925         * math/s_csin.c (__csin): Likewise.
37926         * math/s_csinf.c (__csinf): Likewise.
37927         * math/s_csinh.c (__csinh): Likewise.
37928         * math/s_csinhf.c (__csinhf): Likewise.
37929         * math/s_csinhl.c (__csinhl): Likewise.
37930         * math/s_csinl.c (__csinl): Likewise.
37931         * math/s_csqrt.c (__csqrt): Likewise.
37932         * math/s_csqrtf.c (__csqrtf): Likewise.
37933         * math/s_csqrtl.c (__csqrtl): Likewise.
37934         * math/s_ctan.c (__ctan): Likewise.
37935         * math/s_ctanf.c (__ctanf): Likewise.
37936         * math/s_ctanh.c (__ctanh): Likewise.
37937         * math/s_ctanhf.c (__ctanhf): Likewise.
37938         * math/s_ctanhl.c (__ctanhl): Likewise.
37939         * math/s_ctanl.c (__ctanl): Likewise.
37940         * math/w_pow.c: Likewise.
37941         * math/w_powf.c: Likewise.
37942         * math/w_powl.c: Likewise.
37943         * math/w_scalb.c (sysv_scalb): Likewise.
37944         * math/w_scalbf.c (sysv_scalbf): Likewise.
37945         * math/w_scalbl.c (sysv_scalbl): Likewise.
37946         * misc/error.c (error_tail): Likewise.
37947         * misc/pselect.c (__pselect): Likewise.
37948         * nis/nis_callback.c (__nis_create_callback): Likewise.
37949         * nis/nis_call.c (__nisfind_server): Likewise.
37950         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37951         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37952         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37953         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37954         * nis/nis_lookup.c (nis_lookup): Likewise.
37955         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37956         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37957         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37958         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37959         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37960         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37961         * nis/nss_compat/compat-initgroups.c (add_group)
37962         (internal_getgrent_r): Likewise.
37963         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37964         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37965         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37966         (internal_getspnam_r): Likewise.
37967         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37968         (_nss_nis_getaliasbyname_r): Likewise.
37969         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37970         (_nss_nis_getntohost_r): Likewise.
37971         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37972         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37973         (_nss_nis_getgrgid_r): Likewise.
37974         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37975         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37976         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37977         (_nss_nis_gethostbyname4_r): Likewise.
37978         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37979         (initgroups_netid): Likewise.
37980         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37981         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37982         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37983         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37984         (_nss_nis_getprotobynumber_r): Likewise.
37985         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37986         (_nss_nis_getsecretkey): Likewise.
37987         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37988         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37989         (_nss_nis_getpwuid_r): Likewise.
37990         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37991         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37992         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37993         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37994         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37995         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37996         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37997         Likewise.
37998         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37999         (_nss_nisplus_getntohost_r): Likewise.
38000         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38001         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38002         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38003         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38004         Likewise.
38005         * nis/nss_nisplus/nisplus-initgroups.c
38006         (_nss_nisplus_initgroups_dyn): Likewise.
38007         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38008         (_nss_nisplus_getnetbyaddr_r): Likewise.
38009         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38010         (_nss_nisplus_getprotobynumber_r): Likewise.
38011         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38012         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38013         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38014         Likewise.
38015         * nis/nss_nisplus/nisplus-service.c
38016         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38017         (_nss_nisplus_getservbyport_r): Likewise.
38018         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38019         (_nss_nisplus_getspnam_r): Likewise.
38020         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38021         Likewise.
38022         * nscd/aicache.c (addhstaiX): Likewise.
38023         * nscd/cache.c (cache_search, prune_cache): Likewise.
38024         * nscd/connections.c (register_traced_file, send_ro_fd)
38025         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38026         (main_loop_epoll): Likewise.
38027         * nscd/grpcache.c (addgrbyX): Likewise.
38028         * nscd/hstcache.c (addhstbyX): Likewise.
38029         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38030         * nscd/mem.c (gc, mempool_alloc): Likewise.
38031         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38032         (addinnetgrX): Likewise.
38033         * nscd/nscd-client.h (__nscd_acquire_maplock)
38034         (__nscd_drop_map_ref): Likewise.
38035         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38036         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38037         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38038         Likewise.
38039         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38040         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38041         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38042         (__nscd_get_map_ref): Likewise.
38043         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38044         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38045         Likewise.
38046         * nscd/pwdcache.c (addpwbyX): Likewise.
38047         * nscd/selinux.c (preserve_capabilities): Likewise.
38048         * nscd/servicescache.c (addservbyX): Likewise.
38049         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38050         * posix/fnmatch.c (fnmatch): Likewise.
38051         * posix/getopt.c (_getopt_internal_r): Likewise.
38052         * posix/glob.c (glob, glob_in_dir): Likewise.
38053         * posix/wordexp.c (exec_comm_child): Likewise.
38054         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38055         (getanswer_r, gaih_getanswer_slice): Likewise.
38056         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38057         * resolv/res_init.c: Likewise.
38058         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38059         * resolv/res_query.c (__libc_res_nquery): Likewise.
38060         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38061         Likewise.
38062         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38063         * stdio-common/perror.c (perror): Likewise.
38064         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38065         * stdio-common/tmpnam.c (tmpnam): Likewise.
38066         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38067         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38068         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38069         Likewise.
38070         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38071         * stdlib/putenv.c (putenv): Likewise.
38072         * stdlib/setenv.c (__add_to_environ): Likewise.
38073         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38074         * stdlib/strtol_l.c (INTERNAL): Likewise.
38075         * string/memmem.c (memmem): Likewise.
38076         * string/strerror.c (strerror): Likewise.
38077         * string/strnlen.c (__strnlen): Likewise.
38078         * string/test-memmem.c (simple_memmem): Likewise.
38079         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38080         * sunrpc/pm_getport.c (__get_socket): Likewise.
38081         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38082         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38083         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38084         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38085         Likewise.
38086         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38087         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38088         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38089         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38090         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38091         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38092         Likewise.
38093         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38094         Likewise.
38095         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38096         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38097         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38098         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38099         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38100         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38101         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38102         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38103         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38104         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38105         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38106         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38107         Likewise.
38108         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38109         Likewise.
38110         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38111         Likewise.
38112         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38113         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38114         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38115         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38116         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38117         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38118         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38119         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38120         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38121         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38122         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38123         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38124         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38125         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38126         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38127         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38128         Likewise.
38129         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38130         Likewise.
38131         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38132         Likewise.
38133         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38134         Likewise.
38135         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38136         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38137         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38138         Likewise.
38139         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38140         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38141         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38142         * sysdeps/posix/sleep.c: Likewise.
38143         * sysdeps/posix/tempname.c: Likewise.
38144         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38145         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38146         Likewise.
38147         * sysdeps/powerpc/powerpc32/dl-machine.h
38148         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38149         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38150         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38151         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38152         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38153         Likewise.
38154         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38155         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38156         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38157         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38158         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38159         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38160         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38161         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38162         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38163         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38164         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38165         (elf_machine_lazy_rel): Likewise.
38166         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38167         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38168         (elf_machine_lazy_rel): Likewise.
38169         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38170         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38171         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38172         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38173         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38174         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38175         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38176         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38177         Likewise.
38178         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38179         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38180         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38181         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38182         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38183         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38184         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38185         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38186         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38187         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38188         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38189         Likewise.
38190         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38191         (__posix_fallocate64_l64): Likewise.
38192         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38193         (posix_fallocate): Likewise.
38194         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38195         Likewise.
38196         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38197         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38198         (getifaddrs_internal): Likewise.
38199         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38200         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38201         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38202         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38203         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38204         (__posix_fallocate64_l64): Likewise.
38205         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38206         Likewise.
38207         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38208         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38209         (__get_clockfreq): Likewise.
38210         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38211         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38212         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38213         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38214         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38215         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38216         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38217         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38218         Likewise.
38219         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38220         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38221         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38222         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38223         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38224         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38225         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38226         Likewise.
38227         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38228         (posix_fallocate): Likewise.
38229         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38230         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38231         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38232         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38233         (elf_machine_rela, elf_machine_rela_relative)
38234         (elf_machine_lazy_rel): Likewise.
38235         * time/asctime.c (asctime_internal): Likewise.
38236         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38237         * time/tzset.c (__tzset_parse_tz): Likewise.
38238         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38239         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38240         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38241         * wcsmbs/wcsmbsload.h: Likewise.
38242
38243         [BZ #15894]
38244         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38245
38246         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38247         (arena_get2): Remove THREAD_STATS conditionals.
38248         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38249         (__malloc_stats, int): Likewise.
38250
38251 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38252
38253         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38254         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38255
38256         * manual/setjmp.texi: Fix typos/grammar errors.
38257
38258         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38259         Only return early when n is <= 0.  Delete unused return statement.
38260
38261         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38262         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38263         * debug/tst-longjmp_chk3.c: New file.
38264
38265         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38266         (test_main): Replace code with set_fortify_handler call.
38267         * debug/test-strcpy_chk.c: Likewise.
38268         * debug/tst-chk1.c: Likewise.
38269         * debug/tst-longjmp_chk.c: Likewise.
38270         * test-skeleton.c: Include fcntl.h & paths.h
38271         (set_fortify_handler): Define.
38272
38273         * debug/tst-longjmp_chk.c: Add header comment and include
38274         ../test-skeleton.c.
38275         (do_test): Mark static.
38276         (TEST_FUNCTION): Define.
38277
38278         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38279         (IP_PMTUDISC_INTERFACE): Likewise.
38280         (IP_MULTICAST_IF): Likewise.
38281         (IP_MULTICAST_TTL): Likewise.
38282         (IP_MULTICAST_LOOP): Likewise.
38283         (IP_ADD_MEMBERSHIP): Likewise.
38284         (IP_DROP_MEMBERSHIP): Likewise.
38285         (IP_UNBLOCK_SOURCE): Likewise.
38286         (IP_BLOCK_SOURCE): Likewise.
38287         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38288         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38289         (IP_MSFILTER): Likewise.
38290         (MCAST_JOIN_GROUP): Likewise.
38291         (MCAST_BLOCK_SOURCE): Likewise.
38292         (MCAST_UNBLOCK_SOURCE): Likewise.
38293         (MCAST_LEAVE_GROUP): Likewise.
38294         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38295         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38296         (MCAST_MSFILTER): Likewise.
38297         (IP_MULTICAST_ALL): Likewise.
38298         (IP_UNICAST_IF): Likewise.
38299
38300         * timezone/Makefile: Delete $(have-ksh) check.
38301         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38302         * timezone/tzselect.ksh: Add +x mode bits.
38303
38304         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38305         (ANON_INODE_FS_MAGIC): Likewise.
38306         (BDEVFS_MAGIC): Likewise.
38307         (BINFMTFS_MAGIC): Likewise.
38308         (BTRFS_TEST_MAGIC): Likewise.
38309         (CRAMFS_MAGIC_WEND): Likewise.
38310         (DEBUGFS_MAGIC): Likewise.
38311         (ECRYPTFS_SUPER_MAGIC): Likewise.
38312         (EXT3_SUPER_MAGIC): Likewise.
38313         (EXT4_SUPER_MAGIC): Likewise.
38314         (FUTEXFS_SUPER_MAGIC): Likewise.
38315         (HOSTFS_SUPER_MAGIC): Likewise.
38316         (HUGETLBFS_MAGIC): Likewise.
38317         (MINIX3_SUPER_MAGIC): Likewise.
38318         (MTD_INODE_FS_MAGIC): Likewise.
38319         (NILFS_SUPER_MAGIC): Likewise.
38320         (OPENPROM_SUPER_MAGIC): Likewise.
38321         (PIPEFS_MAGIC): Likewise.
38322         (PSTOREFS_MAGIC): Likewise.
38323         (QNX6_SUPER_MAGIC): Likewise.
38324         (RAMFS_MAGIC): Likewise.
38325         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38326         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38327         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38328         (SECURITYFS_MAGIC): Likewise.
38329         (SELINUX_MAGIC): Likewise.
38330         (SMACK_MAGIC): Likewise.
38331         (SOCKFS_MAGIC): Likewise.
38332         (SQUASHFS_MAGIC): Likewise.
38333         (STACK_END_MAGIC): Likewise.
38334         (TMPFS_MAGIC): Likewise.
38335         (USBDEVICE_SUPER_MAGIC): Likewise.
38336         (V9FS_MAGIC): Likewise.
38337         (XENFS_SUPER_MAGIC): Likewise.
38338         (CRAMFS_MAGIC): Fix typo in comment.
38339         (EXT2_SUPER_MAGIC): Update comment.
38340         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38341
38342 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38343
38344         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38345         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38346         * sysdeps/unix/sysv/linux/arm: Move directory from
38347         ports/sysdeps/unix/sysv/linux/arm.
38348         * README: Update listing for arm-*-linux-gnueabi.
38349
38350         * README: Remove mention of am33.
38351
38352 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38353
38354         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38355         than the comma operator, to avoid "rhs of comma has no effect"
38356         compiler warnings.
38357         (__sigfillset, __sigandset, __sigorset): Likewise.
38358         * include/signal.h (__sigemptyset): Likewise.
38359         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38360
38361 2014-02-07  Allan McRae  <allan@archlinux.org>
38362
38363         * version.h (RELEASE): Set to "development".
38364         (VERSION): Set to "2.19.90"
38365         * NEWS: Add 2.20 section.
38366
38367 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38368
38369         [BZ #16529]
38370         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38371
38372 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38373
38374         * manual/contrib.texi: Update entry for Carlos O'Donell,
38375         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38376
38377 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38378
38379         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38380
38381         * sysdeps/unix/sysv/linux/kernel-features.h
38382         [__LINUX_KERNEL_VERSION >= 0x020621]
38383         (__ASSUME_PROC_PID_TASK_COMM): Define.
38384
38385 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38386
38387         [BZ #16398]
38388         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38389         conversion when destination buffer does not have enough space.
38390         * libio/tst-ftell-partial-wide.c: New test case.
38391         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38392
38393         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38394         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38395         Leonard and Allan McRae.
38396
38397 2014-02-04  David S. Miller  <davem@davemloft.net>
38398
38399         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38400         32-bit.
38401
38402 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38403
38404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38405         New file
38406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38407         New file
38408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38409         New file.
38410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38411         New file.
38412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38413         New file.
38414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38415         New file.
38416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38417         New file.
38418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38419         New file.
38420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38421         New file.
38422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38423         New file.
38424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38425         New file.
38426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38427         New file.
38428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38429         New file.
38430
38431 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38432
38433         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38434         * shlib-versions: Likewise.
38435
38436 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38437             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38438
38439         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38440         (abilist-pattern): New variable, set to %-le.abilist.
38441
38442         * Makerules (abilist-pattern): New variable.
38443         (vpath): Use $(abilist-pattern) in place of %.abilist.
38444         (check-abi-% pattern rule): Likewise.
38445         (check-abi, update-abi): Likewise.
38446
38447 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38448
38449         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38450
38451 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38452
38453         * manual/startup.texi: Add next, previous, and top entries for
38454         the `Program Arguments' and `Environment Variables' nodes.
38455
38456 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38457
38458         * manual/macros.texi: Add comments before MTASC-safety macros.
38459
38460         * manual/users.texi: Document MTASC-safety properties.
38461
38462         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38463         (pthread_getspecific, pthread_setspecific): Format with
38464         @deftypefun, and add @safety note.
38465         * manual/signal.texi: Move comments that analyze the above
38466         functions to their home place.
38467
38468 2014-02-03  Allan McRae  <allan@archlinux.org>
38469
38470         * po/sl.po: Update Slovenian translation from translation project.
38471
38472 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38473
38474         * manual/time.texi (timegm): Add missing blank after @c.
38475         Reported by Joseph Myers <joseph@codesourcery.com>.
38476
38477 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38478
38479         * manual/check-safety.sh: New.
38480         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38481
38482         * manual/terminal.texi: Document MTASC-safety properties.
38483
38484         * manual/filesys.texi: Document MTASC-safety properties.
38485
38486         * manual/errno.texi: Document MTASC-safety properties.
38487
38488         * manual/intro.texi: Document safety identifiers and
38489         conditionals.
38490
38491         * manual/string.texi (wcstok): Fix prototype.
38492         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38493
38494         * manual/time.texi: Document MTASC-safety properties.
38495
38496         * manual/string.texi: Document MTASC-safety properties.
38497
38498         * manual/threads.texi: Document MTASC-safety properties.
38499
38500         * manual/stdio.texi: Document MTASC-safety properties.
38501
38502         * manual/syslog.texi: Document MTASC-safety properties.
38503
38504         * manual/sysinfo.texi: Document MTASC-safety properties.
38505
38506         * manual/startup.texi: Document MTASC-safety properties.
38507
38508         * manual/socket.texi: Document MTASC-safety properties.
38509
38510         * manual/signal.texi: Document MTASC-safety properties.
38511
38512 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38513
38514         * manual/setjmp.texi: Document MTASC-safety properties.
38515
38516         * manual/search.texi: Document MTASC-safety properties.
38517
38518         * manual/resource.texi: Document MTASC-safety properties.
38519
38520         * manual/process.texi: Document MTASC-safety properties.
38521
38522         * manual/platform.texi: Document MTASC-safety properties.
38523
38524         * manual/pipe.texi: Document MTASC-safety properties.
38525
38526         * manual/pattern.texi: Document MTASC-safety properties.
38527
38528         * manual/message.texi: Document MTASC-safety properties.
38529
38530         [BZ #12751]
38531         * manual/memory.texi: Document MTASC-safety properties.
38532
38533         * manual/math.texi: Document MTASC-safety properties.
38534
38535         * manual/locale.texi: Document MTASC-safety properties.
38536
38537         * manual/llio.texi: Document MTASC-safety properties.
38538
38539         * manual/libdl.texi: New.
38540
38541         * manual/lang.texi: Document MTASC-safety properties.
38542
38543         * manual/job.texi: Document MTASC-safety properties.
38544
38545         * manual/getopt.texi: Document MTASC-safety properties.
38546
38547         * manual/ctype.texi: Document MTASC-safety properties.
38548
38549 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38550
38551         [BZ #16046]
38552         * csu/libc-tls.c (static_map): Remove variable.
38553         (__libc_setup_tls): Use main executable's link map for TLS data.
38554         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38555         casing for LM_ID_BASE and GL(dl_nns).
38556         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38557         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38558         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38559         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38560         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38561         member.
38562         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38563         l_phnum members.
38564
38565 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38566
38567         * manual/debug.texi: Document MTASC-safety properties.
38568
38569 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38570
38571         [BZ #16510]
38572         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38573         of __x86_64__ when disabling x87 inline functions.
38574
38575 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38576
38577         * manual/charset.texi: Document MTASC-safety properties.
38578
38579         * manual/crypt.texi: Document MTASC-safety properties.
38580
38581         * manual/conf.texi: Document MTASC-safety properties.
38582
38583         * manual/arith.texi: Document MTASC-safety properties.
38584
38585         * manual/argp.texi: Document MTASC-safety properties.
38586
38587         * manual/macros.texi: Introduce macros to document multi
38588         thread, asynchronous signal and asynchronous cancellation
38589         safety properties.
38590         * manual/intro.texi: Introduce the properties themselves.
38591
38592 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38593
38594         * sysdeps/sh/sh4/Makefile: New file.
38595
38596 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38597
38598         * math/gen-libm-test.pl ($srcdir): New variable.
38599         ($auto_input): Use it.
38600
38601 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38602
38603         [BZ #16506]
38604         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38605         access beyond array bounds when parsing netgroups file.
38606
38607         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38608         the old buffer before realloc.
38609
38610 2014-01-27  Allan McRae  <allan@archlinux.org>
38611
38612         * po/fr.po: Update French translation from translation project.
38613
38614 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38615
38616         * sysdeps/sh/libm-test-ulps: Regenerate.
38617
38618 2014-01-24  David S. Miller  <davem@davemloft.net>
38619
38620         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38621
38622 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38623
38624         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38625         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38626
38627 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38628
38629         [BZ #16474]
38630         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38631         string pointers after reallocation.
38632
38633 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38634
38635         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38636         __SH4A__ instead of __SH_FPU_ANY__.
38637
38638 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38639
38640         * sysdeps/sh/fpu_control.h: New file.
38641         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38642         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38643         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38644         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38645         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38646         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38647         * sysdeps/sh/sys/ucontext.h: Remove.
38648         * sysdeps/sh/sys: Remove directory.
38649
38650 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38651
38652         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38653         s390/sys/ucontext.h.
38654         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38655         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38656
38657 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38658
38659         [BZ #15605]
38660         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38661
38662 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38663
38664         [BZ#16431]
38665         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38666         Adjust the vDSO correctly for internal calls.
38667         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38668
38669 2014-01-20  Allan McRae  <allan@archlinux.org>
38670
38671         * po/ca.po: Update Catalan translation from translation project.
38672
38673 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38674
38675         * sysdeps/s390/sotruss-lib.c: New file.
38676
38677 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38678
38679         [BZ#16430]
38680         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38681         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38682         local calls issues by not having a PLT stub required for IFUNC calls.
38683         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38684
38685 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38686
38687         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38688         * math/test-fpucw-static.c: Likewise.
38689
38690 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38691
38692         [BZ #16453]
38693         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38694
38695 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38696
38697         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38698         implementation for powerpc.
38699
38700 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38701
38702         [BZ #14782]
38703         * sysdeps/posix/system.c (__libc_system): Do not enable
38704         asynchronous cancellation.
38705
38706 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38707
38708         [BZ #16427]
38709         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38710         handling only for numbers special also in the IEEE case.
38711
38712 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38713
38714         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38715
38716 2014-01-11  Allan McRae  <allan@archlinux.org>
38717
38718         * po/bg.po: Update Bulgarian translation from translation project.
38719
38720         * po/de.po: Update German translation from translation project.
38721
38722 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38723
38724         * sysdeps/generic/gcc-compat.h: New file.
38725
38726 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38727
38728         * benchtests/asin-inputs: Correct slow inputs.
38729         * benchtests/acos-inputs: Likewise.
38730
38731 2014-01-10  Allan McRae  <allan@archlinux.org>
38732
38733         * po:sv.po: Update Swedish translation from translation project.
38734
38735         * po/vi.po: Update Vietnamese translation from translation project.
38736
38737         * po/eo.po: Update Esperanto translation from translation project.
38738
38739         * po/cs.po: Update Czech translation from translation project.
38740
38741         * po/nl.po: Update Dutch translation from translation project.
38742
38743         * po/pl.po: Update Polish translation from translation project.
38744
38745         * po/ru.po: Update Russian translation from translation project.
38746
38747         * po/uk.po: Update Ukrainian translation from translation project.
38748
38749 2014-01-08  Brooks Moses  <bmoses@google.com>
38750
38751         * elf/dl-load.c: Fix comment typo.
38752
38753 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38754
38755         * po/header.pot: Rename to...
38756         * po/pot.header: ... this.
38757         * po/Makefile: Use pot.header.
38758
38759 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38760             Maxim Kuvyrkov  <maxim@kugelworks.com>
38761
38762         [BZ #16394]
38763         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38764         SRC and DEST against LEN.
38765
38766 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38767
38768         [BZ #16414]
38769         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38770         implementation.
38771         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38772
38773 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38774
38775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38776
38777 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38778
38779         [BZ #16408]
38780         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38781         for large positive arguments.
38782
38783 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38784
38785         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38786
38787         * math/auto-libm-test-in: Mark various tests with
38788         xfail-rounding:ldbl-128ibm.
38789         * math/auto-libm-test-out: Regenerated.
38790
38791         [BZ #16407]
38792         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38793         Increase overflow threshold.
38794
38795 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38796
38797         [BZ #14286]
38798         * stdio-common/vfprintf.c: Check for integer overflow.
38799
38800 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38801
38802         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38803         the first argument and return value of __tls_get_addr_internal.
38804
38805 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38806
38807         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38808         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38809
38810 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38811
38812         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38813         * sysdeps/s390/rtld-global-offsets.sym: New file.
38814         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38815         GLIBC_2.19 symbol.
38816         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38817         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38818         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38819         ... this.
38820         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38821         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38822         ... this.
38823         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38824         Regenerate.
38825         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38826         Regenerate.
38827         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38828         halfs of GPRs for high_gprs contexts.
38829         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38830         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38831         field.
38832         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38833         uc_flags field.
38834         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38835         64 bit versions:
38836         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38837         for high GPRs (uc_high_gprs) and for future extensions
38838         (__reserved).
38839         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38840         for future extensions (__reserved).
38841         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38842         64 bit versions:
38843         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38844         SC_HIGHGPRS offset definition.
38845         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38846         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38847
38848         * Versions.def: Add GLIBC_2.19 for libpthread.
38849         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38850         siglongjmp for libpthread with GLIBC_2.19 symver.
38851         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38852         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38853         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38854         * sysdeps/s390/__longjmp.c: New file.
38855         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38856         * sysdeps/s390/longjmp.c: New file.
38857         * sysdeps/s390/setjmp.S: New file.
38858         * sysdeps/s390/sigjmp.S: New file.
38859         * sysdeps/s390/v1-longjmp.c: New file.
38860         * sysdeps/s390/v1-setjmp.h: New file.
38861         * sysdeps/s390/v1-sigjmp.c: New file.
38862         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38863         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38864         GLIBC_2.19 version.
38865         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38866         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38867         versioned symbols for ____longjmp_chk.
38868         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38869         Likewise.
38870         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38871         Regenerate.
38872         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38873         Regenerate.
38874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38875         Regenerate.
38876         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38877         Regenerate.
38878         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38879         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38880         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38881         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38882         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38883         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38884         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38885         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38886         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38887         * sysdeps/s390/rtld-__longjmp.c: New file.
38888         * sysdeps/s390/rtld-setjmp.S: New file.
38889
38890 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38891
38892         [BZ #16400]
38893         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38894         Return -__logl (x) for small positive arguments without evaluating
38895         a polynomial.
38896
38897 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38898
38899         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38900         Rename to ...
38901         (__ptrace_peeksiginfo_args): ... this.
38902         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38903         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38904         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38905
38906 2014-01-06  Allan McRae  <allan@archlinux.org>
38907
38908         * inet/netinet/in.h: Fix typo in comment.
38909
38910 2014-01-05  Andreas Jaeger  <aj@suse.de>
38911
38912         * sysdeps/i386/fpu/libm-test-ulps: Update.
38913
38914 2014-01-05  Allan McRae  <allan@archlinux.org>
38915
38916         * po/libc.pot: Regenerated.
38917
38918         * malloc/memusagestat.c: Fix gettext call formatting.
38919
38920 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38921
38922         * nscd/nscd.c: Improve usage() output.
38923
38924 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38925
38926         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38927         * sysdeps/unix/sysv/linux/configure: Regenerated.
38928         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38929         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38930
38931 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38932
38933         [BZ #16390]
38934         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38935         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38936
38937 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38938
38939         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38940         extra tokens at end of #undef directive.
38941         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38942         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38943         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38944
38945 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38946
38947         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38948
38949         * math/auto-libm-test-in: Mark various tests with
38950         xfail-rounding:ldbl-128ibm.
38951         * math/auto-libm-test-out: Regenerated.
38952
38953 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38954
38955         [BZ #16386]
38956         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38957         numbers with subnormal high part when calculating exponent.
38958
38959         [BZ #16385]
38960         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38961         fabs.
38962
38963         [BZ #16384]
38964         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38965         M_LN2l.
38966         (__ieee754_acoshl): Use __log1pl not __log1p.
38967
38968 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38969
38970         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38971         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38972         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38973         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38974         (reused_arena, arena_get2): Convert to GNU style.
38975         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38976         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38977         (memalign_check, __malloc_set_state): Likewise.
38978         * malloc/mallocbug.c (main): Likewise.
38979         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38980         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38981         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38982         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38983         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38984         (__posix_memalign, malloc_info): Likewise.
38985         * malloc/malloc.h: Likewise.
38986         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38987         (mallochook, memalignhook, reallochook, mabort): Likewise.
38988         * malloc/mcheck.h: Likewise.
38989         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38990         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38991         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38992         * malloc/morecore.c (__default_morecore): Likewise.
38993         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38994         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38995         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38996         (print_and_abort): Likewise.
38997         * malloc/obstack.h: Likewise.
38998         * malloc/set-freeres.c (__libc_freeres): Likewise.
38999         * malloc/tst-mallocstate.c (main): Likewise.
39000         * malloc/tst-mtrace.c (main): Likewise.
39001         * malloc/tst-realloc.c (do_test): Likewise.
39002
39003 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39004
39005         [BZ #16366]
39006         * nscd/netgroupcache.c (do_notfound): New function.
39007         (addgetnetgrentX): Use it.
39008
39009         [BZ # 16365]
39010         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39011         NSS_STATUS_NOTFOUND.
39012
39013 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39014
39015         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39017
39018 2014-01-01  Allan McRae  <allan@archlinux.org>
39019
39020         * scripts/update-copyrights: Update configure input file suffix.
39021
39022         * NEWS: Update copyright year.
39023         * catgets/gencat.c: Likewise.
39024         * csu/version.c: Likewise.
39025         * debug/catchsegv.sh: Likewise.
39026         * debug/pcprofiledump.c: Likewise.
39027         * debug/xtrace.sh: Likewise.
39028         * elf/ldconfig.c: Likewise.
39029         * elf/ldd.bash.in: Likewise.
39030         * elf/pldd.c: Likewise.
39031         * elf/sotruss.ksh: Likewise.
39032         * elf/sprof.c: Likewise.
39033         * iconv/iconv_prog.c: Likewise.
39034         * iconv/iconvconfig.c: Likewise.
39035         * locale/programs/locale.c: Likewise.
39036         * locale/programs/localedef.c: Likewise.
39037         * login/programs/pt_chown.c: Likewise.
39038         * malloc/memusage.sh: Likewise.
39039         * malloc/memusagestat.c: Likewise.
39040         * malloc/mtrace.pl: Likewise.
39041         * manual/libc.texinfo: Likewise.
39042         * nscd/nscd.c: Likewise.
39043         * nss/getent.c: Likewise.
39044         * nss/makedb.c: Likewise.
39045         * posix/getconf.c: Likewise.
39046         * scripts/test-installation.pl: Likewise.
39047
39048         * All files with FSF copyright notices: Update copyright dates
39049         using scripts/update-copyrights.
39050         * intl/plural.c: Regenerated.
39051         * locale/programs/charmap-kw.h: Likewise.
39052         * locale/programs/locfile-kw.h: Likewise.
39053
39054 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39055
39056         * sysdeps/unix/sysv/linux/configure: Regenerated.
39057         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39058         the linux/fanotify.h header.
39059         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39060         HAVE_LINUX_FANOTIFY_H is defined.
39061
39062 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39063
39064         * benchtests/cos-inputs: New inputs.
39065         * benchtests/sin-inputs: Likewise.
39066
39067         * benchtests/atan-inputs: New inputs. Fix name of multiple
39068         precision fallback inputs.
39069
39070         * benchtests/atanh-inputs: New inputs.
39071         * benchtests/tanh-inputs: Likewise.
39072
39073         * benchtests/acosh-inputs: New inputs.
39074         * benchtests/asinh-inputs: Likewise.
39075
39076         * benchtests/cosh-inputs: New inputs.
39077         * benchtests/sinh-inputs: Likewise.
39078
39079         * benchtests/acos-inputs: Add more inputs.
39080         * benchtests/asin-inputs: Likewise.
39081
39082 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39083
39084         [BZ #16375]
39085         * manual/arith.texi: Fix spelling.
39086         * manual/charset.texi: Likewise.
39087         * manual/errno.texi: Likewise.
39088         * manual/filesys.texi: Likewise.
39089         * manual/lang.texi: Likewise.
39090         * manual/llio.texi: Likewise.
39091         * manual/locale.texi: Likewise.
39092         * manual/message.texi: Likewise.
39093         * manual/resource.texi: Likewise.
39094         * manual/search.texi: Likewise.
39095         * manual/setjmp.texi: Likewise.
39096         * manual/stdio.texi: Likewise.
39097         * manual/string.texi: Likewise.
39098         * manual/sysinfo.texi: Likewise.
39099         * manual/time.texi: Likewise.
39100
39101 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39102
39103         * po/sl.po: New file.
39104
39105 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39106
39107         * .gitignore: Add core/.gdbinit/.gdb_history.
39108
39109 2013-12-27  Allan McRae  <allan@archlinux.org>
39110
39111         [BZ #16369]
39112         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39113         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39114
39115 2013-12-24  Brooks Moses  <bmoses@google.com>
39116
39117         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39118         all compilers that claim C++98 compliance, not just GCC.
39119         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39120         Likewise.
39121
39122 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39123
39124         * NEWS: Restore accidentally deleted bug-fix entries.
39125
39126 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39127             Ondřej Bílka  <neleai@seznam.cz>
39128
39129         [BZ #15073]
39130         * malloc/malloc.c (_int_free): Perform sanity check only if we
39131         have_lock.
39132
39133 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39134
39135         [BZ #12986]
39136         * manual/stdio.texi (String Input Conversions): Clarify that character
39137         classes are not supported.
39138
39139 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39140
39141         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39142
39143 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39144
39145         [BZ #16337]
39146         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39147         Calculate results for small negative arguments directly rather
39148         than using reflection formula with special underflow handling.
39149
39150         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39151         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39152         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39153         (fchflags): Likewise.
39154         (revoke): Likewise.
39155         (setlogin): Likewise.
39156         (sigaltstack): Likewise.
39157         (wait4): Likewise.
39158         (sigblock): Remove.
39159         (sigsetmask): Likewise.
39160         (wait3): Likewise.
39161         (waitpid): Likewise.
39162         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39163         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39164         file.
39165         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39166         * sysdeps/unix/bsd/Makefile: ... here.
39167         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39168         * sysdeps/unix/bsd/Versions: ... here.
39169         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39170         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39171         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39172         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39173         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39174         * sysdeps/unix/bsd/sigblock.c: ... here.
39175         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39176         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39177         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39178         * sysdeps/unix/bsd/sigvec.c: ... here.
39179         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39180         * sysdeps/unix/bsd/tcdrain.c: ... here.
39181         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39182         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39183         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39184         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39185         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39186         * sysdeps/unix/bsd/wait.c: ... here.
39187         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39188         * sysdeps/unix/bsd/wait3.c: ... here.
39189         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39190         * sysdeps/unix/bsd/waitpid.c: ... here.
39191
39192 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39193
39194         [BZ #16356]
39195         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39196         round-to-nearest for [!USE_AS_EXPM1L].
39197         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39198         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39199         more tests of exp and exp10.  Expect some exp10 tests to miss
39200         exceptions or fail in directed rounding modes.
39201         * math/auto-libm-test-out: Regenerated.
39202         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39203         (exp10_test_tonearest): New function.
39204         (exp10_towardzero_test_data): New array.
39205         (exp10_test_towardzero): New function.
39206         (exp10_downward_test_data): New array.
39207         (exp10_test_downward): New function.
39208         (exp10_upward_test_data): New array.
39209         (exp10_test_upward): New function.
39210         (main): Call the new functions.
39211         * sysdeps/i386/fpu/libm-test-ulps: Update.
39212         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39213
39214 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39215
39216         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39217         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39218         * math/auto-libm-test-out: Regenerated.
39219         * math/libm-test.inc (acosh_test_data): Add more tests.
39220         (atanh_test_data): Likewise.
39221         (ceil_test_data): Likewise.
39222         (copysign_test_data): Likewise.
39223         * sysdeps/i386/fpu/libm-test-ulps: Update.
39224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39225
39226         * timezone/checktab.awk: Update from tzcode 2013i.
39227         * timezone/private.h: Likewise.
39228         * timezone/scheck.c: Likewise.
39229         * timezone/tzfile.h: Likewise.
39230         * timezone/tzselect.ksh: Likewise.
39231         * timezone/zdump.c: Likewise.
39232         * timezone/zic.c: Likewise.
39233
39234         * math/auto-libm-test-in: Add tests of cpow.
39235         * math/auto-libm-test-out: Regenerated.
39236         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39237         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39238         mpc_cc_c.
39239         (func_calc_desc): Add mpc_cc_c union field.
39240         (test_functions): Add cpow.
39241         (special_fill_2pi): New function.
39242         (special_real_inputs): Add 2pi.
39243         (calc_generic_results): Handle mpc_cc_c.
39244         * sysdeps/i386/fpu/libm-test-ulps: Update.
39245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39246
39247         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39248         csqrt, ctan and ctanh.
39249         * math/auto-libm-test-out: Regenerated.
39250         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39251         (TEST_COND_x86): Likewise.
39252         (ccos_test_data): Use AUTO_TESTS_c_c.
39253         (ccosh_test_data): Likewise.
39254         (cexp_test_data): Likewise.
39255         (clog_test_data): Likewise.
39256         (csqrt_test_data): Likewise.
39257         (ctan_test_data): Likewise.
39258         (ctan_tonearest_test_data): Likewise.
39259         (ctan_towardzero_test_data): Likewise.
39260         (ctan_downward_test_data): Likewise.
39261         (ctan_upward_test_data): Likewise.
39262         (ctanh_test_data): Likewise.
39263         (ctanh_tonearest_test_data): Likewise.
39264         (ctanh_towardzero_test_data): Likewise.
39265         (ctanh_downward_test_data): Likewise.
39266         (ctanh_upward_test_data): Likewise.
39267         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39268         mpc_c_c.
39269         (func_calc_desc): Add mpc_c_c union field.
39270         (FUNC_mpc_c_c): New macro.
39271         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39272         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39273         ctanh.
39274         (special_fill_min_subnorm_p120): New function.
39275         (special_real_inputs): Add min_subnorm_p120.
39276         (calc_generic_results): Handle mpc_c_c.
39277         * sysdeps/i386/fpu/libm-test-ulps: Update.
39278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39279
39280 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39281
39282         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39283         (do_sin_slow): New functions.
39284         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39285         (cslow2, csloww1, csloww2): Use the new functions.
39286
39287         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39288         Use M to change sign of result instead of X.  Assume X is
39289         positive.
39290         (csloww1): Likewise.
39291         (__sin): Adjust.
39292         (__cos): Adjust.
39293
39294         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39295         arguments A and DA.
39296         (__sin): Adjust.
39297         (__cos): Likewise.
39298
39299         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39300         (__cos): Likewise.
39301         (sloww1): Don't adjust sign of DX.
39302         (csloww1): Likewise.
39303         (sloww2): Use X directly and don't adjust sign of DX.
39304         (csloww2): Likewise.
39305
39306 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39307
39308         * math/auto-libm-test-in: Add tests of cabs and carg.
39309         * math/auto-libm-test-out: Regenerated.
39310         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39311         (carg_test_data): Likewise.
39312         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39313         mpc_c_f.
39314         (func_calc_desc): Add mpc_c_f union field.
39315         (test_functions): Add cabs and carg.
39316         (calc_generic_results): Handle mpc_c_f.
39317
39318         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39319         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39320         as a macro and a compat symbol.
39321         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39322         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39323         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39324         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39325         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39326         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39327         not use .hidden.
39328         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39329         Likewise.
39330         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39331         Likewise.
39332         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39333         Likewise.
39334         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39335         Likewise.
39336         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39337         Likewise.
39338         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39339         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39340         from GLIBC_2.3.2.
39341
39342 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39343
39344         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39345
39346 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39347
39348         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39349         trailing whitespace removed.
39350         * scripts/config.guess: Update to version 2013-11-29.
39351         * scripts/config.sub: Update to version 2013-10-01.
39352
39353         * math/auto-libm-test-in: Add tests of sincos.
39354         * math/auto-libm-test-out: Regenerated.
39355         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39356         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39357         mpfr_f_11.
39358         (func_calc_desc): Add mpfr_f_11 union field.
39359         (test_functions): Add sincos.
39360         (calc_generic_results): Handle mpfr_f_11.
39361         * sysdeps/i386/fpu/libm-test-ulps: Update.
39362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39363
39364 2013-12-19  Andreas Schwab  <schwab@suse.de>
39365
39366         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39367         CALL_MCOUNT.
39368         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39369         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39370         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39371
39372 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39373
39374         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39375         * sysdeps/i386/fpu/libm-test-ulps: Update.
39376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39377
39378         [BZ #16293]
39379         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39380         round-to-nearest mode when using frndint.
39381         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39382         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39383         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39384         Likewise.
39385         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39386         sinh test to fail.
39387         * math/auto-libm-test-out: Regenerated.
39388         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39389         (TEST_COND_x86): Likewise.
39390         (expm1_tonearest_test_data): New array.
39391         (expm1_test_tonearest): New function.
39392         (expm1_towardzero_test_data): New array.
39393         (expm1_test_towardzero): New function.
39394         (expm1_downward_test_data): New array.
39395         (expm1_test_downward): New function.
39396         (expm1_upward_test_data): New array.
39397         (expm1_test_upward): New function.
39398         (main): Run the new test functions.
39399         * sysdeps/i386/fpu/libm-test-ulps: Update.
39400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39401
39402         * include/features.h: Update comment documenting feature test
39403         macros.  Mention _DEFAULT_SOURCE in comment.
39404         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39405         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39406         _BSD_SOURCE and _SVID_SOURCE.
39407         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39408         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39409         !_SVID_SOURCE]: Likewise.
39410         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39411         (__USE_POSIX_IMPLICITLY): Define.
39412         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39413         (_POSIX_SOURCE): Undefine and redefine.
39414         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39415         (_POSIX_C_SOURCE): Likewise.
39416         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39417         (Feature Test Macros): Update documentation of default features.
39418
39419 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39420
39421         * benchtests/Makefile: Add bench-strtok.
39422         * benchtests/bench-strtok.c: New file: strtok benchtest.
39423
39424 2013-12-19  Allan McRae  <allan@archlinux.org>
39425
39426         * manual/install.texi: Suppress menu for plain text output.
39427         * INSTALL: Regenerated.
39428
39429 2013-12-18  Brooks Moses  <bmoses@google.com>
39430
39431         [BZ #15846]
39432         * misc/getauxval.c: Include errno.h.
39433         (__getauxval): Set errno to ENOENT if the requested type is not
39434         found.
39435         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39436         don't declare with __attribute_const__.
39437         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39438         * manual/startup.texi: Document that getauxval sets errno.
39439
39440 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39441
39442         * math/auto-libm-test-in: Add tests of jn and yn.
39443         * math/auto-libm-test-out: Regenerated.
39444         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39445         (yn_test_data): Likewise.
39446         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39447         mpfr_if_f.
39448         (func_calc_desc): Add mpfr_if_f union field.
39449         (FUNC_mpfr_if_f): New macro.
39450         (test_functions): Add jn and yn.
39451         (calc_generic_results): Assert type of second input for
39452         mpfr_ff_f.  Handle mpfr_if_f.
39453         (output_for_one_input_case): Disable all checking for arguments
39454         fitting floating-point types in case of an integer argument.
39455         * sysdeps/i386/fpu/libm-test-ulps: Update.
39456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39457
39458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39459         Don't expect fegetround reference in libm.so.
39460
39461 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39462
39463         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39464         $(config-cflags-nofma).
39465
39466 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39467
39468         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39469         * math/auto-libm-test-out: Regenerated.
39470
39471         [BZ #16338]
39472         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39473         to determine exponent and adjust argument to have exponent of -1.
39474         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39475         log2.
39476         * math/auto-libm-test-out: Regenerated.
39477         * sysdeps/i386/fpu/libm-test-ulps: Update.
39478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39479
39480 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39481
39482         * manual/probes.texi: Remove cases when per-thread arenas are
39483         disabled.
39484
39485 2013-12-18  Andreas Schwab  <schwab@suse.de>
39486
39487         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39488         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39489         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39490         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39491         * sysdeps/i386/i686/multiarch/Makefile: Update.
39492         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39493
39494 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39495
39496         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39497         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39498
39499 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39500
39501         [BZ #15968]
39502         Support TZ transition times < 00:00:00.
39503         This is needed for version-3 tz-format files; it supports time
39504         stamps past 2037 for America/Godthab (the only entry in the tz
39505         database for which this change is relevant).
39506         * manual/time.texi (TZ Variable): Document transition times
39507         from -167:59:59 through -00:00:01.
39508         * time/tzset.c (tz_rule): Time of day is now signed.
39509         (__tzset_parse_tz): Parse negative time of day.
39510
39511         Document TZ transition times >= 25:00:00.
39512         * manual/time.texi (TZ Variable): Document transition times from
39513         25:00:00 through 167:59:59.  These are already supported, and this
39514         support will help with version-3 tz-format files.
39515
39516         * manual/time.texi (TZ Variable): Modernize North America example
39517         to reflect current (i.e., 2007-and-later) daylight saving rules.
39518
39519         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39520
39521 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39522
39523         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39524         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39525         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39526         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39527         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39528         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39529         * sysdeps/unix/bsd/clock.c: Likewise.
39530         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39531         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39532         * sysdeps/unix/bsd/init-posix.c: Likewise.
39533         * sysdeps/unix/bsd/poll.c: Likewise.
39534         * sysdeps/unix/bsd/ptsname.c: Likewise.
39535         * sysdeps/unix/bsd/seekdir.c: Likewise.
39536         * sysdeps/unix/bsd/setegid.c: Likewise.
39537         * sysdeps/unix/bsd/seteuid.c: Likewise.
39538         * sysdeps/unix/bsd/setgid.c: Likewise.
39539         * sysdeps/unix/bsd/setrgid.c: Likewise.
39540         * sysdeps/unix/bsd/setruid.c: Likewise.
39541         * sysdeps/unix/bsd/setsid.c: Likewise.
39542         * sysdeps/unix/bsd/setuid.c: Likewise.
39543         * sysdeps/unix/bsd/sigaction.c: Likewise.
39544         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39545         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39546         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39547         * sysdeps/unix/bsd/telldir.c: Likewise.
39548         * sysdeps/unix/bsd/times.c: Likewise.
39549         * sysdeps/unix/bsd/usleep.c: Likewise.
39550
39551         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39552         ($(objpfx)libbsd-compat.a): Remove rule.
39553
39554         * include/features.h (__FAVOR_BSD): Do not define.
39555         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39556         features conflicting with POSIX.
39557         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39558         (_BSD_SOURCE): Remove description of not being a subset of other
39559         feature test macros.
39560         * manual/job.texi (getpgrp): Do not document BSD version.
39561         (getpgid): Do not document by reference to BSD getpgrp.
39562         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39563         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39564         * signal/signal.h [__FAVOR_BSD]: Likewise.
39565         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39566         instead of making contents conditional on [__FAVOR_BSD].
39567         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39568
39569 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39570
39571         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39572
39573 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39574
39575         [BZ #16314]
39576         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39577         values below 2**-450, not 2**-500.
39578         * math/auto-libm-test-in: Don't allow spurious underflow from
39579         hypot.
39580         * math/auto-libm-test-out: Regenerated.
39581
39582         [BZ #16316]
39583         [BZ #16330]
39584         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39585         values of ha and hb and sort them after adjusting subnormal
39586         arguments.
39587         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39588         Likewise.
39589         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39590         values of ea and eb and sort them after adjusting subnormal
39591         arguments.
39592         * math/auto-libm-test-in: Do not expect some hypot tests of
39593         subnormals to fail.  Add more hypot tests.
39594         * math/auto-libm-test-out: Regenerated.
39595
39596 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39597
39598         [BZ #13304]
39599         * sysdeps/sh/s_fma.c: New file.
39600         * sysdeps/sh/s_fmaf.c: New file.
39601         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39602         version.
39603         * sysdeps/sh/Implies: Add sh/soft-fp.
39604
39605 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39606
39607         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39608         level of indirection to members `objname', `errstring', `malloced'.
39609         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39610         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39611         it as the __longjmp argument (just pass 1 instead).
39612         (_dl_catch_error): Initialize C with argument pointers and address of
39613         volatile local ERRCODE rather than copying values out of C at return.
39614
39615 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39616
39617         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39618         * math/auto-libm-test-out: Regenerated.
39619         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39620         (hypot_test_data): Likewise.
39621         (pow_test_data): Likewise.
39622         (pow_tonearest_test_data): Likewise.
39623         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39624         mpfr_ff_f.
39625         (func_calc_desc): Add mpfr_ff_f union field.
39626         (FUNC_mpfr_ff_f): New macro.
39627         (test_functions): Add atan2, hypot and pow.
39628         (special_fill_min): New function.
39629         (special_fill_minus_min): Likewise.
39630         (special_fill_min_subnorm): Likewise.
39631         (special_fill_minus_min_subnorm): Likewise.
39632         (special_real_inputs): Add min, -min, min_subnorm and
39633         -min_subnorm.
39634         (calc_generic_results): Handle mpfr_ff_f.
39635         * sysdeps/i386/fpu/libm-test-ulps: Update.
39636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39637
39638 2013-12-16  Will Newton  <will.newton@linaro.org>
39639
39640         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39641         (Aligned Memory Blocks): Add documentation for aligned_alloc
39642         and suggest it as an alternative to posix_memalign.
39643         (Hooks for Malloc): Document __memalign_hook is also called
39644         for aligned_alloc.  (Summary of Malloc): Add summary for
39645         aligned alloc.  Document __memalign_hook is also called
39646         for aligned_alloc.
39647
39648 2013-12-16  Will Newton  <will.newton@linaro.org>
39649
39650         * manual/memory.texi (Malloc Examples): Clarify default
39651         alignment documentation.  Suggest posix_memalign rather
39652         than memalign or valloc.
39653         (Aligned Memory Blocks): Remove suggestion to use memalign
39654         or valloc.  Remove obsolete comment about BSD.
39655         Document memalign errno values and mark the function obsolete.
39656         Document posix_memalign returned error codes.  Mark valloc
39657         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39658         called for posix_memalign and valloc.
39659         (Summary of Malloc): Add posix_memalign to function summary.
39660         __memalign_hook is also called for posix_memalign and valloc.
39661
39662 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39663
39664         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39665         TAYLOR_SIN.
39666         (__sin): Adjust.
39667         (__cos): Likewise.
39668         (sloww): Use mynumber union.  Expand ternary operator into
39669         if-else statements.
39670         (cslow): use mynumber union.
39671
39672 2013-12-16  Allan McRae  <allan@archlinux.org>
39673
39674         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39675         * configure: Regenerated.
39676
39677         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39678
39679         [BZ #14120]
39680         * configure.ac: Added --enable-maintainer-mode. Check for
39681         autoconf when enabled.
39682         * configure: Regenerated.
39683
39684         * nscd/nscd.service: New file.
39685         * nscd/nscd.tmpfiles: New file.
39686
39687 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39688
39689         [BZ #12100]
39690         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39691         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39692         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39693         (strstr): Add __strstr_sse2_unaligned ifunc.
39694         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39695         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39696         (strcasestr): Remove __strcasestr_sse42 ifunc.
39697         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39698         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39699         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39700
39701 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39702
39703         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39704         * sysdeps/sh/bits/fenv.h: ... here.
39705         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39706
39707 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39708
39709         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39710
39711         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39712         hypotf multiarch implementations.
39713         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39714         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39715         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39716         multiarch hypot for PPC64.
39717         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39718         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39719         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39720         multiarch hypotf for PPC64.
39721
39722         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39723         modff multiarch implementations.
39724         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39725         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39726         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39727         multiarch modf for PPC64.
39728         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39729         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39730         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39731         multiarch modff for PPC64.
39732
39733         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39734         and logl multiarch implementations.
39735         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39736         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39737         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39738         multiarch logb for PPC64.
39739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39740         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39742         multiarch logb for PPC64.
39743         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39744         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39745         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39746         multiarch logb for PPC64.
39747
39748         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39749         isinff multiarch implementation.
39750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39751         file.
39752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39753         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39754         multiarch isinf for PPC64.
39755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39756         file.
39757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39758         multiarch isinff for PPC64.
39759
39760         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39761         finitef multiarch implementation.
39762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39763         file.
39764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39765         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39766         multiarch finite for PPC64.
39767         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39768         file.
39769         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39770         multiarch finitef for PPC64.
39771
39772         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39773         lrint multiarch implementation.
39774         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39775         file.
39776         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39777         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39778         multiarch llrint for PPC64.
39779         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39780         multiarch lrint for PPC64.
39781
39782         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39783         copysignf multiarch implementation.
39784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39785         file.
39786         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39787         file.
39788         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39789         multiarch copysign for PPC64.
39790         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39791         multiarch copysignf for PPC64.
39792
39793         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39794         multiarch implementation.
39795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39796         file.
39797         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39798         file.
39799         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39800         file.
39801         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39802         file.
39803         multiarch llround for PPC64.
39804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39805         multiarch trunc for PPC64.
39806         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39807         multiarch truncf for PPC64.
39808
39809         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39810         multiarch implementation.
39811         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39812         file.
39813         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39814         file.
39815         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39816         file.
39817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39818         file.
39819         multiarch llround for PPC64.
39820         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39821         multiarch round for PPC64.
39822         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39823         multiarch roundf for PPC64.
39824
39825         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39826         multiarch implementation.
39827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39828         file.
39829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39830         file.
39831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39832         file.
39833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39834         file.
39835         multiarch llround for PPC64.
39836         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39837         multiarch floor for PPC64.
39838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39839         multiarch floorf for PPC64.
39840
39841         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39842         multiarch implementation.
39843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39844         file.
39845         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39846         file.
39847         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39848         file.
39849         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39850         file.
39851         multiarch llround for PPC64.
39852         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39853         multiarch ceil for PPC64.
39854         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39855         multiarch ceilf for PPC64.
39856
39857         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39858         multiarch implementation.
39859         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39860         file.
39861         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39862         file.
39863         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39864         file.
39865         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39866         multiarch llround for PPC64.
39867         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39868         multiarch lround for PPC64.
39869
39870         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39871         multiarch implementation.
39872         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39873         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39874         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39875         file.
39876         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39877         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39878         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39879         multiarch isnan for PPC64.
39880         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39881         multiarch isnanf for PPC64.
39882
39883         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39884         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39885         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39886         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39887         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39889
39890         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39891         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39892         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39893         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39894
39895         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39896         multiarch implementations.
39897         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39898         (__libc_ifunc_impl_list): Likewise.
39899         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39900         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39901         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39902         multiarch stpcpy for PPC64.
39903
39904         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39905         multiarch implementations.
39906         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39907         (__libc_ifunc_impl_list): Likewise.
39908         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39909         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39910         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39911         multiarch strcpy for PPC64.
39912
39913         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39914         redefine function name.
39915         (_wordcopy_fwd_dest_aligned): Likewise.
39916         (_wordcopy_bwd_aligned): Likewise.
39917         (_wordcopy_bwd_dest_aligned): Likewise.
39918         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39919         multiarch implementations.
39920         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39921         (__libc_ifunc_impl_list): Likewise.
39922         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39923         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39924         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39925         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39926         multiarch wcscpy for PPC64.
39927
39928         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39929         multiarch implementations.
39930         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39931         (__libc_ifunc_impl_list): Likewise.
39932         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39933         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39934         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39935         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39936         multiarch wcscpy for PPC64.
39937
39938         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39939         multiarch implementations.
39940         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39941         (__libc_ifunc_impl_list): Likewise.
39942         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39943         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39944         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39945         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39946         multiarch wcsrchr for PPC64.
39947
39948         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39949         multiarch implementations.
39950         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39951         (__libc_ifunc_impl_list): Likewise.
39952         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39953         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39954         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39955         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39956         multiarch wcschr for PPC64.
39957
39958         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39959         multiarch implementations.
39960         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39961         (__libc_ifunc_impl_list): Likewise.
39962         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39963         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39964         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39965         multiarch strchrnul for PPC64.
39966
39967         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39968         implementations.
39969         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39970         (__libc_ifunc_impl_list): Likewise.
39971         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39972         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39973         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39974         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39975         strchr for PPC64.
39976
39977         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39978         implementations.
39979         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39980         (__libc_ifunc_impl_list): Likewise.
39981         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39982         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39983         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39984         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39985         strncmp for PPC64.
39986
39987         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39988         multiarch implementations.
39989         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39990         (__libc_ifunc_impl_list): Likewise.
39991         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39992         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39993         strncasecmp for PPC64.
39994         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39995         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39996         multiarch strncasecmp_l for PPC64.
39997
39998         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39999         multiarch implementations.
40000         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40001         (__libc_ifunc_impl_list): Likewise.
40002         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40003         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40004         multiarch strcasecmp for PPC64.
40005         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40006         file.
40007         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40008         multiarch strcasecmp_l for PPC64.
40009
40010         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40011         implementations.
40012         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40013         (__libc_ifunc_impl_list): Likewise.
40014         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40015         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40016         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40017         strnlen for PPC64.
40018
40019         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40020         implementations.
40021         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40022         (__libc_ifunc_impl_list): Likewise.
40023         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40024         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40025         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40026         strlen for PPC64.
40027
40028         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40029         implementations.
40030         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40031         (__libc_ifunc_impl_list): Likewise.
40032         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40033         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40034         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40035         rawmemrchr for PPC64.
40036
40037         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40038         implementation.
40039         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40040         (__libc_ifunc_impl_list): Likewise.
40041         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40042         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40043         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40044         memrchr for PPC64.
40045
40046         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40047         implementation.
40048         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40049         (__libc_ifunc_impl_list): Likewise.
40050         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40051         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40052         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40053         memchr for PPC64.
40054
40055         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40056         implementation.
40057         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40058         (__libc_ifunc_impl_list): Likewise.
40059         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40060         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40061         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40062         mempcpy for PPC64.
40063
40064         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40065         avoid cretion of __bzero symbol.
40066         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40067         Likewise.
40068         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40069         Likewise.
40070         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40071         Likewise.
40072         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40073         multiarch implementations.
40074         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40075         (__libc_ifunc_impl_list): Likewise.
40076         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40077         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40078         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40079         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40080         bzero for PPC32.
40081         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40082         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40083         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40084         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40085         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40086         memset for PPC64.
40087         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40088
40089         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40090         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40091         implementations.
40092         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40093         (__libc_ifunc_impl_list): Likewise.
40094         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40095         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40096         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40097         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40098         memcmp for PPC64.
40099
40100         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40101         multiarch for POWER/PPC64.
40102         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40103         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40104         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40105         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40106         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40107         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40108         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40109         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40110         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40111         memcpy for PPC64.
40112
40113         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40114         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40115         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40116         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40117         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40118         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40119         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40120         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40121         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40122         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40123         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40124         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40125         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40126         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40127         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40135
40136 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40137
40138         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40139
40140 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40141
40142         * benchtests/Makefile (bench): Add exp2 and log2.
40143         (LDLIBS-bench-exp2): Add -lm.
40144         (LDLIBS-bench-log2): Likewise.
40145         * benchtests/exp2-inputs: New inputs file.
40146         * benchtests/log2-inputs: New inputs file.
40147         * benchtests/log-inputs: Add new inputs.
40148         * benchtests/tan-inputs: Likewise.
40149
40150 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40151
40152         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40153         definition...
40154         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40155         (csloww2): ... from here.
40156
40157         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40158         instead of structures.
40159         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40160         (POLYNOMIAL): Likewise.
40161         (TAYLOR_SLOW): Likewise.
40162         (__sin): Likewise.
40163         (__cos): Likewise.
40164         (slow1): Likewise.
40165         (slow2): Likewise.
40166         (sloww): Likewise.
40167         (sloww1); Likewise.
40168         (sloww2): Likewise.
40169         (bsloww1): Likewise.
40170         (bsloww2): Likewise.
40171         (cslow2): Likewise.
40172         (csloww): Likewise.
40173         (csloww1): Likewise.
40174         (csloww2): Likewise.
40175
40176 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40177
40178         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40179         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40180         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40181         * malloc/hooks.c (realloc_check): Likewise.
40182
40183         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40184         * malloc/arena.c: Remove PER_THREAD conditional.
40185         [!PER_THREAD]: Remove code.
40186         (ptmalloc_unlock_all2): Likewise.
40187         (ptmalloc_init): Likewise.
40188         (_int_new_arena): Likewise.
40189         (arena_get2): Likewise.
40190         * malloc/hooks.c (__malloc_get_state): Likewise.
40191         (__malloc_set_state): Likewise.
40192         * malloc/malloc.c: Likewise.
40193         (struct malloc_state): Likewise.
40194         (struct malloc_par): Likewise.
40195         (__libc_realloc): Likewise.
40196         (__libc_mallopt): Likewise.
40197
40198 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40199
40200         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40201
40202 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40203
40204         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40205         macro to a function.  Check for zero perturb_byte.
40206         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40207
40208         * malloc/malloc.c: (force_reg): Remove.
40209         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40210         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40211         force_reg by atomic_forced_read.
40212         * malloc/arena.c (ptmalloc_init): Likewise.
40213         * malloc/hooks.c (top_check): Likewise.
40214
40215 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40216
40217         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40218
40219 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40220
40221         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40222
40223 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40224
40225         * math/auto-libm-test-in: Add tests of lgamma.
40226         * math/auto-libm-test-out: Regenerated.
40227         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40228         (M_LOG_2_SQRT_PIl): Likewise.
40229         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40230         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40231         mpfr_f_f1.
40232         (func_calc_desc): Add mpfr_f_f1 union field.
40233         (ARGS1): New macro.
40234         (ARGS2): Likewise.
40235         (ARGS3): Likewise.
40236         (ARGS4): Likewise.
40237         (RET1): Likewise.
40238         (RET2): Likewise.
40239         (CALC): Likewise.
40240         (FUNC): Likewise.
40241         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40242         (test_functions): Add lgamma.
40243         (calc_generic_results): Handle mpfr_f_f1.
40244         * sysdeps/i386/fpu/libm-test-ulps: Update.
40245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40246
40247 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40248
40249         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40250         __mpn_add_n for PowerPC64/POWER7.
40251         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40252         __mpn_sub_n for PowerPC64/POWER7.
40253
40254         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40255         __mpn_addmul_1 for PowerPC64.
40256         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40257         __mpn_submul_1 for PowerPC64.
40258         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40259         for PowerPC64.
40260         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40261         for PowerPC64.
40262
40263 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40264
40265         [BZ #15089]
40266         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40267
40268 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40269
40270         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40271
40272         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40273         add multiarch folders.
40274         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40275         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40276         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40277         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40278         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40279         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40280         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40281         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40282         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40283         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40284         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40291
40292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40293         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40294         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40295         New file.
40296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40297         New file.
40298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40299         multiarch __ieee754_hypot for PowerPC32.
40300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40301         New file.
40302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40303         New file.
40304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40305         multiarch __ieee754_hypotf for PowerPC32.
40306
40307         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40308         long_double_symbol only if __logbl is defined.
40309         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40310         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40311         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40312         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40313         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40314         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40315         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40316         path for implementation.
40317         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40318         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40320         logb, and logbl multiarch implementations for PowerPC32.
40321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40322         file.
40323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40324         file.
40325         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40326         multiarch logb for PowerPC32.
40327         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40328         file.
40329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40330         file.
40331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40332         multiarch logbf for PowerPC32.
40333         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40335         file.
40336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40337         multiarch logbl implementation for PowerPC32.
40338
40339         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40340         and modff multiarch implementations.
40341         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40342         New file.
40343         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40344         New file.
40345         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40346         multiarch modf for PowerPC32.
40347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40348         New file.
40349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40350         New file.
40351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40352         multiarch modff for PowerPC32.
40353
40354         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40355         and lrintf multiarch implementations.
40356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40357         New file.
40358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40359         New file.
40360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40361         multiarch lrint for PowerPC32.
40362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40363         file: multiarch lrintf for PowerPC32.
40364
40365         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40366         and lroundf multiarch implementations.
40367         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40368         New file.
40369         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40370         New file.
40371         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40372         New file.
40373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40374         multiarch lround for PowerPC32.
40375         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40376         file: multiarch lroundf for PowerPC32.
40377
40378         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40379         copysign and copysignf multiarch implementations.
40380         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40381         New file.
40382         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40383         New file.
40384         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40385         file: multiarch copysign for PowerPC32.
40386         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40387         file: multiarch copysignf for PowerPC32.
40388
40389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40390         and truncf multiarch implementations.
40391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40392         New file.
40393         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40394         file.
40395         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40396         multiarch trunc for PowerPC32.
40397         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40398         New file.
40399         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40400         New file.
40401         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40402         multiarch truncf for PowerPC32.
40403
40404         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40405         and roundf multiarch implementations.
40406         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40407         New file.
40408         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40409         file.
40410         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40411         multiarch round for PowerPC32.
40412         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40413         New file.
40414         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40415         New file.
40416         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40417         multiarch roundf for PowerPC32.
40418
40419         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40420         and floorf multiarch implementations.
40421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40422         New file.
40423         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40424         file.
40425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40426         multiarch floor for PowerPC32.
40427         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40428         New file.
40429         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40430         New file.
40431         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40432         multiarch floorf for PowerPC32.
40433
40434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40435         and ceilf multiarch implementations.
40436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40437         New file.
40438         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40439         file.
40440         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40441         multiarch ceil for PowerPC32.
40442         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40443         New file.
40444         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40445         file.
40446         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40447         multiarch ceilf for PowerPC32.
40448
40449         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40450         is defined.
40451         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40452         FINITEF is defined.
40453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40454         and finitef multiarch implementations.
40455         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40456         New file.
40457         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40458         file.
40459         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40460         multiarch finite for PowerPC32.
40461         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40462         New file.
40463         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40464         file: multiarch finitef for PowerPC32.
40465
40466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40467         and isinff multiarch implementations.
40468         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40469         file.
40470         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40471         file.
40472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40473         multiarch isinf for PowerPC32.
40474         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40475         New file.
40476         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40477         multiarch isinff for PowerPC32.
40478
40479         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40480         alias when __isnan is defined.
40481         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40482         and isnanf multiarch implementations.
40483         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40484         file.
40485         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40486         file.
40487         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40488         file.
40489         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40490         file.
40491         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40492         multiarch isnan for PowerPC32.
40493         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40494         New file.
40495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40496         New file.
40497         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40498         multiarch isnanf for PowerPC32.
40499
40500         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40501         and sqrtf multiarch implementations.
40502         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40503         file.
40504         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40505         file.
40506         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40507         multiarch sqrt for PowerPC32.
40508         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40509         file.
40510         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40511         file.
40512         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40513         multiarch sqrtf for PowerPC32.
40514
40515         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40516         and llroundf multiarch implementations.
40517         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40518         New file.
40519         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40520         New file.
40521         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40522         New file.
40523         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40524         file: multiarch llround for PowerPC32.
40525         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40526         file: multiarch llroundf for PowerPC32.
40527
40528         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40529         multiarch PowerPC32 fpu implementations.
40530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40531         New file.
40532         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40533         New file.
40534         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40535         multiarch llrint for PowerPC32.
40536         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40537         New file.
40538         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40539         New file.
40540         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40541         file.
40542
40543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40544
40545         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40546         file.
40547         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40548         file.
40549         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40550         file.
40551         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40552         multiarch wordcopy for PPC32.
40553         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40554         wordcopy objects.
40555         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40556         (__libc_ifunc_impl_list): Likewise.
40557         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40558         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40559         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40560         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40561         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40562         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40563
40564         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40565         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40566         file.
40567         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40568         file.
40569         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40570         file.
40571         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40572         multiarch wcscpy for PPC32.
40573         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40574         multiarch objects.
40575         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40576         (__libc_ifunc_impl_list): Likewise.
40577         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40578         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40579         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40580         sysdeps/powerpc/power6/wcscpy.c.
40581
40582         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40583         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40584         file.
40585         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40586         file.
40587         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40588         file.
40589         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40590         multiarch wcsrchr for PPC32.
40591         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40592         multiarch objects.
40593         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40594         (__libc_ifunc_impl_list): Likewise.
40595         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40596         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40597         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40598         sysdeps/powerpc/power6/wcsrchr.c.
40599
40600         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40601         file.
40602         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40603         file.
40604         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40605         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40606         multiarch wcschr for PPc32.
40607         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40608         multiarch objects.
40609         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40610         (__libc_ifunc_impl_list): Likewise.
40611         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40612         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40613         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40614         sysdeps/powerpc/power6/wcschr.c.
40615
40616         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40617         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40618         file.
40619         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40620         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40621         file: multiarch strchr for PPC32.
40622         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40623         multiarch objects.
40624         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40625         (__libc_ifunc_impl_list): Likewise.
40626
40627         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40628         name.
40629         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40630         file.
40631         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40632         file.
40633         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40634         multiarch strchrnul for PPC32.
40635         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40636         multiarch objects.
40637         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40638         (__libc_ifunc_impl_list): Likewise.
40639
40640         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40641         file.
40642         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40643         multiarch strncasecmp for PPC32.
40644         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40645         file.
40646         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40647         multiarch strncasecmp_l for PPC32.
40648         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40649         strncasecmp multiarch objects.
40650         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40651         (__libc_ifunc_impl_list): Likewise.
40652
40653         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40654         file.
40655         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40656         multiarch strncasecmp for PPC32.
40657         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40658         New file.
40659         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40660         multiarch strcasecmp_l for PPC32.
40661         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40662         multiarch objects.
40663         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40664         (__libc_ifunc_impl_list): Likewise.
40665
40666         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40667         file.
40668         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40669         file.
40670         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40671         multiarch strncmp for PPC32.
40672         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40673         multiarch objects.
40674         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40675         (__libc_ifunc_impl_list): Likewise.
40676
40677         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40678         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40679         file.
40680         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40681         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40682         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40683         multiarch objects.
40684         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40685         (__libc_ifunc_impl_list): Likewise.
40686
40687         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40688         file.
40689         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40690         file.
40691         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40692         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40693         multiarch objects.
40694         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40695         (__libc_ifunc_impl_list): Likewise.
40696
40697         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40698         file.
40699         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40700         file.
40701         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40702         multiarch rawmemchr for PPC32.
40703         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40704         multiarch objects.
40705         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40706         (__libc_ifunc_impl_list): Likewise.
40707
40708         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40709         file.
40710         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40711         file.
40712         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40713         file: memrchr multiarch for PPC32.
40714         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40715         multiarch objects.
40716         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40717         (__libc_ifunc_impl_list): Likewise.
40718
40719         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40720         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40721         file.
40722         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40723         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40724         multiarch memchr for PPC32.
40725         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40726         multiarch objects.
40727         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40728         (__libc_ifunc_impl_list): Likewise.
40729
40730         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40731         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40732         file.
40733         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40734         file.
40735         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40736         file: multiarch mempcpy for PPC32.
40737         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40738         multiarch objects.
40739         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40740         (__libc_ifunc_impl_list): Likewise.
40741
40742         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40743         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40744         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40745         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40746         multiarch bzero for PPC32.
40747         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40748         file.
40749         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40750         file.
40751         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40752         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40753         file: multiarch memset for PPC32.
40754         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40755         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40756         memset multiarch objects.
40757         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40758         (__libc_ifunc_impl_list): Likewise.
40759
40760         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40761         file.
40762         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40763         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40764         memcmp for PPC32.
40765         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40766         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40767         multiarch objects.
40768         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40769         (__libc_ifunc_impl_list): Likewise.
40770
40771         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40772         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40773         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40774         file.
40775         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40776         file.
40777         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40778         file.
40779         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40780         multiarch memcpy for PPC32.
40781         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40782         multiarch objects.
40783         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40784         (__libc_ifunc_impl_list): Likewise.
40785
40786         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40787         support multiarch for POWER/PPC32.
40788         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40789         Likewise.
40790         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40792         Implies file to make multiarch folder appers before the fpu and
40793         default folder for power4 configuration.
40794
40795 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40796
40797         * scripts/bench.pl: Append volatile keyword to type.
40798
40799 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40800
40801         * sysdeps/sh/sotruss-lib.c: New file.
40802         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40803
40804 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40805
40806         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40807
40808 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40809
40810         [BZ #6810]
40811         * math/w_tgamma.c: Include <errno.h>.
40812         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40813         * math/w_tgammaf.c: Include <errno.h>.
40814         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40815         * math/w_tgammal.c: Include <errno.h>.
40816         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40817         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40818         underflow.  Add more tgamma tests.
40819         * math/auto-libm-test-out: Regenerated.
40820         * sysdeps/i386/fpu/libm-test-ulps: Update.
40821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40822
40823         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40824         sin, sinh, tan, tanh, tgamma, y0 and y1.
40825         * math/auto-libm-test-out: Regenerated.
40826         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40827         (TEST_COND_x86): Likewise.
40828         (M_E2l): Remove macro.
40829         (M_E3l): Likewise.
40830         (M_2_SQRT_PIl): Likewise.
40831         (M_SQRT_PIl): Likewise.
40832         (M_1_DIV_El): Likewise.
40833         (log_test_data): Use AUTO_TESTS_f_f.
40834         (log10_test_data): Likewise.
40835         (log1p_test_data): Likewise.
40836         (log2_test_data): Likewise.
40837         (sin_test_data): Likewise.
40838         (sin_tonearest_test_data): Likewise.
40839         (sin_towardzero_test_data): Likewise.
40840         (sin_downward_test_data): Likewise.
40841         (sin_upward_test_data): Likewise.
40842         (sinh_test_data): Likewise.
40843         (sinh_tonearest_test_data): Likewise.
40844         (sinh_towardzero_test_data): Likewise.
40845         (sinh_downward_test_data): Likewise.
40846         (sinh_upward_test_data): Likewise.
40847         (tan_test_data): Likewise.
40848         (tan_tonearest_test_data): Likewise.
40849         (tan_towardzero_test_data): Likewise.
40850         (tan_downward_test_data): Likewise.
40851         (tan_upward_test_data): Likewise.
40852         (tanh_test_data): Likewise.
40853         (tgamma_test_data): Likewise.
40854         (y0_test_data): Likewise.
40855         (y1_test_data): Likewise.
40856         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40857         (special_real_inputs): Add pi/4.
40858         * sysdeps/i386/fpu/libm-test-ulps: Update.
40859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40860
40861 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40862
40863         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40864         "longjmp_target" static probes.
40865         (__longjmp): Rename to __longjmp_symbol.
40866         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40867         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40868         on which longjmp to generate.
40869         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40870         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40871         probe.
40872         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40873         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40874         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40875         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40876         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40877         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40879         __longjmp_symbol based on which __longjmp to generate.
40880         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40881         probe.
40882         (setjmp): Rename to setjmp_symbol.
40883         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40884         (_setjmp): Rename to _setjmp_symbol.
40885         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40886         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40887         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40888         which setjmp to generate.
40889         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40890         "longjmp_target" static probes.
40891
40892 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40893
40894         * benchtests/README: Add note about output arguments.
40895         * benchtests/bench-sincos.c: Remove file.
40896         * benchtests/sincos-inputs: New file.
40897         * scripts/bench.pl: Identify output arguments and define
40898         static variables for them.
40899
40900         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40901
40902         [BZ #15941]
40903         * Makefile (INSTALL): Add install-plain.texi as the primary
40904         dependency.
40905         * manual/install-plain.texi: New file.
40906         * manual/install.texi: Include node directive only for
40907         non-plaintext output.
40908
40909 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40910
40911         * stdlib/longlong.h: Update from GCC.
40912
40913         [BZ #6807]
40914         [BZ #15901]
40915         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40916         * math/w_j0f.c (y0f): Likewise.
40917         * math/w_j0l.c (__y0l): Likewise.
40918         * math/w_j1.c (y1): Likewise.
40919         * math/w_j1f.c (y1f): Likewise.
40920         * math/w_j1l.c (__y1l): Likewise.
40921         * math/w_jn.c (yn): Likewise.
40922         * math/w_jnf.c (ynf): Likewise.
40923         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40924         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40925         value for Bessel function domain errors outside _SVID_ mode.
40926         Adjust sign of return value for yn (negative integer, 0).
40927         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40928         by zero in return for negative x and set sign appropriately for
40929         negative n.
40930         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40931         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40932         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40933         expectations in error cases.
40934         (y1_test_data): Likewise.
40935         (yn_test_data): Likewise.
40936         * sysdeps/i386/fpu/libm-test-ulps: Update.
40937         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40938
40939 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40940
40941         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40942         "64" to "64-v1".  Add "64-v2".
40943         (abi-64-options): Rename to ...
40944         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40945         (abi-64-condition): Rename to ...
40946         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40947         (abi-64-ld-soname): Rename to ...
40948         (abi-64-v1-ld-soname): ... this.
40949         (abi-64-v2-options): Define.
40950         (abi-64-v2-condition): Likewise.
40951         (abi-64-v2-ld-soname): Likewise.
40952         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40953         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40957
40958 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40959             Alan Modra  <amodra@gmail.com>
40960
40961         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40962         New versions for use with the ELFv2 ABI.
40963         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40964         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40965         declaration.
40966         (struct La_ppc64v2_retval): Likewise.
40967         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40968         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40969         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40970         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40971         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40972         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40973         Do not save or restore CR.
40974         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40975         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40976         return values for ELFv2 ABI.  Fix location of FPR return registers.
40977         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40978         updated values for _CALL_ELF == 2.
40979         (La_regs, La_retval, int_retval): Likewise.
40980
40981 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40982
40983         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40984         (FRAME_MIN_SIZE_PARM): Likewise.
40985         (FRAME_BACKCHAIN): Likewise.
40986         (FRAME_CR_SAVE): Likewise.
40987         (FRAME_LR_SAVE): Likewise.
40988         (FRAME_TOC_SAVE): Likewise.
40989         (FRAME_PARM_SAVE): Likewise.
40990         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40991         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40992         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40993         (call_mcount_parm_offset): New macro.
40994         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40995         (PROF): Use symbolic stack frame offsets.
40996         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40997         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40998         Redefine in terms of FRAME_MIN_SIZE.
40999         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41000         (_dl_profile_resolve): Likewise.  Update comment.
41001         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41002         symbols stack frame offsets.
41003         (__sigsetjmp): Likewise.
41004         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41005         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41006         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41007         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41008
41009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41010         (FRAME_BACKCHAIN): Remove.
41011         (FRAME_CR_SAVE): Likewise.
41012         (FRAME_LR_SAVE): Likewise.
41013         (FRAME_COMPILER_DW): Likewise.
41014         (FRAME_LINKER_DW): Likewise.
41015         (FRAME_TOC_SAVE): Likewise.
41016         (FRAME_PARM_SAVE): Likewise.
41017         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41018         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41019         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41021         (CHECK_SP): Use symbolic stack frame offsets.
41022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41023         zone" instead of caller's parameter save area for temp storage.
41024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41025         Likewise.  Also, use symbolic stack frame offsets.
41026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41027         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41028         our own stack frame instead of the caller's.
41029         (__socket): Use symbolic stack frame offsets.
41030
41031 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41032             Alan Modra  <amodra@gmail.com>
41033
41034         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41035         Define.
41036         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41037         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41038         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41039         New function.
41040         (elf_machine_fixup_plt): Call it.
41041         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41042         reloc arguments.
41043         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41044         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41045         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41046         r2 before calling target.
41047
41048 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41049             Alan Modra  <amodra@gmail.com>
41050
41051         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41052         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41053         versions of macros to support ELFv2 ABI.
41054         (LOCALENTRY): New macro.
41055         (ENTRY, EALIGN): Use it.
41056         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41057         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41058         fall through into ENTRY entry point.
41059         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41060         Only define if _CALL_ELF != 2.
41061
41062         (elf_machine_matches_host): Verify ABI version matches.
41063         (RTLD_START): Use LOCALENTRY.
41064         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41065         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41066         (PLT_ENTRY_WORDS): New macro.
41067         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41068         (elf_machine_runtime_setup): Support ELFv2 ABI.
41069         (elf_machine_fixup_plt): Likewise.
41070         (elf_machine_plt_conflict): Likewise.
41071         (resolve_ifunc): Likewise.
41072         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41073         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41074         Likewise.
41075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41076         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41078         (makecontext): Support ELFv2 ABI.
41079         * elf/elf.h (EF_PPC64_ABI): Define.
41080
41081 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41082
41083         * sysdeps/powerpc/powerpc64/sysdep.h
41084         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41085         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41086         (ENTRY) [ASSEMBLER]: ... but instead here ...
41087         (EALIGN) [ASSEMBLER]: ... and here.
41088         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41089         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41090         (ENTRY_2) [!ASSEMBLER]: Use it.
41091         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41092         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41093         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41094         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41095         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41097         Use PPC64_LOAD_FUNCPTR.
41098
41099         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41100
41101 2013-12-04  Alan Modra  <amodra@gmail.com>
41102
41103         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41104         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41105         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41106         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41107
41108         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41109         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41110         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41111         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41112         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41113         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41114
41115 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41116
41117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41118         (__makecontext): Fix incorrect CFI when backtracing out of
41119         context created via makecontext.
41120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41121         (__setcontext): Fix incorrect CFI during switch to new context.
41122         (__novec_setcontext): Likewise.
41123
41124 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41125
41126         [BZ #4772]
41127         * time/strptime_l.c (__strptime_internal): Allow modifiers
41128         in strptime.
41129         * time/tst-strptime.c (day_tests): Add testcase.
41130
41131 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41132
41133         * scripts/bench.pl: Skip over blank lines.
41134
41135 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41136
41137         [BZ #926]
41138         * manual/time.texi (Calendar Time): Clarify what timezone functions
41139         use.
41140
41141 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41142
41143         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41144
41145 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41146
41147         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41148         implementation.
41149         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41150         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41151         * debug/memset_chk.c (__memset_chk): Likewise.
41152         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41153         * debug/strncpy_chk.c: Likewise.
41154
41155 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41156
41157         [BZ #15268]
41158         [BZ #15425]
41159         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41160         (__ieee754_exp): For possibly underflowing results, check size of
41161         result and force underflow exception if required.
41162         * math/auto-libm-test-in: Add more tests of exp.
41163         * math/auto-libm-test-out: Regenerated.
41164         * sysdeps/i386/fpu/libm-test-ulps: Update.
41165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41166
41167         [BZ #16283]
41168         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41169         * math/w_exp2f.c (__exp2f): Likewise.
41170         * math/w_exp2l.c (__exp2l): Likewise.
41171         * math/auto-libm-test-in: Do not allow missing errno on exp2
41172         underflow.
41173         * math/auto-libm-test-out: Regenerated.
41174
41175 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41176
41177         [BZ #16274]
41178         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41179         handle filename validation.
41180         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41181         (do_open): Delete.
41182
41183 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41184
41185         [BZ #6786]
41186         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41187         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41188         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41189         <float.h>.
41190         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41191         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41192         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41193         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41194         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41195         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41196         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41197         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41198         Add more erfc tests.
41199         * math/auto-libm-test-out: Regenerated.
41200         * sysdeps/i386/fpu/libm-test-ulps: Update.
41201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41202
41203         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41204         exp2, expm1, j0 and j1.
41205         * math/auto-libm-test-out: Regenerated.
41206         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41207         (erfc_test_data): Likewise.
41208         (exp_test_data): Likewise.
41209         (exp_tonearest_test_data): Likewise.
41210         (exp_towardzero_test_data): Likewise.
41211         (exp_downward_test_data): Likewise.
41212         (exp_upward_test_data): Likewise.
41213         (exp10_test_data): Likewise.
41214         (exp2_test_data): Likewise.
41215         (expm1_test_data): Likewise.
41216         (j0_test_data): Likewise.
41217         (j1_test_data): Likewise.
41218         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41219         (input_flag_type): Add flag_xfail_rounding.
41220         (input_flags): Add xfail-rounding.
41221         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41222         (output_for_one_input_case): Handle flag_xfail_rounding.
41223         * sysdeps/i386/fpu/libm-test-ulps: Update.
41224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41225
41226 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41227
41228         [BZ #16289]
41229         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41230         division by 0.
41231
41232 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41233
41234         [BZ #16195]
41235         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41236         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41237         (STAP_PROBE0): New macro.
41238         (STAP_PROBE1): Likewise.
41239         (STAP_PROBE2): Likewise.
41240         (STAP_PROBE3): Likewise.
41241         (STAP_PROBE4): Likewise.
41242
41243 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41244
41245         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41246
41247 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41248
41249         * benchtests/Makefile (bench): Add sqrt.
41250         (LDLIBS-bench-sqrt): New.
41251         * benchtests/sqrt-input: New.
41252
41253 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41254
41255         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41256         (GAIH_EAI): Likewise.
41257         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41258         (gaih_inet): Likewise.
41259         (getaddrinfo): Don't use GAIH_EAI.
41260
41261         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41262         (struct gaih): Remove definition.
41263
41264 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41265
41266         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41267         Use HERRNOP directly.
41268
41269 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41270
41271         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41272
41273 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41274
41275         * math/gen-auto-libm-tests.c (test_functions): Add more
41276         single-argument functions.
41277         (special_fill_pi_2): New function.
41278         (special_fill_minus_pi_2): Likewise.
41279         (special_fill_pi_6): Likewise.
41280         (special_fill_minus_pi_6): Likewise.
41281         (special_fill_pi_3): Likewise.
41282         (special_fill_2pi_3): Likewise.
41283         (special_fill_e): Likewise.
41284         (special_fill_1_e): Likewise.
41285         (special_fill_e_minus_1): Likewise.
41286         (special_real_inputs): Add more special inputs.
41287         (output_for_one_input_case): Do not require ERANGE on underflow to
41288         zero if round-to-nearest result does not underflow to zero, unless
41289         exact results required.
41290         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41291         atan, atanh, cbrt, cos and cosh.
41292         * math/auto-libm-test-out: Regenerated.
41293         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41294         (acos_tonearest_test_data): Likewise.
41295         (acos_towardzero_test_data): Likewise.
41296         (acos_downward_test_data): Likewise.
41297         (acos_upward_test_data): Likewise.
41298         (acosh_test_data): Likewise.
41299         (asin_test_data): Likewise.
41300         (asin_tonearest_test_data): Likewise.
41301         (asin_towardzero_test_data): Likewise.
41302         (asin_upward_test_data): Likewise.
41303         (asinh_test_data): Likewise.
41304         (atan_test_data): Likewise.
41305         (atanh_test_data): Likewise.
41306         (cbrt_test_data): Likewise.
41307         (cos_test_data): Likewise.
41308         (cos_tonearest_test_data): Likewise.
41309         (cos_towardzero_test_data): Likewise.
41310         (cos_downward_test_data): Likewise.
41311         (cos_upward_test_data): Likewise.
41312         (cosh_test_data): Likewise.
41313         (cosh_tonearest_test_data): Likewise.
41314         (cosh_towardzero_test_data): Likewise.
41315         (cosh_downward_test_data): Likewise.
41316         (cosh_upward_test_data): Likewise.
41317         * sysdeps/i386/fpu/libm-test-ulps: Update.
41318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41319
41320 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41321
41322         [BZ #6787]
41323         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41324         * math/w_exp10f.c (__exp10f): Likewise.
41325         * math/w_exp10l.c (__exp10l): Likewise.
41326         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41327         errno settings in existing tests.
41328
41329         [BZ #14032]
41330         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41331         precision control set to double precision.
41332         * sysdeps/i386/fpu/w_sqrt.c: New file.
41333         * math/auto-libm-test-in: Add more tests.
41334         * math/auto-libm-test-out: Update.
41335
41336         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41337         (sqrt_test_tonearest): New function.
41338         (sqrt_towardzero_test_data): New variable.
41339         (sqrt_test_towardzero): New function.
41340         (sqrt_downward_test_data): New variable.
41341         (sqrt_test_downward): New function.
41342         (sqrt_upward_test_data): New variable.
41343         (sqrt_test_upward): New function.
41344         (main): Call the new functions.
41345
41346         * math/gen-auto-libm-tests.c: New file.
41347         * math/auto-libm-test-in: Likewise.
41348         * math/auto-libm-test-out: New generated file.
41349         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41350         variables.
41351         (%beautify): Add generated representations of zero.
41352         (top level): Set $auto_input and call parse_auto_input.
41353         (beautify): Remove trailing "f" from hex float constants.
41354         (parse_args): Handle XFAIL_TEST.
41355         (convert_condition): New function.
41356         (or_value): Likewise.
41357         (or_cond_value): Likewise.
41358         (generate_testfile): Handle AUTO_TESTS_* lines.
41359         (parse_auto_input): New function.
41360         * math/libm-test.inc (XFAIL_TEST): New macro.
41361         (ERRNO_UNCHANGED): Update value.
41362         (ERRNO_EDOM): Likewise.
41363         (ERRNO_ERANGE): Likewise.
41364         (IGNORE_RESULT): Likewise.
41365         (TEST_COND_flt_32): New macro.
41366         (TEST_COND_dbl_64): Likewise.
41367         (TEST_COND_ldbl_96_intel): Likewise.
41368         (TEST_COND_ldbl_96_m68k): Likewise.
41369         (TEST_COND_ldbl_128): Likewise.
41370         (TEST_COND_ldbl_128ibm): Likewise.
41371         (TEST_COND_long32): Likewise.
41372         (TEST_COND_long64): Likewise.
41373         (TEST_COND_before_rounding): Likewise.
41374         (TEST_COND_after_rounding): Likewise.
41375         (enable_test): Handle XFAIL_TEST flag.
41376         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41377         with finite results.
41378         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41379         auto-libm-test-out.
41380
41381 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41382             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41383
41384         [BZ #16214]
41385         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41386         __tls_get_addr_internal instead of __tls_get_offset in order to
41387         avoid GOT pointer dependency.  Make rtld export
41388         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41389         __tls_get_addr since we are a __tls_get_offset platform.
41390         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41391         GOT pointer being set up before.
41392         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41393
41394 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41395
41396         * manual/math.texi (Errors in Math Functions): Document accuracy
41397         goals.
41398
41399         [BZ #15004]
41400         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41401         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41402         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41403         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41404         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41405         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41406         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41407         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41408         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41409         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41410         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41411         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41412         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41413         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41414         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41415         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41416
41417         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41418         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41419         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41420         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41421         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41422         Likewise.
41423         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41424         Likewise.
41425         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41426         Likewise.
41427         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41428         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41429         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41430         atomic-feupdateenv and flt-rounds.
41431         * sysdeps/powerpc/nofpu/Versions (libc): Add
41432         __atomic_feholdexcept, __atomic_feclearexcept,
41433         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41434         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41435         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41436         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41437         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41438         here.
41439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41440         Update.
41441
41442         * manual/arith.texi (FP Exceptions): Document that exceptions may
41443         not be raised when matherr is used.
41444         (Math Error Reporting): Document overflow in directed rounding
41445         modes.  Document that errno may not be set when finite values are
41446         returned on overflow.  Document intent to set errno on underflow
41447         only for underflow to zero.
41448
41449         [BZ #16271]
41450         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41451         round-to-nearest then adjust result for other rounding modes.
41452         * include/fenv.h (fegetround): Use libm_hidden_proto.
41453         * math/fegetround.c (fegetround): Use libm_hidden_def.
41454         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41455         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41456         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41457         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41458         Likewise.
41459         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41460         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41461         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41462         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41463
41464 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41465
41466         [BZ #16077]
41467         * nss/Versions (libnss_files): Add
41468         _nss_files_gethostbyname3_r.
41469         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41470         New function.
41471         (HOST_DB_LOOKUP): Remove macro.
41472         (_nss_files_gethostbyname_r): Implement function without the
41473         HOST_DB_LOOKUP macro.
41474         (_nss_files_gethostbyname2_r): Likewise.
41475
41476 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41477
41478         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41479
41480 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41481
41482         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41483         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41484         warning.
41485
41486 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41487
41488         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41489         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41490         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41491         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41492         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41493         __fe_nomask_env_priv and attribute_hidden.
41494         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41495         (libc_feupdateenv_test_ppc): Likewise.
41496         (libc_feresetround_ppc): Likewise.
41497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41498         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41499         compat_symbol macro.
41500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41501         (__fe_nomask_env): Likewise.
41502         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41503
41504 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41505
41506         * string/Makefile: Remove ifunc tests.
41507         * string/test-string.h: Define TEST_IFUNC.
41508         * string/test-bcopy-ifunc.c: Remove.
41509         * string/test-bzero-ifunc.c: Likewise.
41510         * string/test-memccpy-ifunc.c: Likewise.
41511         * string/test-memchr-ifunc.c: Likewise.
41512         * string/test-memcmp-ifunc.c: Likewise.
41513         * string/test-memcpy-ifunc.c: Likewise.
41514         * string/test-memmem-ifunc.c: Likewise.
41515         * string/test-memmove-ifunc.c: Likewise.
41516         * string/test-mempcpy-ifunc.c: Likewise.
41517         * string/test-memrchr-ifunc.c: Likewise.
41518         * string/test-memset-ifunc.c: Likewise.
41519         * string/test-rawmemchr-ifunc.c: Likewise.
41520         * string/test-stpcpy-ifunc.c: Likewise.
41521         * string/test-stpncpy-ifunc.c: Likewise.
41522         * string/test-strcasecmp-ifunc.c: Likewise.
41523         * string/test-strcasestr-ifunc.c: Likewise.
41524         * string/test-strcat-ifunc.c: Likewise.
41525         * string/test-strchr-ifunc.c: Likewise.
41526         * string/test-strchrnul-ifunc.c: Likewise.
41527         * string/test-strcmp-ifunc.c: Likewise.
41528         * string/test-strcpy-ifunc.c: Likewise.
41529         * string/test-strcspn-ifunc.c: Likewise.
41530         * string/test-strlen-ifunc.c: Likewise.
41531         * string/test-strncasecmp-ifunc.c: Likewise.
41532         * string/test-strncat-ifunc.c: Likewise.
41533         * string/test-strncmp-ifunc.c: Likewise.
41534         * string/test-strncpy-ifunc.c: Likewise.
41535         * string/test-strnlen-ifunc.c: Likewise.
41536         * string/test-strpbrk-ifunc.c: Likewise.
41537         * string/test-strrchr-ifunc.c: Likewise.
41538         * string/test-strspn-ifunc.c: Likewise.
41539         * string/test-strstr-ifunc.c: Likewise.
41540
41541 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41542
41543         * benchtests/Makefile: Remove ifunc tests.
41544         * benchtests/bench-string.h: Define TEST_IFUNC.
41545         * benchtests/bench-bcopy-ifunc.c: Remove.
41546         * benchtests/bench-bzero-ifunc.c: Likewise.
41547         * benchtests/bench-memccpy-ifunc.c: Likewise.
41548         * benchtests/bench-memchr-ifunc.c: Likewise.
41549         * benchtests/bench-memcmp-ifunc.c: Likewise.
41550         * benchtests/bench-memcpy-ifunc.c: Likewise.
41551         * benchtests/bench-memmem-ifunc.c: Likewise.
41552         * benchtests/bench-memmove-ifunc.c: Likewise.
41553         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41554         * benchtests/bench-memrchr-ifunc.c: Likewise.
41555         * benchtests/bench-memset-ifunc.c: Likewise.
41556         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41557         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41558         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41559         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41560         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41561         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41562         * benchtests/bench-strcat-ifunc.c: Likewise.
41563         * benchtests/bench-strchr-ifunc.c: Likewise.
41564         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41565         * benchtests/bench-strcmp-ifunc.c: Likewise.
41566         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41567         * benchtests/bench-strcpy-ifunc.c: Likewise.
41568         * benchtests/bench-strcspn-ifunc.c: Likewise.
41569         * benchtests/bench-strlen-ifunc.c: Likewise.
41570         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41571         * benchtests/bench-strncat-ifunc.c: Likewise.
41572         * benchtests/bench-strncmp-ifunc.c: Likewise.
41573         * benchtests/bench-strncpy-ifunc.c: Likewise.
41574         * benchtests/bench-strnlen-ifunc.c: Likewise.
41575         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41576         * benchtests/bench-strrchr-ifunc.c: Likewise.
41577         * benchtests/bench-strsep-ifunc.c: Likewise.
41578         * benchtests/bench-strspn-ifunc.c: Likewise.
41579         * benchtests/bench-strstr-ifunc.c: Likewise.
41580
41581 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41582
41583         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41584
41585 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41586
41587         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41588         * rt/aio.h: Likewise.
41589         * sysdeps/gnu/bits/utmp.h: Likewise.
41590         * sysdeps/gnu/bits/utmpx.h: Likewise.
41591         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41592         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41593         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41594         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41595         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41596         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41597         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41598         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41599         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41600         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41601         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41602         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41603         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41605         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41606         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41607         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41608         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41609         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41610         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41611         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41612         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41613         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41614         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41615         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41616         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41617         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41618         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41619         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41620         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41621         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41622         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41623         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41624         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41625         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41626         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41627         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41628         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41629         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41630         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41631         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41632         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41633
41634 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41635
41636         [BZ #16245]
41637         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41638         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41639
41640 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41641
41642         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41643         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41644         Likewise.
41645
41646 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41647
41648         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41649         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41650         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41651         (__fesetround): Remove define.
41652         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41653         rounding and exceptions handling.
41654         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41655         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41656         (__fe_nomask_env): Likewise.
41657         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41658         __fegetround instead of fegetround.
41659         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41660         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41661
41662 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41663
41664         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41665         it's there.
41666
41667         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41668
41669 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41670
41671         [BZ #11157]
41672         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41673         (encrypt_r): Likewise.
41674         * malloc/obstack.h (obstack_free): Likewise.
41675         * posix/unistd.h (encrypt): Likewise.
41676
41677 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41678
41679         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41680         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41681         DL_CALL_DT_FINI() that call the functions directly.
41682         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41683         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41684         * elf/dl-fini.c: Likewise.
41685
41686 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41687
41688         * malloc/hooks.c (memalign_check): Add alignment rounding.
41689         * malloc/malloc.c (_mid_memalign): New function.
41690         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41691         Implement by calling _mid_memalign.
41692         * manual/probes.texi (Memory Allocation Probes): Remove
41693         memory_valloc_retry and memory_pvalloc_retry.
41694
41695 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41696
41697         * locale/programs/locarchive.c (open_archive): Add const
41698         qualifier to ARCHIVEFNAME and copy default fname to
41699         DEFAULT_FNAME.
41700
41701         [BZ #15601]
41702         * libio/tst-widetext.input: Rename Oriya to Odia.
41703         * locale/iso-639.def: Likewise.
41704
41705         * manual/probes.texi (Mathematical Function Probes): Add
41706         documentation for sin, cos, asin and acos probes.
41707         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41708         (__sin32): Add slowasin probe.
41709         (__cos32): Add slowacos probe.
41710         (__mpsin): Add slowsin probe.
41711         (__mpcos): Add slowcos probe.
41712
41713 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41714
41715         [BZ #15483]
41716         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41717         thread-local __sim_exceptions_thread and global
41718         __sim_exceptions_global.
41719         (__sim_disabled_exceptions): Change to thread-local
41720         __sim_disabled_exceptions_thread and global
41721         __sim_disabled_exceptions_global.
41722         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41723         and global __sim_round_mode_global.
41724         (__simulate_exceptions): Use thread-local floating-point state and
41725         set global state from it as needed.
41726         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41727         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41728         __sim_round_mode_thread.
41729         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41730         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41731         and global __sim_exceptions_global.
41732         (__sim_disabled_exceptions): Change to thread-local
41733         __sim_disabled_exceptions_thread and global
41734         __sim_disabled_exceptions_global.
41735         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41736         and global __sim_round_mode_global.
41737         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41738         (SIM_SET_GLOBAL): Likewise.
41739         * sysdeps/powerpc/soft-fp/sfp-machine.h
41740         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41741         __sim_round_mode_thread.
41742         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41743         __sim_disabled_exceptions_thread.
41744         (__sim_exceptions): Change to __sim_exceptions_thread.
41745         (__sim_disabled_exceptions): Change to
41746         __sim_disabled_exceptions_thread.
41747         (__sim_round_mode): Change to __sim_round_mode_thread.
41748         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41749         thread-local floating-point state and set global state from it as
41750         needed.
41751         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41752         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41753         (__sim_disabled_exceptions): Remove extern declaration.
41754         (feenableexcept): Use thread-local floating-point state and set
41755         global state from it as needed.
41756         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41757         extern declaration.
41758         (__sim_disabled_exceptions): Likewise.
41759         (__sim_round_mode): Likewise.
41760         (__fegetenv): Use thread-local floating-point state.
41761         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41762         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41763         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41764         floating-point state and set global state from it as needed.
41765         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41766         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41767         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41768         Likewise.
41769         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41770         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41771         Likewise.
41772         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41773         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41774         Use __sim_round_mode_thread.
41775         * math/test-fenv-tls.c: New file.
41776         * math/Makefile (tests): Add test-fenv-tls.
41777         ($(objpfx)test-fenv-tls): Depend on
41778         $(common-objpfx)nptl/libpthread.so.
41779
41780 2013-11-19  Andreas Schwab  <schwab@suse.de>
41781
41782         * locale/programs/locale.c (show_info): Decode wordarray elements.
41783         * locale/categories.def (LC_MONETARY): Add element for
41784         _NL_MONETARY_CRNCYSTR.
41785         * locale/C-monetary.c (conversion_rate): New variable.
41786         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41787         element.
41788
41789 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41790
41791         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41792         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41793
41794 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41795
41796         * elf/Makefile (tst-auxv): New test.
41797         * elf/tst-auxv.c: New
41798         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41799
41800 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41801
41802         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41803         (hidden_proto): Caller changed.
41804         (hidden_tls_proto): New macro.
41805         (libc_hidden_tls_proto): Likewise.
41806         (rtld_hidden_tls_proto): Likewise.
41807         (libm_hidden_tls_proto): Likewise.
41808         (libresolv_hidden_tls_proto): Likewise.
41809         (librt_hidden_tls_proto): Likewise.
41810         (libdl_hidden_tls_proto): Likewise.
41811         (libnss_files_hidden_tls_proto): Likewise.
41812         (libnsl_hidden_tls_proto): Likewise.
41813         (libnss_nisplus_hidden_tls_proto): Likewise.
41814         (libutil_hidden_tls_proto): Likewise.
41815
41816 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41817
41818         [BZ #10253]
41819         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41820         (decompose_rpath): Defer expansion to fillin_rpath.
41821         (_dl_init_paths): Pass linkmap to fillin_rpath.
41822
41823 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41824
41825         * benchtests/Makefile: Add strsep.
41826         * benchtests/bench-strsep.c: New file: strsep benchtest.
41827         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41828
41829 2013-11-18  Andreas Schwab  <schwab@suse.de>
41830
41831         * locale/programs/locale.c (show_info) [case byte]: Check for
41832         '\377' instead of '\177'.
41833         * locale/C-monetary.c (not_available): Always use "\377".
41834         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41835         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41836         detect unavailable sign_posn locale elements.
41837         * locale/localeconv.c (__localeconv): For grouping and
41838         mon_grouping handle "\177" and "\377" like no grouping.
41839         (INT_ELEM): New macro.  Use it to set all numeric members.
41840         * locale/programs/ld-monetary.c (monetary_read)
41841         <tok_mon_grouping>: Normalize single -1 to the empty string.
41842         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41843         Likewise.
41844
41845 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41846
41847         [BZ #16055]
41848         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41849         when we match (nil).
41850         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41851
41852 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41853
41854         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41855         (NO_TEST_INLINE): Update value.
41856         (ERRNO_UNCHANGED): Likewise.
41857         (ERRNO_EDOM): Likewise.
41858         (ERRNO_ERANGE): Likewise.
41859         (IGNORE_RESULT): Likewise.
41860         (check_float_internal): Check signs of NaN results if
41861         TEST_NAN_SIGN used.
41862         (check_complex): Pass TEST_NAN_SIGN flag through to second
41863         check_float_internal call.
41864         (copysign_test_data): Add tests with quiet NaNs as second
41865         argument.  Use TEST_NAN_SIGN.
41866         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41867         TEST_NAN_SIGN.
41868         (signbit_test_data): Add tests of quiet NaN argument.
41869         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41870
41871         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41872         $ignore_result.
41873         (parse_args): Handle function results specified as IGNORE.
41874         * math/libm-test.inc (IGNORE_RESULT): New macro.
41875         (check_float_internal): Do not check numerical result if flag
41876         IGNORE_RESULT set.
41877         (check_complex): Pass through IGNORE_RESULT to second
41878         check_float_internal call.
41879         (check_int): Do not check numerical result if flag IGNORE_RESULT
41880         set.
41881         (check_long): Likewise.
41882         (check_bool): Likewise.
41883         (check_longlong): Likewise.
41884         (lrint_test_data): Add tests of infinite and NaN arguments.
41885         (lrint_tonearest_test_data): Likewise.
41886         (lrint_towardzero_test_data): Likewise.
41887         (lrint_downward_test_data): Likewise.
41888         (lrint_upward_test_data): Likewise.
41889         (llrint_test_data): Likewise.
41890         (llrint_tonearest_test_data): Likewise.
41891         (llrint_towardzero_test_data): Likewise.
41892         (llrint_downward_test_data): Likewise.
41893         (llrint_upward_test_data): Likewise.
41894         (lround_test_data): Likewise.
41895         (llround_test_data): Likewise.
41896
41897         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41898         (ERRNO_UNCHANGED): Update value.
41899         (ERRNO_EDOM): Likewise.
41900         (ERRNO_ERANGE): Likewise.
41901         (NO_TEST_INLINE_FLOAT): New macro.
41902         (NO_TEST_INLINE_DOUBLE): Likewise.
41903         (enable_test): New function.
41904         (RUN_TEST_f_f): Check enable_test before running test.
41905         (RUN_TEST_2_f): Likewise.
41906         (RUN_TEST_fff_f): Likewise.
41907         (RUN_TEST_c_f): Likewise.
41908         (RUN_TEST_f_f1): Likewise.
41909         (RUN_TEST_fF_f1): Likewise.
41910         (RUN_TEST_fI_f1): Likewise.
41911         (RUN_TEST_ffI_f1): Likewise.
41912         (RUN_TEST_c_c): Likewise.
41913         (RUN_TEST_cc_c): Likewise.
41914         (RUN_TEST_f_i): Likewise.
41915         (RUN_TEST_f_i_tg): Likewise.
41916         (RUN_TEST_ff_i_tg): Likewise.
41917         (RUN_TEST_f_b): Likewise.
41918         (RUN_TEST_f_b_tg): Likewise.
41919         (RUN_TEST_f_l): Likewise.
41920         (RUN_TEST_f_L): Likewise.
41921         (RUN_TEST_fFF_11): Likewise.
41922         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41923         conditionals.
41924         (cosh_test_data): Likewise.
41925         (exp_test_data): Likewise.
41926         (expm1_test_data): Likewise.
41927         (hypot_test_data): Likewise.
41928         (pow_test_data): Likewise.
41929         (sinh_test_data): Likewise.
41930         (tanh_test_data): Likewise.
41931         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41932         flags argument.
41933
41934         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41935         tests with quiet NaN input and output.
41936         (acosh_test_data): Likewise.
41937         (asin_test_data): Likewise.
41938         (asinh_test_data): Likewise.
41939         (atan_test_data): Likewise.
41940         (atanh_test_data): Likewise.
41941         (atan2_test_data): Likewise.
41942         (cbrt_test_data): Likewise.
41943         (cos_test_data): Likewise.
41944         (cosh_test_data): Likewise.
41945         (erf_test_data): Likewise.
41946         (erfc_test_data): Likewise.
41947         (exp_test_data): Likewise.
41948         (exp10_test_data): Likewise.
41949         (exp2_test_data): Likewise.
41950         (expm1_test_data): Likewise.
41951         (hypot_test_data): Likewise.
41952         (j0_test_data): Likewise.
41953         (j1_test_data): Likewise.
41954         (jn_test_data): Likewise.
41955         (lgamma_test_data): Likewise.
41956         (log_test_data): Likewise.
41957         (log10_test_data): Likewise.
41958         (log1p_test_data): Likewise.
41959         (log2_test_data): Likewise.
41960         (pow_test_data): Likewise.
41961         (scalb_test_data): Likewise.
41962         (sin_test_data): Likewise.
41963         (sincos_test_data): Likewise.
41964         (sinh_test_data): Likewise.
41965         (tan_test_data): Likewise.
41966         (tanh_test_data): Likewise.
41967         (tgamma_test_data): Likewise.
41968         (y0_test_data): Likewise.
41969         (y1_test_data): Likewise.
41970         (yn_test_data): Likewise.
41971
41972         [BZ #16167]
41973         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41974         argument being NaN and avoid computations with second argument in
41975         that case.
41976         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41977         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41978         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41979
41980 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41981
41982         * locale/iso-639.def: Add Chitwani Tharu (the).
41983
41984 2013-11-14  Andreas Schwab  <schwab@suse.de>
41985
41986         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41987         word instead of empty string.
41988
41989 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41990
41991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41992         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41994         (__fe_nomask_env): Likewise.
41995
41996 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41997
41998         * benchtests/bench-timing.h: Include time.h.
41999
42000 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42001
42002         [BZ #15997]
42003         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42004         to 3.4.0 for x32.
42005         * sysdeps/unix/sysv/linux/configure: Regenerated.
42006
42007 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42008
42009         [BZ #16151]
42010         * stdlib/strtod_l.c (round_and_return): Do not consider
42011         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42012         exponent one less than half the least subnormal exponent.
42013         * stdlib/test-strtod-round-data: Add more tests.
42014         * stdlib/tst-strtod-round.c (tests): Regenerated.
42015
42016 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42017
42018         [BZ #14143]
42019         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42020         (__fe_mask_env): Likewise.
42021         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42022         libm_hidden_proto and add function prototype.
42023         (__fe_mask_env): Add function prototype.
42024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42025         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42027         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42029         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42030
42031 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42032
42033         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42034         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42035
42036 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42037
42038         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42039         of htab_find_slot().
42040
42041 2013-11-11  David S. Miller  <davem@davemloft.net>
42042
42043         [BZ #16150]
42044         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42045         symbol in the non-vis3 case in static builds.
42046         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42047         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42048         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42049         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42050
42051 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42052
42053         [BZ #387]
42054         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42055         it is empty.
42056
42057 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42058
42059         * benchtests/Makefile: Add bench-strtod.
42060         * benchtests/bench-strtod.c: New file: strtod benchtest
42061
42062 2013-11-11  Andreas Schwab  <schwab@suse.de>
42063
42064         [BZ #16153]
42065         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42066         terminating NUL in key length.
42067
42068 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42069
42070         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42071         Add artificial ODP entry for vDSO symbol for PPC64.
42072         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42073         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42074
42075 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42076
42077         [BZ #15374]
42078         * nss/getent.c (services_keys): Recognize services starting with digit.
42079
42080 2013-11-06  David S. Miller  <davem@davemloft.net>
42081
42082         [BZ #15985]
42083         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42084         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42085
42086 2013-11-06  Will Newton  <will.newton@linaro.org>
42087
42088         * manual/memory.texi (Malloc Examples): Remove register
42089         keyword from examples.
42090
42091 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42092
42093         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42094
42095 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42096
42097         [BZ #6981]
42098         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42099         depending on [__GCC_IEC_559 > 0].
42100         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42101         depending on [__GCC_IEC_559_COMPLEX > 0].
42102
42103 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42104
42105         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42106         to iso-639.def.
42107
42108 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42109
42110         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42111
42112 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42113
42114         [BZ #16112]
42115         * malloc/malloc (malloc_info): Do not handle first bin as
42116         special case.
42117
42118 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42119
42120         * locale/iso-639.def: Add Central Nahuatl (nhn).
42121
42122 2013-11-01  Bruno Haible  <bruno@clisp.org>
42123
42124         [BZ #7003]
42125         * manual/math.texi (BSD Random): Specify range upper bound as
42126         in POSIX.
42127
42128 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42129
42130         * locale/iso-639.def: Add Meadow Mari (mhr).
42131
42132 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42133
42134         [BZ #14752], [BZ #15763]
42135         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42136         Validate name.
42137         * rt/tst_shm.c: Add test for escaping directory.
42138
42139 2013-10-31  Andreas Schwab  <schwab@suse.de>
42140
42141         [BZ #15917]
42142         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42143         followed by 'x' as part of digit sequence.
42144         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42145
42146 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42147
42148         [BZ #16037]
42149         * configure.ac: allow GNU Make 4.0 and greater.
42150         * configure: Regenerated.
42151
42152 2013-10-30  Will Newton  <will.newton@linaro.org>
42153
42154         [BZ #16038]
42155         * malloc/hooks.c (memalign_check): Limit alignment to the
42156         maximum representable power of two.
42157         * malloc/malloc.c (__libc_memalign): Likewise.
42158         * malloc/tst-memalign.c (do_test): Add test for very
42159         large alignment values.
42160         * malloc/tst-posix_memalign.c (do_test): Likewise.
42161
42162 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42163
42164         [BZ #11087]
42165         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42166         (munmap_chunk): Likewise.
42167         (mremap_chunk): Likewise.
42168
42169 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42170
42171         [BZ #15799]
42172         * stdlib/div.c (div): Remove obsolete code.
42173         * stdlib/ldiv.c (ldiv): Likewise.
42174         * stdlib/lldiv.c (lldiv): Likewise.
42175
42176 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42177
42178         [BZ #16071]
42179         * nss/nss_files/files-XXX.c (get_contents_ret): New
42180         enumerator.
42181         (get_contents): New function.
42182         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42183
42184 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42185
42186         * configure.in: Moved to ...
42187         * configure.ac: ... here. Change reference to configure.in
42188         to configure.ac.
42189         * sysdeps/arm/preconfigure.ac: ... here.
42190         configure.in to configure.ac.
42191         * sysdeps/gnu/configure.in: Moved to ...
42192         * sysdeps/gnu/configure.ac: ... here.
42193         * sysdeps/i386/configure.in: Moved to ...
42194         * sysdeps/i386/configure.ac: ... here.
42195         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42196         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42197         * sysdeps/mach/configure.in: Moved to ...
42198         * sysdeps/mach/configure.ac: ... here.
42199         * sysdeps/mach/hurd/configure.in: Moved to ...
42200         * sysdeps/mach/hurd/configure.ac: ... here.
42201         * sysdeps/powerpc/configure.in: Moved to ...
42202         * sysdeps/powerpc/configure.ac: ... here.
42203         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42204         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42205         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42206         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42207         * sysdeps/s390/s390-32/configure.in: Moved to ...
42208         * sysdeps/s390/s390-32/configure.ac: ... here.
42209         * sysdeps/s390/s390-64/configure.in: Moved to ...
42210         * sysdeps/s390/s390-64/configure.ac: ... here.
42211         * sysdeps/sh/configure.in: Moved to ...
42212         * sysdeps/sh/configure.ac: ... here.
42213         * sysdeps/sparc/configure.in: Moved to ...
42214         * sysdeps/sparc/configure.ac: ... here.
42215         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42216         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42217         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42218         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42219         * sysdeps/x86_64/configure.in: Moved to ...
42220         * sysdeps/x86_64/configure.ac: ... here.
42221         * sysdeps/x86_64/preconfigure.in: Moved to ...
42222         * sysdeps/x86_64/preconfigure.ac: ... here.
42223         * aclocal.m4: Change reference to configure.in to configure.ac.
42224         * config.h.in: Likewise.
42225         * manual/install.texi: Likewise.
42226         * manual/maint.texi: Likewise.
42227         * Makefile: Likewise.
42228         * malloc/Makefile: Likewise.
42229         * nscd/Makefile: Likewise.
42230         * Makeconfig: Change reference to configure.in and
42231         preconfigure.in to configure.ac and preconfigure.ac
42232         respectively.
42233         * INSTALL: Regenerated.
42234         * configure: Likewise.
42235         * sysdeps/gnu/configure: Likewise.
42236         * sysdeps/i386/configure: Likewise.
42237         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42238         * sysdeps/mach/configure: Likewise.
42239         * sysdeps/mach/hurd/configure: Likewise.
42240         * sysdeps/powerpc/configure: Likewise.
42241         * sysdeps/powerpc/powerpc32/configure: Likewise.
42242         * sysdeps/powerpc/powerpc64/configure: Likewise.
42243         * sysdeps/s390/s390-32/configure: Likewise.
42244         * sysdeps/s390/s390-64/configure: Likewise.
42245         * sysdeps/sh/configure: Likewise.
42246         * sysdeps/sparc/configure: Likewise.
42247         * sysdeps/unix/sysv/linux/configure: Likewise.
42248         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42249         * sysdeps/x86_64/configure: Likewise.
42250         * sysdeps/x86_64/preconfigure: Likewise.
42251
42252 2013-10-29  Andreas Schwab  <schwab@suse.de>
42253
42254         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42255
42256 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42257
42258         * benchtests/pow-inputs: Add new inputs.
42259
42260         * benchtests/exp-inputs: Add new inputs.
42261
42262         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42263         conditional check for return value.
42264         (__cos32): Likewise.
42265
42266 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42267
42268         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42269         to provide a boost for large inputs with word alignment.
42270         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42271         implementation based on optimized PPC64 strcpy.
42272         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42273         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42274         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42275         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42276
42277 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42278
42279         [BZ #2801]
42280         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42281
42282 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42283
42284         [BZ #14876]
42285         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42286         * time/tst-strptime.c (day_tests): Add testcase.
42287
42288 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42289
42290         [BZ #14029]
42291         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42292
42293 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42294
42295         [BZ #16074]
42296         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42297         MAP_FAILED on error.
42298
42299 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42300
42301         [BZ #16072]
42302         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42303         heap for large requests.
42304
42305 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42306
42307         [BZ #9954]
42308         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42309         result if the result has no associated interface.
42310         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42311         interface for all 127.X.Y.Z addresses.
42312
42313 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42314
42315         * locale/iso-639.def: Add Ligurian (lij)
42316
42317 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42318
42319         [BZ #15825]
42320         * sunrpc/rpc_main.c: Document rpcgen -5.
42321
42322 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42323
42324         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42325
42326 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42327
42328         [BZ #10278]
42329         * posix/glob.c: Match only directories when trailing slash is present.
42330         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42331         (main): Add testcase.
42332
42333 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42334
42335         [BZ #15670]
42336         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42337
42338 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42339
42340         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42341         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42342         AUTH_DES and cindex for FIPS 140-2.
42343         (DES Encryption): Add cindex FIPS 46-3.
42344
42345         * locale/locarchive.h (struct locarhandle): Add fname.
42346         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42347         if an optional argument was specified to --list-archive,
42348         otherwise NULL.
42349         * locale/programs/locarchive.c (show_archive_content): Take new
42350         argument fname and pass it via ah.fname to open_archive.
42351         * locale/programs/localedef.h: Update decl.
42352         (open_archive): If AH->fname is non-null, open that file
42353         rather than the default file name, and don't ignore ENOENT.
42354         (create_archive): Set AH.fname to NULL.
42355         (delete_locales_from_archive): Likewise.
42356         (add_locales_to_archive): Likewise.
42357         * locale/programs/locfile.c (write_all_categories): Likewise.
42358
42359 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42360             Aldy Hernandez  <aldyh@redhat.com>
42361
42362         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42363         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42364         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42365         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42366         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42367         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42368         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42369         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42370         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42371         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42372         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42373         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42374         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42375         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42376         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42377         Likewise.
42378         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42379         Likewise.
42380         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42381         Likewise.
42382         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42383         Likewise.
42384         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42385         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42386         Likewise.
42387         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42388         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42389         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42390         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42391         Likewise.
42392         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42393         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42394         * sysdeps/powerpc/preconfigure: Likewise.
42395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42396         Likewise.
42397         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42398         Replace contents of file by #include of <fenv_libc.h>.
42399         * sysdeps/powerpc/soft-fp/sfp-machine.h
42400         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42401         and <sys/prctl.h>.
42402         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42403         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42404         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42405         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42406         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42407         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42408         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42409         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42410         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42411         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42412         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42413         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42415         Allow copysignl PLT reference to be missing.
42416
42417 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42418             Joseph Myers  <joseph@codesourcery.com
42419
42420         [BZ #15948]
42421         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42422         single character.
42423         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42424
42425 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42426
42427         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42428         * elf/tst-tls1.c: Likewise.
42429         * elf/tst-tls10.h: Likewise.
42430         * elf/tst-tls14.c: Likewise.
42431         * elf/tst-tls2.c: Likewise.
42432         * elf/tst-tls3.c: Likewise.
42433         * elf/tst-tls4.c: Likewise.
42434         * elf/tst-tls5.c: Likewise.
42435         * elf/tst-tls6.c: Likewise.
42436         * elf/tst-tls7.c: Likewise.
42437         * elf/tst-tls8.c: Likewise.
42438         * elf/tst-tls9.c: Likewise.
42439         * elf/tst-tlsmod1.c: Likewise.
42440         * elf/tst-tlsmod13.c: Likewise.
42441         * elf/tst-tlsmod13a.c: Likewise.
42442         * elf/tst-tlsmod14a.c: Likewise.
42443         * elf/tst-tlsmod16a.c: Likewise.
42444         * elf/tst-tlsmod16b.c: Likewise.
42445         * elf/tst-tlsmod2.c: Likewise.
42446         * elf/tst-tlsmod3.c: Likewise.
42447         * elf/tst-tlsmod4.c: Likewise.
42448         * elf/tst-tlsmod5.c: Likewise.
42449         * elf/tst-tlsmod6.c: Likewise.
42450
42451 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42452
42453         [BZ #12486]
42454         * malloc/malloc.c: remove checks for statistics.
42455
42456 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42457
42458         [BZ #15277]
42459         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42460         * inet/tst-network.c: Add testcase.
42461
42462 2013-10-17  Andreas Schwab  <schwab@suse.de>
42463
42464         [BZ #15218]
42465         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42466         to determine canonical name.
42467
42468 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42469
42470         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42471         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42472         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42473         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42474         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42475         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42476         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42477         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42478         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42479         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42480         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42481         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42482         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42483         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42484         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42485         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42486         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42487         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42488         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42489         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42490         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42491         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42492         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42493         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42494         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42495         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42496         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42497         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42498         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42499         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42500         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42501         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42502         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42503         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42504         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42505         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42506         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42507         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42508         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42509         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42510         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42511         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42512         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42513         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42514         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42515         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42516         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42517         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42518         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42519         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42520         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42521         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42522         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42523         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42524         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42525         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42526         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42527         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42528
42529 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42530
42531         [BZ #16041]
42532         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42533         make result into a quiet NaN.
42534
42535 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42536
42537         * soft-fp/adddf3.c: Fix horizontal whitespace.
42538         * soft-fp/addsf3.c: Likewise.
42539         * soft-fp/addtf3.c: Likewise.
42540         * soft-fp/divdf3.c: Likewise.
42541         * soft-fp/divsf3.c: Likewise.
42542         * soft-fp/divtf3.c: Likewise.
42543         * soft-fp/double.h: Likewise.
42544         * soft-fp/eqdf2.c: Likewise.
42545         * soft-fp/eqsf2.c: Likewise.
42546         * soft-fp/eqtf2.c: Likewise.
42547         * soft-fp/extenddftf2.c: Likewise.
42548         * soft-fp/extended.h: Likewise.
42549         * soft-fp/extendsfdf2.c: Likewise.
42550         * soft-fp/extendsftf2.c: Likewise.
42551         * soft-fp/extendxftf2.c: Likewise.
42552         * soft-fp/fixdfdi.c: Likewise.
42553         * soft-fp/fixdfsi.c: Likewise.
42554         * soft-fp/fixdfti.c: Likewise.
42555         * soft-fp/fixsfdi.c: Likewise.
42556         * soft-fp/fixsfsi.c: Likewise.
42557         * soft-fp/fixsfti.c: Likewise.
42558         * soft-fp/fixtfdi.c: Likewise.
42559         * soft-fp/fixtfsi.c: Likewise.
42560         * soft-fp/fixtfti.c: Likewise.
42561         * soft-fp/fixunsdfdi.c: Likewise.
42562         * soft-fp/fixunsdfsi.c: Likewise.
42563         * soft-fp/fixunsdfti.c: Likewise.
42564         * soft-fp/fixunssfdi.c: Likewise.
42565         * soft-fp/fixunssfsi.c: Likewise.
42566         * soft-fp/fixunssfti.c: Likewise.
42567         * soft-fp/fixunstfdi.c: Likewise.
42568         * soft-fp/fixunstfsi.c: Likewise.
42569         * soft-fp/fixunstfti.c: Likewise.
42570         * soft-fp/floatdidf.c: Likewise.
42571         * soft-fp/floatdisf.c: Likewise.
42572         * soft-fp/floatditf.c: Likewise.
42573         * soft-fp/floatsidf.c: Likewise.
42574         * soft-fp/floatsisf.c: Likewise.
42575         * soft-fp/floatsitf.c: Likewise.
42576         * soft-fp/floattidf.c: Likewise.
42577         * soft-fp/floattisf.c: Likewise.
42578         * soft-fp/floattitf.c: Likewise.
42579         * soft-fp/floatundidf.c: Likewise.
42580         * soft-fp/floatundisf.c: Likewise.
42581         * soft-fp/floatunditf.c: Likewise.
42582         * soft-fp/floatunsidf.c: Likewise.
42583         * soft-fp/floatunsisf.c: Likewise.
42584         * soft-fp/floatunsitf.c: Likewise.
42585         * soft-fp/floatuntidf.c: Likewise.
42586         * soft-fp/floatuntisf.c: Likewise.
42587         * soft-fp/floatuntitf.c: Likewise.
42588         * soft-fp/fmadf4.c: Likewise.
42589         * soft-fp/fmasf4.c: Likewise.
42590         * soft-fp/fmatf4.c: Likewise.
42591         * soft-fp/gedf2.c: Likewise.
42592         * soft-fp/gesf2.c: Likewise.
42593         * soft-fp/getf2.c: Likewise.
42594         * soft-fp/ledf2.c: Likewise.
42595         * soft-fp/lesf2.c: Likewise.
42596         * soft-fp/letf2.c: Likewise.
42597         * soft-fp/muldf3.c: Likewise.
42598         * soft-fp/mulsf3.c: Likewise.
42599         * soft-fp/multf3.c: Likewise.
42600         * soft-fp/negdf2.c: Likewise.
42601         * soft-fp/negsf2.c: Likewise.
42602         * soft-fp/negtf2.c: Likewise.
42603         * soft-fp/op-1.h: Likewise.
42604         * soft-fp/op-2.h: Likewise.
42605         * soft-fp/op-4.h: Likewise.
42606         * soft-fp/op-8.h: Likewise.
42607         * soft-fp/op-common.h: Likewise.
42608         * soft-fp/quad.h: Likewise.
42609         * soft-fp/single.h: Likewise.
42610         * soft-fp/soft-fp.h: Likewise.
42611         * soft-fp/sqrtdf2.c: Likewise.
42612         * soft-fp/sqrtsf2.c: Likewise.
42613         * soft-fp/sqrttf2.c: Likewise.
42614         * soft-fp/subdf3.c: Likewise.
42615         * soft-fp/subsf3.c: Likewise.
42616         * soft-fp/subtf3.c: Likewise.
42617         * soft-fp/truncdfsf2.c: Likewise.
42618         * soft-fp/trunctfdf2.c: Likewise.
42619         * soft-fp/trunctfsf2.c: Likewise.
42620         * soft-fp/trunctfxf2.c: Likewise.
42621         * soft-fp/unorddf2.c: Likewise.
42622         * soft-fp/unordsf2.c: Likewise.
42623         * soft-fp/unordtf2.c: Likewise.
42624
42625 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42626
42627         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42628         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42629
42630 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42631
42632         * elf/dl-libc.c: Clear initfini list after freeing.
42633
42634 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42635
42636         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42637         * soft-fp/addsf3.c: Likewise.
42638         * soft-fp/addtf3.c: Likewise.
42639         * soft-fp/divdf3.c: Likewise.
42640         * soft-fp/divsf3.c: Likewise.
42641         * soft-fp/divtf3.c: Likewise.
42642         * soft-fp/double.h: Likewise.
42643         * soft-fp/eqdf2.c: Likewise.
42644         * soft-fp/eqsf2.c: Likewise.
42645         * soft-fp/eqtf2.c: Likewise.
42646         * soft-fp/extenddftf2.c: Likewise.
42647         * soft-fp/extended.h: Likewise.
42648         * soft-fp/extendsfdf2.c: Likewise.
42649         * soft-fp/extendsftf2.c: Likewise.
42650         * soft-fp/extendxftf2.c: Likewise.
42651         * soft-fp/fixdfdi.c: Likewise.
42652         * soft-fp/fixdfsi.c: Likewise.
42653         * soft-fp/fixdfti.c: Likewise.
42654         * soft-fp/fixsfdi.c: Likewise.
42655         * soft-fp/fixsfsi.c: Likewise.
42656         * soft-fp/fixsfti.c: Likewise.
42657         * soft-fp/fixtfdi.c: Likewise.
42658         * soft-fp/fixtfsi.c: Likewise.
42659         * soft-fp/fixtfti.c: Likewise.
42660         * soft-fp/fixunsdfdi.c: Likewise.
42661         * soft-fp/fixunsdfsi.c: Likewise.
42662         * soft-fp/fixunsdfti.c: Likewise.
42663         * soft-fp/fixunssfdi.c: Likewise.
42664         * soft-fp/fixunssfsi.c: Likewise.
42665         * soft-fp/fixunssfti.c: Likewise.
42666         * soft-fp/fixunstfdi.c: Likewise.
42667         * soft-fp/fixunstfsi.c: Likewise.
42668         * soft-fp/fixunstfti.c: Likewise.
42669         * soft-fp/floatdidf.c: Likewise.
42670         * soft-fp/floatdisf.c: Likewise.
42671         * soft-fp/floatditf.c: Likewise.
42672         * soft-fp/floatsidf.c: Likewise.
42673         * soft-fp/floatsisf.c: Likewise.
42674         * soft-fp/floatsitf.c: Likewise.
42675         * soft-fp/floattidf.c: Likewise.
42676         * soft-fp/floattisf.c: Likewise.
42677         * soft-fp/floattitf.c: Likewise.
42678         * soft-fp/floatundidf.c: Likewise.
42679         * soft-fp/floatundisf.c: Likewise.
42680         * soft-fp/floatunsidf.c: Likewise.
42681         * soft-fp/floatunsisf.c: Likewise.
42682         * soft-fp/floatuntidf.c: Likewise.
42683         * soft-fp/floatuntisf.c: Likewise.
42684         * soft-fp/floatuntitf.c: Likewise.
42685         * soft-fp/fmadf4.c: Likewise.
42686         * soft-fp/fmasf4.c: Likewise.
42687         * soft-fp/fmatf4.c: Likewise.
42688         * soft-fp/gedf2.c: Likewise.
42689         * soft-fp/gesf2.c: Likewise.
42690         * soft-fp/getf2.c: Likewise.
42691         * soft-fp/ledf2.c: Likewise.
42692         * soft-fp/lesf2.c: Likewise.
42693         * soft-fp/letf2.c: Likewise.
42694         * soft-fp/muldf3.c: Likewise.
42695         * soft-fp/mulsf3.c: Likewise.
42696         * soft-fp/multf3.c: Likewise.
42697         * soft-fp/negdf2.c: Likewise.
42698         * soft-fp/negsf2.c: Likewise.
42699         * soft-fp/negtf2.c: Likewise.
42700         * soft-fp/op-1.h: Likewise.
42701         * soft-fp/op-2.h: Likewise.
42702         * soft-fp/op-4.h: Likewise.
42703         * soft-fp/op-8.h: Likewise.
42704         * soft-fp/op-common.h: Likewise.
42705         * soft-fp/quad.h: Likewise.
42706         * soft-fp/single.h: Likewise.
42707         * soft-fp/soft-fp.h: Likewise.
42708         * soft-fp/sqrtdf2.c: Likewise.
42709         * soft-fp/sqrtsf2.c: Likewise.
42710         * soft-fp/sqrttf2.c: Likewise.
42711         * soft-fp/subdf3.c: Likewise.
42712         * soft-fp/subsf3.c: Likewise.
42713         * soft-fp/subtf3.c: Likewise.
42714         * soft-fp/truncdfsf2.c: Likewise.
42715         * soft-fp/trunctfdf2.c: Likewise.
42716         * soft-fp/trunctfsf2.c: Likewise.
42717         * soft-fp/trunctfxf2.c: Likewise.
42718         * soft-fp/unorddf2.c: Likewise.
42719         * soft-fp/unordsf2.c: Likewise.
42720         * soft-fp/unordtf2.c: Likewise.
42721
42722 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42723
42724         [BZ #15672]
42725         * misc/error.c (error_tail): Fix possible buffer overflow.
42726
42727 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42728
42729         [BZ #13028]
42730         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42731         address.
42732
42733 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42734
42735         [BZ #832]
42736         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42737         testing pipefail option.
42738
42739 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42740
42741         * soft-fp/double.h: Indent preprocessor directives inside #if.
42742         * soft-fp/extended.h: Likewise.
42743         * soft-fp/op-2.h: Likewise.
42744         * soft-fp/op-4.h: Likewise.
42745         * soft-fp/op-common.h: Likewise.
42746         * soft-fp/quad.h: Likewise.
42747         * soft-fp/single.h: Likewise.
42748         * soft-fp/soft-fp.h: Likewise.
42749
42750 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42751
42752         * iconv/iconv_prog.c: Fix typos.
42753         * stdio-common/psiginfo-data.h: Likewise.
42754
42755 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42756
42757         [BZ #15764]
42758         * locale/setlocale.c: Fix typo.
42759
42760 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42761
42762         [BZ #16036]
42763         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42764         signaling NaN arguments.
42765         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42766         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42767
42768         [BZ #14910]
42769         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42770         unordered operands.
42771         * soft-fp/gesf2.c (__gesf2): Likewise.
42772         * soft-fp/getf2.c (__getf2): Likewise.
42773         * soft-fp/ledf2.c (__ledf2): Likewise.
42774         * soft-fp/lesf2.c (__lesf2): Likewise.
42775         * soft-fp/letf2.c (__letf2): Likewise.
42776
42777         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42778         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42779         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42780         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42781         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42782         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42783         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42784         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42785         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42786         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42787         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42788         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42789         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42790         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42791         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42792         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42793         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42794         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42795         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42796         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42797         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42798         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42799         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42800         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42801         * soft-fp/floattidf.c (__floattidf): Likewise.
42802         * soft-fp/floattisf.c (__floattisf): Likewise.
42803         * soft-fp/floattitf.c (__floattitf): Likewise.
42804         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42805         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42806         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42807         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42808         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42809         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42810         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42811         * soft-fp/gesf2.c (__gesf2): Likewise.
42812         * soft-fp/getf2.c (__getf2): Likewise.
42813         * soft-fp/ledf2.c (__ledf2): Likewise.
42814         * soft-fp/lesf2.c (__lesf2): Likewise.
42815         * soft-fp/letf2.c (__letf2): Likewise.
42816
42817         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42818         Undefine and redefine.
42819         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42820         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42821         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42822         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42823         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42824         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42825         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42826         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42827         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42828         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42829         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42830         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42831         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42832         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42833         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42834
42835         [BZ #16032]
42836         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42837         without decrementing exponent if mantissa >= that for the
42838         denominator, not >.
42839         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42840         denominator, not >.  Decrement exponent in < case instead of
42841         incrementing in >= case.
42842         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42843         without decrementing exponent if mantissa >= that for the
42844         denominator, not >.
42845
42846         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42847         computing saturated result for unsigned overflow.
42848
42849 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42850             Jeff Law  <law@redhat.com>
42851
42852         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42853         (atan2Mp): Add systemtap probe marker.
42854         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42855         (__ieee754_log): Add systemtap probe marker.
42856         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42857         (atanMp): Add systemtap probe marker.
42858         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42859         (tanMp): Add systemtap probe marker.
42860         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42861         (__slowexp): Add systemtap probe marker.
42862         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42863         (__slowpow): Add systemtap probe marker.
42864         * manual/probes.texi: Document probes.
42865
42866 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42867
42868         [BZ #15362]
42869         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42870         written.
42871         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42872         written.
42873         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42874         written to buffer but not flushed.
42875         * libio/iofwrite_u.c:  Likewise.
42876         * libio/iopadn.c:  Return bytes returned even if EOF was
42877         encountered.
42878         * libio/iowpadn.c:  Likewise.
42879         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42880         if _IO_padn does not write the whole buffer.
42881         [!COMPILE_WPRINTF] (PAD): Likewise.
42882
42883 2013-10-10  David S. Miller  <davem@davemloft.net>
42884
42885         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42886         directory block.
42887
42888 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42889
42890         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42891         instead of FSF address.
42892         * soft-fp/fixdfti.c: Likewise.
42893         * soft-fp/fixsfti.c: Likewise.
42894         * soft-fp/fixtfti.c: Likewise.
42895         * soft-fp/fixunsdfti.c: Likewise.
42896         * soft-fp/fixunssfti.c: Likewise.
42897         * soft-fp/fixunstfti.c: Likewise.
42898         * soft-fp/floattidf.c: Likewise.
42899         * soft-fp/floattisf.c: Likewise.
42900         * soft-fp/floattitf.c: Likewise.
42901         * soft-fp/floatuntidf.c: Likewise.
42902         * soft-fp/floatuntisf.c: Likewise.
42903         * soft-fp/floatuntitf.c: Likewise.
42904         * soft-fp/trunctfxf2.c: Likewise.
42905
42906         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42907         * soft-fp/fixdfti.c: Likewise.
42908         * soft-fp/fixsfti.c: Likewise.
42909         * soft-fp/fixtfti.c: Likewise.
42910         * soft-fp/fixunsdfti.c: Likewise.
42911         * soft-fp/fixunssfti.c: Likewise.
42912         * soft-fp/fixunstfti.c: Likewise.
42913         * soft-fp/floattidf.c: Likewise.
42914         * soft-fp/floattisf.c: Likewise.
42915         * soft-fp/floattitf.c: Likewise.
42916         * soft-fp/floatuntidf.c: Likewise.
42917         * soft-fp/floatuntisf.c: Likewise.
42918         * soft-fp/floatuntitf.c: Likewise.
42919         * soft-fp/trunctfxf2.c: Likewise.
42920
42921 2013-10-10  David S. Miller  <davem@davemloft.net>
42922
42923         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42924
42925 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42926
42927         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42928         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42929         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42930         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42931         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42932         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42933         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42934
42935         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42936         for NaNs before doing comparisons on argument.
42937         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42938         Likewise.
42939
42940 2013-10-10  Will Newton  <will.newton@linaro.org>
42941
42942         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42943         passed to _int_memalign does not overflow.
42944
42945 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42946
42947         * scripts/bench.pl: Add include-sources directive.
42948         * benchtests/README: Update documentation.
42949
42950 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42951
42952         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42953         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42954         instead of FP_INIT_ROUNDMODE.
42955         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42956         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42957
42958         [BZ #16034]
42959         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42960         copy class of input value.
42961         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42962         not handle exceptions.
42963         * soft-fp/negsf2.c (__negsf2): Likewise.
42964         * soft-fp/negtf2.c (__negtf2): Likewise.
42965         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42966
42967 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42968
42969         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42970         semicolon.  From Linux kernel.
42971
42972 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42973
42974         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42975
42976 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42977
42978         [BZ #156]
42979         * manual/socket.texi: Added statement about buffer
42980         for gethostbyname2_r.
42981
42982 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42983
42984         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42985         Use .p2align directive instead, throughout.
42986         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42987         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42988         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42989         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42990         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42991         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42992         * sysdeps/x86_64/strchr.S: Likewise.
42993         * sysdeps/x86_64/strrchr.S: Likewise.
42994
42995 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42996
42997         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42998
42999         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43000
43001         * sysdeps/generic/math_private.h (__mpsin1): Remove
43002         declaration.
43003         (__mpcos1): Likewise.
43004         (__mpsin): New argument __range_reduce.
43005         (__mpcos): Likewise.
43006         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43007         (slow): Use __mpsin and __mpcos.
43008         (slow1): Likewise.
43009         (slow2): Likewise.
43010         (sloww): Likewise.
43011         (sloww1): Likewise.
43012         (sloww2): Likewise.
43013         (bsloww): Likewise.
43014         (bsloww1): Likewise.
43015         (bsloww2): Likewise.
43016         (cslow2): Likewise.
43017         (csloww): Likewise.
43018         (csloww1): Likewise.
43019         (csloww2): Likewise.
43020         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43021         range_reduce.  Merge in __mpsin1.
43022         (__mpcos): Likewise.
43023         (__mpsin1): Remove.
43024         (__mpcos1): Likewise.
43025
43026 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43027
43028         * locale/loadlocale.c (_nl_intern_locale_data): Use
43029         LOCFILE_ALIGNED_P.
43030         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43031         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43032         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43033         obstack data is appropriately aligned.
43034         (obstack_int32_grow_fast): Likewise.
43035         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43036         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43037         (add_locale_uint32_array): Likewise.
43038
43039 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43040
43041         * benchtests/Makefile: Remove ARGLIST and RET variables.
43042         ($(objpfx)bench-%.c): Pass only function name to the script.
43043         * benchtests/README: Update documentation.
43044         * benchtests/acos-inputs: Add new directives.
43045         * benchtests/acosh-inputs: Likewise.
43046         * benchtests/asin-inputs: Likewise.
43047         * benchtests/asinh-inputs: Likewise.
43048         * benchtests/atan-inputs: Likewise.
43049         * benchtests/atanh-inputs: Likewise.
43050         * benchtests/cos-inputs: Likewise.
43051         * benchtests/cosh-inputs: Likewise.
43052         * benchtests/exp-inputs: Likewise.
43053         * benchtests/log-inputs: Likewise.
43054         * benchtests/pow-inputs: Likewise.
43055         * benchtests/rint-inputs: Likewise.
43056         * benchtests/sin-inputs: Likewise.
43057         * benchtests/sinh-inputs: Likewise.
43058         * benchtests/tan-inputs: Likewise.
43059         * benchtests/tanh-inputs: Likewise.
43060         * scripts/bench.pl: Add support for new directives.
43061
43062 2013-10-07  Alan Modra  <amodra@gmail.com>
43063
43064         * README: Fix careless merge.
43065
43066 2013-10-05  Alan Modra  <amodra@gmail.com>
43067
43068         * NEWS: Mention powerpc64le support and bugs fixed.
43069         * README: Both big-endian and little-endian powerpc64 supported.
43070
43071 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43072
43073         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43074         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43075         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43076         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43077
43078 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43079
43080         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43081         match prototype.
43082
43083 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43084
43085         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43086         Move -mhard-float appending from
43087         ports/sysdeps/powerpc/powerpc32/Makefile.
43088         [$(with-fp) = yes] (ASFLAGS): Likewise.
43089         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43090         * sysdeps/powerpc/nofpu: Move directory from
43091         ports/sysdeps/powerpc/nofpu.
43092         * sysdeps/powerpc/soft-fp: Move directory from
43093         ports/sysdeps/powerpc/soft-fp.
43094         * sysdeps/powerpc/powerpc32/405: Move directory from
43095         ports/sysdeps/powerpc/powerpc32/405.
43096         * sysdeps/powerpc/powerpc32/440: Move directory from
43097         ports/sysdeps/powerpc/powerpc32/440.
43098         * sysdeps/powerpc/powerpc32/464: Move directory from
43099         ports/sysdeps/powerpc/powerpc32/464.
43100         * sysdeps/powerpc/powerpc32/476: Move directory from
43101         ports/sysdeps/powerpc/powerpc32/476.
43102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43103         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43105         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43107         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43109         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43111         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43112         * README: Update for powerpc-*-linux-gnu software floating point
43113         support in libc.
43114
43115         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43116         case to powerpc/powerpc32*.
43117         * sysdeps/unix/sysv/linux/configure: Regenerated.
43118
43119         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43120         (_FPU_MASK_OM): Define as 0x04.
43121         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43122         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43123         0x00c10080.
43124         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43125         0x0000003c.
43126         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43127
43128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43129         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43130         getcontext_e500.
43131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43132         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43133         setcontext_e500.
43134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43135         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43136         and setcontext_e500.
43137
43138 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43139
43140         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43141
43142 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43143
43144         * manual/threads.texi (Default Thread Attributes): Fix typo.
43145
43146 2013-10-04  Will Newton  <will.newton@linaro.org>
43147
43148         * malloc/Makefile: Add tst-memalign.
43149         * malloc/tst-memalign.c: New file.
43150
43151         * malloc/tst-posix_memalign.c: Add comments.
43152         (do_test): Add comments and call free on all potentially
43153         allocated pointers. Add space after cast.
43154
43155         * malloc/tst-pvalloc.c: Add comments.
43156         (do_test): Add comments and call free on all potentially
43157         allocated pointers. Remove duplicate check for NULL pointer.
43158         Add space after cast.
43159
43160         * malloc/tst-valloc.c: Add comments.
43161         (do_test): Add comments and call free on all potentially
43162         allocated pointers. Remove duplicate check for NULL pointer.
43163         Add space after cast.
43164
43165 2013-10-04  Alan Modra  <amodra@gmail.com>
43166
43167         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43168         Use stdint types in rather than __attribute__((mode())).
43169         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43170
43171 2013-10-04  Alan Modra  <amodra@gmail.com>
43172
43173         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43174         Correct handling of unaligned relocs for little-endian.
43175         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43176
43177 2013-10-04  Alan Modra  <amodra@gmail.com>
43178
43179         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43180         * configure: Regenerate.
43181         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43182         * shlib-versions: Likewise.
43183
43184 2013-10-04  Alan Modra  <amodra@gmail.com>
43185
43186         * string/tester.c (test_memrchr): Increment reported test cycle.
43187
43188 2013-10-04  Alan Modra  <amodra@gmail.com>
43189
43190         * string/test-memcpy.c (do_one_test): When reporting errors, print
43191         string address and don't overrun end of string.
43192
43193 2013-10-04  Alan Modra  <amodra@gmail.com>
43194
43195         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43196         insrdi.  Make better use of reg selection to speed exit slightly.
43197         Schedule entry path a little better.  Remove useless "are we done"
43198         checks on entry to main loop.  Handle wrapping around zero address.
43199         Correct main loop count.  Handle single left-over word from main
43200         loop inline rather than by using loop_small.  Remove extra word
43201         case in loop_small caused by wrong loop count.  Add little-endian
43202         support.
43203         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43204         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43205         cache hint.
43206         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43207         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43208         support.  Avoid rlwimi.
43209         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43210
43211 2013-10-04  Alan Modra  <amodra@gmail.com>
43212
43213         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43214         insrdi.  Formatting.
43215         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43216         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43217         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43218         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43219         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43220         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43221
43222 2013-10-04  Alan Modra  <amodra@gmail.com>
43223
43224         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43225         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43226         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43227         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43228         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43229         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43230         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43231         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43232         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43233         use of regs.  Use power7 mtocrf.  Tidy function tails.
43234
43235 2013-10-04  Alan Modra  <amodra@gmail.com>
43236
43237         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43238         Formatting.  Consistently use rXXX register defines or rN defines.
43239         Use early exit labels that avoid restoring unused non-volatile regs.
43240         Make cr field use more consistent with rWORDn compares.  Rename
43241         regs used as shift registers for unaligned loop, using rN defines
43242         for short lifetime/multiple use regs.
43243         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43244         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43245         addi 1,1,64 to pop stack frame.  Simplify return value code.
43246         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43247
43248 2013-10-04  Alan Modra  <amodra@gmail.com>
43249
43250         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43251         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43252         rather than rlwimi.
43253         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43254         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43255         little-endian support.  Correct typos.
43256         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43257         rather than rlwimi.
43258         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43259         in loop and entry code to keep "and." results.
43260         (strchr): Add little-endian support.  Comment.  Move cntlzd
43261         earlier in tail.
43262         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43263
43264 2013-10-04  Alan Modra  <amodra@gmail.com>
43265
43266         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43267         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43268         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43269         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43270
43271 2013-10-04  Alan Modra  <amodra@gmail.com>
43272
43273         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43274         (rTMP): Define as r11.
43275         (strcmp): Add little-endian support.  Optimise tail.
43276         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43277         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43278         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43279         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43280         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43281         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43282         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43283
43284 2013-10-04  Alan Modra  <amodra@gmail.com>
43285
43286         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43287         little-endian support.  Remove unnecessary "are we done" tests.
43288         Handle "s" wrapping around zero and extremely large "size".
43289         Correct main loop count.  Handle single left-over word from main
43290         loop inline rather than by using small_loop.  Correct comments.
43291         Delete "zero" tail, use "end_max" instead.
43292         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43293
43294 2013-10-04  Alan Modra  <amodra@gmail.com>
43295
43296         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43297         support.  Don't branch over align.
43298         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43299         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43300         support.  Rearrange tmp reg use to suit.  Comment.
43301         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43302
43303 2013-10-04  Alan Modra  <amodra@gmail.com>
43304
43305         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43306
43307 2013-10-04  Alan Modra  <amodra@gmail.com>
43308
43309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43310         conditional form of branch and link when obtaining pc.
43311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43312
43313 2013-10-04  Alan Modra  <amodra@gmail.com>
43314
43315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43316         HIWORD/LOWORD.
43317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43319
43320 2013-10-04  Alan Modra  <amodra@gmail.com>
43321
43322         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43323         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43324         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43325         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43326         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43327         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43328         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43329         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43330         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43331         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43332
43333 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43334             Alistair Popple <alistair@ozlabs.au.ibm.com>
43335             Alan Modra <amodra@gmail.com>
43336
43337         [BZ #15723]
43338         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43339         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43340         _dl_hwcap access for little-endian.
43341         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43342         destroy vmx regs when saving unaligned.
43343         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43344         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43345         destroy vmx regs when saving unaligned.
43346
43347 2013-10-04  Alan Modra  <amodra@gmail.com>
43348
43349         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43350         Don't use a union to pack hi/low value.
43351
43352 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43353
43354         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43355         for little-endian.
43356         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43357         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43358         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43359         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43360         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43361
43362 2013-10-04  Alan Modra  <amodra@gmail.com>
43363
43364         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43365         constants to usual value for .cst8 section, and remove redundant
43366         high address load.
43367         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43368         constant for 0x1p52.  Load little-endian words of double from
43369         correct stack offsets.
43370
43371 2013-10-04  Alan Modra  <amodra@gmail.com>
43372
43373         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43374         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43375         words of double from correct stack offsets.
43376         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43377         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43378         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43379         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43380         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43381         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43382         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43383         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43384         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43385         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43386         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43387         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43388         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43389         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43390         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43391         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43392         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43393
43394 2013-10-04  Alan Modra  <amodra@gmail.com>
43395
43396         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43397         64-bit int/double union.
43398         (_FPU_SETCW): Likewise.
43399         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43400         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43401
43402 2013-10-04  Alan Modra  <amodra@gmail.com>
43403
43404         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43405         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43406
43407 2013-10-04  Alan Modra  <amodra@gmail.com>
43408
43409         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43410         use vector int constants.
43411         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43412
43413 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43414
43415         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43416         array with long long.
43417         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43418         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43419         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43420         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43421         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43422         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43423         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43424         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43425         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43426         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43427         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43428         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43429         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43430
43431 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43432
43433         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43434         (__signbit): Likewise.  Correct for little-endian.
43435         (__signbitl): Call __signbit.
43436         (lrint): Correct for little-endian.
43437         (lrintf): Call lrint.
43438
43439 2013-10-04  Alan Modra  <amodra@gmail.com>
43440
43441         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43442         union 32-bit int array member with 64-bit int array.
43443         (t515, tm256): Double rather than long double.
43444         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43445
43446 2013-10-04  Alan Modra  <amodra@gmail.com>
43447
43448         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43449         Delete.
43450         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43451         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43452         version of math_ldbl.h.
43453
43454 2013-10-04  Alan Modra  <amodra@gmail.com>
43455
43456         [BZ #15734], [BZ #15735]
43457         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43458         all uses of ieee875 long double macros and unions.  Simplify test
43459         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43460         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43461         normalize after ldbl_extract_mantissa, and don't add hidden bit
43462         already handled.  Don't treat low word of ieee854 mantissa like
43463         low word of IBM long double and mask off bit when testing for
43464         zero.
43465         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43466         all uses of ieee875 long double macros and unions.  Simplify tests
43467         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43468         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43469         two1022, instead use their values.  Recognise that tests for large
43470         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43471         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43472         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43473         test for 0.0L and nan.  Correct negation.
43474         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43475         ieee875 long double macros and unions.  Correct output for large
43476         magnitude x.  Correct absolute value calculation.
43477         (__erfcl): Likewise.
43478         * math/libm-test.inc: Add tests for errors discovered in IBM long
43479         double versions of fmodl, remainderl, erfl and erfcl.
43480
43481 2013-10-04  Alan Modra  <amodra@gmail.com>
43482
43483         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43484         all uses of ieee854 long double macros and unions.  Simplify tests
43485         for long doubles that are fully specified by the high double.
43486         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43487         Likewise.
43488         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43489         Remove dead code too.
43490         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43491         (__ieee754_ynl): Likewise.
43492         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43493         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43494         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43495         Remove dead code too.
43496         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43497         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43498         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43499         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43500         Simplify.
43501         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43502         Simplify.
43503         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43504         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43505         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43506         Comment on variable precision.
43507         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43508         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43509         Likewise.
43510         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43511         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43512         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43513         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43514         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43515
43516 2013-10-04  Alan Modra  <amodra@gmail.com>
43517
43518         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43519         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43520         all uses of ieee854 long double macros and unions.
43521         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43522         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43523         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43524         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43525         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43526         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43527         Likewise.
43528         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43529         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43530         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43531         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43532         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43533         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43534         Simplify sign and nan test too.
43535         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43536         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43537         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43538         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43539         Likewise.
43540         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43541         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43542         Likewise.
43543         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43544         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43545         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43546         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43547         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43548         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43549
43550 2013-10-04  Alan Modra  <amodra@gmail.com>
43551
43552         * stdio-common/printf_size.c (__printf_size): Don't use
43553         union ieee854_long_double in fpnum union.
43554         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43555         signbit macro to retrieve sign from long double.
43556         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43557         retrieve sign from long double.
43558         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43559         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43560         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43561         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43562         * math/test-misc.c (main): Don't use union ieee854_long_double.
43563
43564 2013-10-04  Alan Modra  <amodra@gmail.com>
43565
43566         [BZ #15680]
43567         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43568         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43569         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43570         calculation.  Remove unnecessary test for denormal exponent.
43571         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43572         Correct handling of denormals.  Avoid undefined shift behaviour.
43573         Correct normalisation of low mantissa when low double is denormal.
43574         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43575         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43576         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43577         Correct normalisation of low mantissa.  Test for overflow of high
43578         mantissa and normalise.
43579         (ldbl_nearbyint): Use more readable constant for two52.
43580         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43581         (__mpn_construct_long_double): Fix test for overflow of high
43582         mantissa and correct normalisation.  Avoid undefined shift.
43583
43584 2013-10-04  Alan Modra  <amodra@gmail.com>
43585
43586         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43587         (union ibm_extended_long_double): Define as an array of ieee754_double.
43588         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43589         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43590         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43591         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43592         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43593         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43594         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43595         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43596         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43597         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43598         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43599
43600 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43601
43602         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43603         page size instead of calling getpagesize.
43604
43605         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43606         (LOCFILE_ALIGN_MASK): Likewise.
43607         (LOCFILE_ALIGN_UP): Likewise.
43608         (LOCFILE_ALIGNED_P): Likewise.
43609         * locale/programs/ld-collate.c (collate_output): Use the new
43610         macros instead of __alignof__ (int32_t).
43611         * locale/weight.h (findidx): Likewise.
43612
43613 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43614
43615         [BZ #431]
43616         * manual/string.texi: Fix strncat and wcsncat.
43617
43618 2013-10-03  Brooks Moses  <bmoses@google.com>
43619
43620         [BZ #15915]
43621         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43622         * Makerules: ...here, and adjust associated comments.
43623
43624 2013-10-02  Will Newton  <will.newton@linaro.org>
43625
43626         * malloc/Makefile: Add tst-pvalloc.
43627         * malloc/tst-pvalloc.c: New file.
43628
43629 2013-10-02  Will Newton  <will.newton@linaro.org>
43630
43631         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43632         improve test coverage.
43633
43634 2013-10-02  Will Newton  <will.newton@linaro.org>
43635
43636         * malloc/Makefile: Add tst-posix_memalign.
43637         * malloc/tst-posix_memalign.c: New file.
43638
43639 2013-10-01  Eric Blake  <eblake@redhat.com>
43640
43641         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43642         Use __THROWNL rather than __THROW on static functions.
43643
43644 2013-09-30  Petr Machata  <pmachata@redhat.com>
43645
43646         * elf/elf.h (R_AARCH64_ABS16): New macro.
43647         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43648         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43649         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43650         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43651         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43652         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43653         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43654         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43655         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43656         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43657         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43658         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43659         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43660         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43661         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43662         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43663         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43664         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43665         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43666         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43667         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43668         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43669         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43670         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43671         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43672         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43673         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43674         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43675         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43676         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43677         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43678         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43679         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43680         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43681         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43682         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43683         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43684         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43685         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43686         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43687         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43688         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43689         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43690         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43691         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43692         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43693         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43694         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43695         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43696         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43697         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43698         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43699         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43700         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43701         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43702         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43703         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43704         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43705         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43706         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43707         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43708         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43709         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43710         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43711         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43712         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43713         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43714         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43715         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43716         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43717         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43718         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43719         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43720         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43721         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43722         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43723         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43724         (R_AARCH64_TLSDESC_LDR): Likewise.
43725         (R_AARCH64_TLSDESC_ADD): Likewise.
43726         (R_AARCH64_TLSDESC_CALL): Likewise.
43727
43728 2013-09-30  Andreas Schwab  <schwab@suse.de>
43729
43730         [BZ #15048]
43731         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43732         the nss database lookup.
43733         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43734         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43735
43736 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43737
43738         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43739
43740 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43741
43742         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43743         ${Bash-specific parameter/pattern/string} parameter expansion.
43744         * sysdeps/unix/make-syscalls.sh: Likewise.
43745
43746 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43747
43748         * sysdeps/sh/stackguard-macros.h: New file.
43749
43750 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43751
43752         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43753         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43754         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43755         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43756         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43757         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43758
43759 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43760
43761         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43762         Fix thread ID register.
43763
43764 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43765
43766         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43767         [POSIX || UNIX98]: Require rather than permitting all symbols from
43768         <time.h>.
43769         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43770         element of struct sched_param.
43771         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43772         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43773         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43774         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43775         constant.
43776
43777 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43778
43779         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43780         argument calculation.
43781
43782 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43783
43784         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43785         Expect macro.
43786         [POSIX] (pthread_attr_t): Do not require type.
43787         [POSIX] (pthread_cond_t): Likewise.
43788         [POSIX] (pthread_condattr_t): Likewise.
43789         [POSIX] (pthread_key_t): Likewise.
43790         [POSIX] (pthread_mutex_t): Likewise.
43791         [POSIX] (pthread_mutexattr_t): Likewise.
43792         [POSIX] (pthread_once_t): Likewise.
43793         [POSIX] (pthread_t): Likewise.
43794         [POSIX-based standards] (pthread_atfork): Expect function.
43795
43796 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43797             Richard Sandiford  <richard@codesourcery.com>
43798
43799         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43800         (swap_endianness_p): New extern variable.
43801         (set_big_endian): New inline function.
43802         (maybe_swap_uint32): Likewise.
43803         (maybe_swap_uint32_array): Likewise.
43804         (maybe_swap_uint32_obstack): Likewise.
43805         * locale/programs/locfile.c: Include <stdbool.h>.
43806         (swap_endianness_p): New variable.
43807         (add_locale_uint32): Call maybe_swap_uint32.
43808         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43809         (write_locale_data): Call maybe_swap_uint32_array.
43810         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43811         maybe_swap_uint32.
43812         (obstack_int32_grow_fast): Likewise.
43813         (output_weightwc): Call maybe_swap_uint32_obstack.
43814         (collate_output): Likewise.
43815         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43816         (OPT_LITTLE_ENDIAN): Likewise.
43817         (options): Add --little-endian and --big-endian options.
43818         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43819         * locale/programs/locarchive.c: Include "locfile.h".
43820         (GET): New macro.
43821         (SET): Likewise.
43822         (INC): Likewise.
43823         (create_archive): Use the new macros to access fields of
43824         structures directly mapped from or written to locale archives.
43825         (oldlocrecentcmp): Likewise.
43826         (enlarge_archive): Likewise.
43827         (insert_name): Likewise.
43828         (add_alias): Likewise.
43829         (add_locale): Likewise.
43830         (delete_locales_from_archive): Likewise.
43831         (show_archive_content): Likewise.
43832         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43833         locale data.
43834
43835 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43836
43837         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43838         http://www.gnu.org/doc/freemanuals.texi.
43839         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43840
43841 2013-09-24  Will Newton  <will.newton@linaro.org>
43842
43843         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43844         macro.
43845
43846 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43847
43848         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43849         unsigned char.
43850
43851 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43852
43853         * manual/threads.texi (POSIX Threads): Fix a typo.
43854
43855 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43856
43857         [BZ #14547]
43858         * string/tst-strcoll-overflow.c: New test case.
43859         * string/Makefile (xtests): Add tst-strcoll-overflow.
43860         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43861         cache if string sizes may cause integer overflow.
43862
43863         [BZ #14547]
43864         * string/strcoll_l.c (coll_seq): New members rule, idx,
43865         save_idx and back_us.
43866         (get_next_seq_nocache): New function.
43867         (do_compare_nocache): New function.
43868         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43869         when malloc fails.
43870
43871 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43872
43873         [BZ #15754]
43874         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43875         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43876         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43877
43878         [BZ #15754]
43879         * elf/Makefile (tests): Add tst-ptrguard1.
43880         (tests-static): Add tst-ptrguard1-static.
43881         (tst-ptrguard1-ARGS): Define.
43882         (tst-ptrguard1-static-ARGS): Define.
43883         * elf/tst-ptrguard1.c: New file.
43884         * elf/tst-ptrguard1-static.c: New file.
43885         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43886         * sysdeps/i386/stackguard-macros.h: Likewise.
43887         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43888         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43889         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43890         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43891         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43892         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43893
43894 2013-09-23  Hector Marco  <hecmargi@upv.es>
43895             Ismael Ripoll  <iripoll@disca.upv.es>
43896             Carlos O'Donell  <carlos@redhat.com>
43897
43898         [BZ #15754]
43899         * sysdeps/generic/stackguard-macros.h: Define
43900         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43901         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43902         Define __pointer_chk_guard_local.
43903         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43904         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43905
43906 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43907
43908         [BZ #15859]
43909         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43910
43911 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43912
43913         * include/string.h (__ffs): Declare as hidden.
43914         * string/ffs.c (__ffs): Define as hidden.
43915         * sysdeps/i386/ffs.c (__ffs): Likewise.
43916         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43917         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43918         * sysdeps/s390/ffs.c (__ffs): Likewise.
43919         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43920
43921 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43922
43923         * NEWS: Mention malloc probes.
43924
43925         * malloc/arena.c (new_heap): New memory_heap_new probe.
43926         (grow_heap): New memory_heap_more probe.
43927         (shrink_heap): New memory_heap_less probe.
43928         (heap_trim): New memory_heap_free probe.
43929         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43930         (systrim): New memory_sbrk_less probe.
43931         * manual/probes.texi: Document them.
43932
43933         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43934         * manual/probes.texi: Document it.
43935
43936         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43937         (__libc_realloc): Add memory_realloc_retry probe.
43938         (__libc_memalign): Add memory_memalign_retry probe.
43939         (__libc_valloc): Add memory_valloc_retry probe.
43940         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43941         (__libc_calloc): Add memory_calloc_retry probe.
43942         * manual/probes.texi: Document them.
43943
43944         * malloc/arena.c (get_free_list): Add probe
43945         memory_arena_reuse_free_list.
43946         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43947         and memory_arena_reuse.
43948         (arena_get2) [!PER_THREAD]: Likewise.
43949         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43950         memory_arena_reuse_realloc.
43951         * manual/probes.texi: Document them.
43952
43953         * malloc/malloc.c (__libc_free): Add
43954         memory_mallopt_free_dyn_thresholds probe.
43955         (__libc_mallopt): Add multiple memory_mallopt probes.
43956         * manual/probes.texi: Document them.
43957
43958         * malloc/malloc.c: Include stap-probe.h.
43959         (__libc_mallopt): Add memory_mallopt probe.
43960         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43961         * manual/probes.texi: New.
43962         * manual/Makefile (chapters): Add probes.
43963         * manual/threads.texi: Set next node.
43964
43965 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43966
43967         [BZ #15963, #13985]
43968         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43969         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43970         Add `Chinese' to `nan' entry name.
43971
43972 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43973
43974         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43975         (POLYNOMIAL): Likewise.
43976         (TAYLOR_SINCOS): Likewise.
43977         (TAYLOR_SLOW): Likewise.
43978         (__sin): Use TAYLOR_SINCOS.
43979         (__cos): Likewise.
43980         (slow): Use TAYLOR_SLOW.
43981         (sloww): Likewise.
43982         (bsloww): Likewise.
43983         (csloww): Likewise.
43984
43985 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43986
43987         * stdlib/strtod_l.c: Fix buffer overrun.
43988
43989 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43990
43991         * benchtests/Makefile (bench): Add sincos.
43992         * benchtests/bench-sincos.c: New file.
43993
43994         * math/libm-test.inc (cos_test_data): New test inputs.
43995         (sin_test_data): Likewise.
43996
43997         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43998         macro.
43999         (__sin): Use it.
44000         (__cos): Likewise.
44001         (slow1): Likewise.
44002         (slow2): Likewise.
44003         (sloww1): Likewise.
44004         (sloww2): Likewise.
44005         (bsloww1): Likewise.
44006         (bsloww2): Likewise.
44007         (cslow2): Likewise.
44008         (csloww1): Likewise.
44009         (csloww2): Likewise.
44010
44011         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44012         function.
44013         (__sin): Use it.
44014         (__cos): Likewise.
44015
44016         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44017         gotos.
44018         (__cos): Likewise.
44019
44020 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44021
44022         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44023         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44024         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44025         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44026         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44027         * elf/cache.c (print_entry): Handle the new cache flags.
44028
44029 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44030             Aldy Hernandez  <aldyh@redhat.com>
44031
44032         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44033         Change condition to [_SOFT_FLOAT].
44034         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44035         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44036         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44037         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44038         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44039         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44040         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44041         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44042         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44043         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44044         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44045         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44046         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44047         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44048         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44049         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44050         declaration.
44051
44052 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44053
44054         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44055         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44056         (__longjmp): Use LOAD_GP to load saved GPRs.
44057         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44058         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44059         (__sigsetjmp): Use SAVE_GP to save GPRs.
44060
44061         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44062         Do not append -msoft-float.
44063         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44064
44065 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44066
44067         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44068
44069 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44070
44071         [BZ #15966]
44072         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44073         (_FPU_GETCW): Use initial "__" on variable and field names but not
44074         on macro parameter name.
44075         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44076         parentheses around reference to macro parameter.
44077
44078 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44079
44080         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44081         prototype.
44082         (ctype_startup): Use uint32_t in cast and sizeof for
44083         ctype->charnames.
44084
44085 2013-09-11  Jia Liu  <proljc@gmail.com>
44086
44087         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44088         __daddr_t_defined.
44089         [__FreeBSD__]: Likewise.
44090
44091 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44092
44093         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44094         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44095         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44096         (strchr): Remove __strchr_sse42 ifunc selection.
44097         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44098         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44099
44100 2013-09-11  Will Newton  <will.newton@linaro.org>
44101
44102         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44103         parameter to RES. Remove hardcoded 1000 value.
44104         * benchtests/bench-skeleton.c (main): Pass RES parameter
44105         to TIMING_INIT and multiply result by 1000.
44106
44107 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44108
44109         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44110
44111 2013-09-11  Andreas Schwab  <schwab@suse.de>
44112
44113         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44114         if not defined.
44115         (O_TMPFILE) [__USE_GNU]: Define.
44116         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44117         Define.
44118
44119 2013-09-11  Will Newton  <will.newton@linaro.org>
44120
44121         [BZ #15857]
44122         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44123         does not overflow.
44124
44125 2013-09-11  Will Newton  <will.newton@linaro.org>
44126
44127         [BZ #15856]
44128         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44129         does not overflow.
44130
44131 2013-09-11  Will Newton  <will.newton@linaro.org>
44132
44133         [BZ #15855]
44134         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44135         does not overflow.
44136
44137 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44138
44139         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44140         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44141         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44142         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44143         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44144
44145 2013-09-10  Allan McRae  <allan@archlinux.org>
44146
44147         [BZ #15748]
44148         * manual/arith.texi (Parsing of Floats): Clarify
44149         cross-reference.
44150
44151         [BZ #15849]
44152         * manual/install.texi (Running make install): Mention
44153         --enable-pt-chown.
44154         * INSTALL: Regenerated.
44155
44156 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44157
44158         * csu/init-first.c (_init): Remove the !SHARED condition around
44159         FPU control word initialization.
44160         * elf/dl-support.c (_dl_fpu_control): New variable.
44161         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44162         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44163         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44164         * math/test-fpucw-static.c: New file.
44165         * math/test-fpucw-ieee.c: New file.
44166         * math/test-fpucw-ieee-static.c: New file.
44167         * math/Makefile (tests): Add `test-fpucw-ieee' and
44168         `$(tests-static)'.
44169         (tests-static): New variable.
44170         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44171         dependency to...
44172         [($(build-shared),yes)]
44173         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44174         ... this.
44175         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44176         New dependency.
44177
44178 2013-09-09  Allan McRae  <allan@archlinux.org>
44179
44180         [BZ #15939]
44181         * manual/string.texi (Collation Functions): Fix typo in
44182         strcoll example.
44183         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44184
44185         [BZ #15893]
44186         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44187
44188         [BZ #15892]
44189         * libio/memstream.c (open_memstream): Fix memory leak.
44190         * libio/wmemstream.c (open_wmemstream): Likewise.
44191
44192         [BZ #15895]
44193         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44194
44195 2013-09-09  Will Newton  <will.newton@linaro.org>
44196
44197         * malloc/Makefile: Add tst-realloc to tests.
44198         * malloc/tst-realloc.c: New file.
44199
44200 2013-09-09  Allan McRae  <allan@archlinux.org>
44201
44202         [BZ #15844]
44203         * COPYING: Update from GNU website to fix FSF address.
44204         * COPYING.LIB: Likewise.
44205
44206 2013-09-06  David S. Miller  <davem@davemloft.net>
44207
44208         * po/zh_TW.po: Update Chinese (traditional) translation from
44209         translation project.
44210
44211 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44212             Joseph Myers  <joseph@codesourcery.com>
44213
44214         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44215         "localeinfo.h".
44216         (obstack_chunk_alloc): New macro.
44217         (obstack_chunk_free): Likewise.
44218         (record_offset): New function.
44219         (init_locale_data): Likewise.
44220         (align_locale_data): Likewise.
44221         (add_locale_empty): Likewise.
44222         (add_locale_raw_data): Likewise.
44223         (add_locale_raw_obstack): Likewise.
44224         (add_locale_string): Likewise.
44225         (add_locale_wstring): Likewise.
44226         (add_locale_uint32): Likewise.
44227         (add_locale_uint32_array): Likewise.
44228         (add_locale_char): Likewise.
44229         (start_locale_structure): Likewise.
44230         (end_locale_structure): Likewise.
44231         (start_locale_prelude): Likewise.
44232         (end_locale_prelude): Likewise.
44233         (write_locale_data): Take locale_file structure rather than an
44234         iovec.
44235         * locale/programs/locfile.h: Include "obstack.h".
44236         (struct locale_file): Change to store locale file contents instead
44237         of header.
44238         (init_locale_data): New prototype.
44239         (align_locale_data): Likewise.
44240         (add_locale_empty): Likewise.
44241         (add_locale_raw_data): Likewise.
44242         (add_locale_raw_obstack): Likewise.
44243         (add_locale_string): Likewise.
44244         (add_locale_wstring): Likewise.
44245         (add_locale_uint32): Likewise.
44246         (add_locale_uint32_array): Likewise.
44247         (add_locale_char): Likewise.
44248         (start_locale_structure): Likewise.
44249         (end_locale_structure): Likewise.
44250         (start_locale_prelude): Likewise.
44251         (end_locale_prelude): Likewise.
44252         (write_locale_data): Update prototype.
44253         * locale/programs/3level.h (struct TABLE): Remove result field.
44254         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44255         Use new locale_file interface.
44256         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44257         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44258         * locale/programs/ld-address.c (address_output): Use new
44259         locale_file interface.
44260         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44261         NO_ADD_LOCALE.
44262         (collate_finish): Don't call collseq_table_finalize.
44263         (collate_output): Use new locale_file interface.
44264         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44265         in file.
44266         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44267         (TABLE): Move defines earlier in file.
44268         (ELEMENT): Likewise.
44269         (DEFAULT): Likewise.
44270         (wctrans_table_add): Move macro and inline function earlier in
44271         file.
44272         (struct wctype_table): Move type earlier in file.
44273         (add_locale_wctype_table): New static prototype.
44274         (struct locale_ctype_t): Use logical types instead of struct iovec
44275         pointers for members.
44276         (ctype_output): Use new locale_file interface.
44277         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44278         new locale_file interface.
44279         (allocate_arrays): Update for use of new locale_file interface.
44280         * locale/programs/ld-identification.c (identification_output): Use
44281         new locale_file interface.
44282         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44283         * locale/programs/ld-messages.c (messages_output): Likewise.
44284         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44285         * locale/programs/ld-name.c (name_output): Likewise.
44286         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44287         * locale/programs/ld-paper.c (paper_output): Likewise.
44288         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44289         * locale/programs/ld-time.c (time_output): Likewise.
44290
44291 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44292
44293         * benchtests/Makefile: Add memrchr benchmark.
44294         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44295         benchmark as memrchr.
44296         * benchtests/bench-memrchr-ifunc.c: New file.
44297         * benchtests/bench-memrchr.c: New file.
44298
44299 2013-09-06   Will Newton  <will.newton@linaro.org>
44300
44301         * benchtests/Makefile (string-bench): Add memcpy.
44302
44303 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44304             Cong Wang  <amwang@redhat.com>
44305
44306         [BZ #15850]
44307         * sysdeps/unix/sysv/linux/bits/in.h
44308         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44309         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44310         before __USE_KERNEL_IPV6_DEFS uses.
44311         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44312         IPPROTO_BEETPH.
44313         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44314         sockaddr_in6, or ipv6_mreq.
44315
44316 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44317
44318         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44319         memory access for final bytes in some large inputs.
44320         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44321
44322 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44323
44324         * string/test-memrchr.c: New file.
44325         * string/test-memrchr-ifunc.c: New file.
44326         * string/Makefile: Add new memrchr testcase.
44327
44328 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44329
44330         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44331         fanotify_init returns EPERM.
44332
44333 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44334
44335         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44336         errors.
44337         (top level): Treat second token from macro or constant entries for
44338         allowed headers as allowed.
44339         * include/complex.h: Condition internal declarations on
44340         [!_ISOMAC].
44341         * include/fenv.h: Condition include of <stdbool.h> and internal
44342         declarations on [!_ISOMAC].
44343
44344 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44345
44346         [BZ #15923]
44347         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44348
44349 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44350
44351         * configure.in (--enable-versioning): Remove configure option.
44352         (libc_cv_asm_symver_directive): Remove configure test.
44353         (libc_cv_ld_version_script_option): Likewise.
44354         (VERSIONING): Remove variable and AC_SUBST.
44355         (DO_VERSIONING): Remove AC_DEFINE.
44356         * configure: Regenerated.
44357         * config.h.in (DO_VERSIONING): Remove macro.
44358         * Makerules [$(versioning) = yes]: Change conditionals to
44359         [$(build-shared) = yes].
44360         * config.make.in (versioning): Remove variable.
44361         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44362         [$(build-shared) = yes].
44363         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44364         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44365         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44366         [$(build-shared) = yes].
44367         * extra-lib.mk [$(versioning) = yes]: Likewise.
44368         * hurd/Makefile [$(versioning) = yes]: Likewise.
44369         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44370         [SHARED].
44371         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44372         [SHARED].
44373         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44374         [SHARED && !NO_HIDDEN].
44375         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44376         [SHARED].
44377         [SHARED && DO_VERSIONING]: Likewise..
44378         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44379         [$(build-shared) = yes].
44380         * manual/install.texi (--disable-versioning): Remove
44381         documentation.
44382         * INSTALL: Regenerated.
44383         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44384         to [SHARED].
44385         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44386         [$(build-shared) = yes].
44387         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44388         * sysdeps/i386/i686/multiarch/strstr-c.c
44389         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44390         [SHARED && !NO_HIDDEN].
44391         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44392         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44393         * sysdeps/powerpc/powerpc32/dl-machine.c
44394         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44395         * sysdeps/powerpc/powerpc32/sysdep.h
44396         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44397         to [SHARED && PIC && !NO_HIDDEN].
44398         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44399         conditional to [SHARED].
44400
44401 2013-09-04   Will Newton  <will.newton@linaro.org>
44402
44403         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44404         * benchtests/bench-string.h: Include bench-timing.h instead
44405         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44406         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44407         call to HP_TIMING_DIFF_INIT.
44408         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44409         instead of hp-timing.h macros.
44410         * benchtests/bench-memchr.c: Likewise.
44411         * benchtests/bench-memcmp.c: Likewise.
44412         * benchtests/bench-memcpy.c: Likewise.
44413         * benchtests/bench-memmem.c: Likewise.
44414         * benchtests/bench-memmove.c: Likewise.
44415         * benchtests/bench-memset.c: Likewise.
44416         * benchtests/bench-rawmemchr.c: Likewise.
44417         * benchtests/bench-strcasecmp.c: Likewise.
44418         * benchtests/bench-strcasestr.c: Likewise.
44419         * benchtests/bench-strcat.c: Likewise.
44420         * benchtests/bench-strchr.c: Likewise.
44421         * benchtests/bench-strcmp.c: Likewise.
44422         * benchtests/bench-strcpy.c: Likewise.
44423         * benchtests/bench-strcpy_chk.c: Likewise.
44424         * benchtests/bench-strlen.c: Likewise.
44425         * benchtests/bench-strncasecmp.c: Likewise.
44426         * benchtests/bench-strncat.c: Likewise.
44427         * benchtests/bench-strncmp.c: Likewise.
44428         * benchtests/bench-strncpy.c: Likewise.
44429         * benchtests/bench-strnlen.c: Likewise.
44430         * benchtests/bench-strpbrk.c: Likewise.
44431         * benchtests/bench-strrchr.c: Likewise.
44432         * benchtests/bench-strspn.c: Likewise.
44433         * benchtests/bench-strstr.c: Likewise.
44434
44435 2013-09-04  Will Newton  <will.newton@linaro.org>
44436
44437         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44438
44439 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44440
44441         [BZ #15427]
44442         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44443         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44444         * math/libm-test.inc (lgamma_test_data): Add more tests.
44445         * sysdeps/i386/fpu/libm-test-ulps: Update.
44446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44447
44448 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44449
44450         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44451         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44452         Add ifunc.
44453         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44454         Add strcmp-sse2-unaligned
44455         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44456
44457 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44458
44459         * Versions.def (libc): Add GLIBC_2.19.
44460
44461 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44462
44463         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44464         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44465
44466 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44467
44468         [BZ #14155]
44469         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44470         intermediate calculations in recurrence.
44471         (__ieee754_ynf): Likewise.
44472         * math/libm-test.inc (jn_test_data): Do not allow spurious
44473         underflow exception.  Add more tests.
44474         (yn_test_data): Add more tests.
44475         * sysdeps/i386/fpu/libm-test-ulps: Update.
44476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44477
44478 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44479
44480         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44481
44482 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44483
44484         * csu/init-first.c: Fix then/than typos.
44485         * locale/programs/ld-collate.c: Likewise.
44486         * locale/programs/linereader.h: Likewise.
44487         * manual/charset.texi: Likewise.
44488         * manual/filesys.texi: Likewise.
44489         * manual/stdio.texi: Likewise.
44490         * manual/string.texi: Likewise.
44491         * stdlib/fmtmsg.c: Likewise.
44492         * sysdeps/i386/stpncpy.S: Likewise.
44493         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44494         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44495         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44496         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44497
44498 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44499
44500         * elf/dl-open.c: Fix typos.
44501         * iconvdata/gbbig5.c: Likewise.
44502         * iconvdata/iso-2022-jp.c: Likewise.
44503         * iconv/gconv_int.h: Likewise.
44504         * iconv/loop.c: Likewise.
44505         * nis/rpcsvc/nis.h: Likewise.
44506         * resolv/ns_name.c: Likewise.
44507         * stdio-common/vfscanf.c: Likewise.
44508         * streams/stropts.h: Likewise.
44509         * sunrpc/rpc_thread.c: Likewise.
44510         * sysdeps/i386/strpbrk.S: Likewise.
44511         * sysdeps/ieee754/k_standard.c: Likewise.
44512         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44513         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44514         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44515         * sysdeps/mach/hurd/profil.c: Likewise.
44516         * sysdeps/s390/dl-procinfo.h: Likewise.
44517         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44518         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44519         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44520         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44521         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44522
44523 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44524
44525         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44526         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44527
44528 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44529
44530         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44531         aix specific files.
44532         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44533         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44534         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44535         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44536         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44537         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44538         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44539         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44540
44541 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44542             Roland McGrath  <roland@hack.frob.com>
44543
44544         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44545         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44546
44547 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44548
44549         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44550         __executable_start symbol instead of _start.
44551
44552 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44553
44554         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44555         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44556         Move macros to...
44557         * sysdeps/gnu/ldsodefs.h: ... this new file.
44558
44559         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44560         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44561         instead of ELFOSABI_LINUX.
44562
44563         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44564         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44565         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44566         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44567         Likewise.
44568         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44569         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44570         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44571         Likewise.
44572         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44573         (ibm_extended_long_double): Add ieee_nan member.
44574         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44575         (do_test): New function.
44576
44577         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44578         TEST_TRUNC.
44579         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44580         functions, renamed from truncdfsf_test, trunctfsf_test,
44581         trunctfdf_test.
44582         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44583         functions.
44584         (do_test): Run all these.
44585
44586 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44587
44588         * argp/argp-help.c: Fix typos.
44589         * argp/argp-parse.c: Likewise.
44590         * debug/backtracesyms.c: Likewise.
44591         * elf/elf.h: Likewise.
44592         * malloc/malloc.c: Likewise.
44593         * nis/nis_print.c: Likewise.
44594         * resolv/res_comp.c: Likewise.
44595         * stdlib/stdlib.h: Likewise.
44596         * sunrpc/clnt_tcp.c: Likewise.
44597         * sunrpc/clnt_udp.c: Likewise.
44598         * sunrpc/clnt_unix.c: Likewise.
44599         * sysdeps/unix/bsd/ptsname.c: Likewise.
44600         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44601         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44603         Likewise.
44604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44605         Likewise.
44606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44607         Likewise.
44608         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44609
44610 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44611
44612         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44613         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44614
44615 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44616
44617         [BZ #15897]
44618         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44619         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44620         ($(objpfx)bug-dl-leaf): New rule.
44621         ($(objpfx)bug-dl-leaf.so): Likewise.
44622         ($(objpfx)bug-dl-leaf.out): Likewise.
44623         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44624         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44625         * dlfcn/bug-dl-leaf.c: New test.
44626         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44627         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44628         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44629         (dlclose): Likewise.
44630         (dlmopen): Likewise.
44631
44632 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44633
44634         * include/netdb.h [!_ISOMAC]:
44635         Don't include <tls.h>.
44636         (h_errno, __libc_h_errno): Move declaration and macros out of
44637         [_LIBC_REENTRANT].
44638
44639         * include/resolv.h [_RESOLV_H_]:
44640         Don't include <tls.h>.
44641         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44642         * resolv/res_libc.c: Don't include <tls.h>.
44643         (_res): Use __attribute__ ((nocommon)) in place of
44644         __attribute__ ((section (".bss"))).
44645
44646         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44647         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44648
44649         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44650
44651         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44652         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44653
44654         * resolv/res_mkquery.c: Include <sys/time.h>.
44655
44656         * inet/ifreq.c: Moved to ...
44657         * sysdeps/unix/ifreq.c: ... here.
44658         * inet/ifreq.c: New file, true stub version.
44659
44660         * socket/sa_len.c: New file.
44661         * socket/Makefile (aux): Add it.
44662         * sysdeps/unix/sysv/linux/Makefile
44663         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44664         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44665         and #include <socket/sa_len.c>.
44666         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44667         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44668
44669         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44670         * bits/socket.h: ... here.
44671
44672         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44673         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44674         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44675
44676 2013-08-27  Andreas Schwab  <schwab@suse.de>
44677
44678         [BZ #15736]
44679         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44680         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44681         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44682         * string/test-strcasecmp.c (test_main): Run tests in several
44683         locales.
44684         * string/test-strncasecmp.c (test_main): Likewise.
44685
44686         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44687         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44688         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44689         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44690         (__strncasecmp_ssse3) [PIC]: Likewise.
44691
44692 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44693
44694         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44695
44696         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44697         instead of explicitly declaring xdecrypt.
44698         * nis/nss_nis/nis-publickey.c: Likewise.
44699
44700 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44701
44702         [BZ #15890]
44703         * nscd/aicache.c: Include res_hconf.h.
44704         (addhstaiX): Initialize res_hconf.
44705
44706 2013-08-26  Andreas Schwab  <schwab@suse.de>
44707
44708         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44709         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44710
44711 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44712
44713         * nscd/aicache.c (addhstaiX): Fix indentation.
44714
44715 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44716
44717         * configure.ac: Quote $build_pt_chown test.
44718         * configure: Regenerated.
44719
44720 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44721
44722         [BZ #15532]
44723         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44724         * math/s_cexpf.c (__cexpf): Likewise.
44725         * math/s_cexpl.c (__cexpl): Likewise.
44726         * math/libm-test.inc (cexp_test_data): Correct expected return
44727         value for NaN + i0.  Add another test.
44728
44729 2013-08-22  David S. Miller  <davem@davemloft.net>
44730
44731         * po/ca.po: Update Catalan translation from translation project.
44732         * po/uk.po: Add Ukrainian translations from translation project.
44733
44734 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44735
44736         [BZ #15797]
44737         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44738         is infinite, not alongside NaN test.
44739         * math/s_fdimf.c (__fdimf): Likewise.
44740         * math/s_fdiml.c (__fdiml): Likewise.
44741         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44742         errno is unchanged.
44743
44744 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44745
44746         * argp/argp-help.c: Fix typos.
44747         * crypt/speeds.c: Likewise.
44748         * csu/check_fds.c: Likewise.
44749         * elf/dl-load.c: Likewise.
44750         * elf/dl-open.c: Likewise.
44751         * elf/reldep3.c: Likewise.
44752         * elf/reldep.c: Likewise.
44753         * elf/sprof.c: Likewise.
44754         * iconv/iconv_charmap.c: Likewise.
44755         * iconv/skeleton.c: Likewise.
44756         * iconv/strtab.c: Likewise.
44757         * io/lockf64.c: Likewise.
44758         * libio/libioP.h: Likewise.
44759         * resolv/gai_notify.c: Likewise.
44760         * resolv/ns_name.c: Likewise.
44761         * resolv/ns_samedomain.c: Likewise.
44762         * resolv/res_send.c: Likewise.
44763         * stdlib/random.c: Likewise.
44764         * sunrpc/rpc/xdr.h: Likewise.
44765         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44766         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44767         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44768         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44769         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44770         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44771         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44772         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44773         * sysdeps/mach/hurd/check_fds.c: Likewise.
44774         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44775         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44776         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44777         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44778         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44779         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44780         * sysdeps/pthread/aio_notify.c: Likewise.
44781         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44782         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44783         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44784         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44785         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44786
44787 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44788
44789         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44790         version if bit_Slow_SSE4_2 is set.
44791         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44792         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44793
44794 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44795
44796         [BZ #15867]
44797         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44798         trampoline stack frame information.
44799         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44800         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44801         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44802         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44803         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44804         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44805         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44806         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44807         sa_flags value.
44808         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44809         interrupting a syscall and set with option SA_SIGINFO.
44810
44811 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44812
44813         [BZ #15531]
44814         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44815         argument is infinite.
44816         * math/s_cprojf.c (__cprojf): Likewise.
44817         * math/s_cprojl.c (__cprojl): Likewise.
44818         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44819         * math/libm-test.inc (cproj_test_data): Add more tests.
44820
44821         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44822
44823         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44824         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44825         size.  Use __ffs to determine corresponding shift.
44826
44827 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44828             Roland McGrath  <roland@hack.frob.com>
44829
44830         * Makefile (INSTALL): Remove trailing blank lines from output of
44831         makeinfo.
44832
44833 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44834
44835         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44836         Align 32 bit compat elf_greg to 8 bytes.
44837
44838 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44839
44840         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44841
44842 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44843
44844         * string/strcoll_l.c (coll_seq): New structure.
44845         (get_next_seq_cached): New function.
44846         (get_next_seq): New function.
44847         (do_compare): New function.
44848         (STRCOLL): Use GNU style definition.  Simplify implementation
44849         by using get_next_seq, get_next_seq_cached and do_compare.
44850
44851 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44852
44853         [BZ #14699]
44854         CVE-2013-4237
44855         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44856         member.
44857         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44858         member.
44859         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44860         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44861         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44862         conditional.
44863         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44864         GETDENTS_64BIT_ALIGNED.
44865         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44866         * manual/filesys.texi (Reading/Closing Directory): Document
44867         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44868         strongly.
44869         * manual/conf.texi (Limits for Files): Add portability note to
44870         NAME_MAX, PATH_MAX.
44871         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44872
44873 2013-08-13  Andreas Schwab  <schwab@suse.de>
44874
44875         [BZ #15749]
44876         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44877         of fabs.
44878         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44879         LDBL_MAX_EXP >= 16384]: Add tests for it.
44880
44881 2013-08-12  David S. Miller  <davem@davemloft.net>
44882
44883         * version.h (RELEASE): Set to "development".
44884         (VERSION): Set to "2.18.90".
44885         * NEWS: Add 2.19 section.
44886
44887 2013-08-03  David S. Miller  <davem@davemloft.net>
44888
44889         * po/ko.po: Update Korean translation from translation project.
44890
44891 2013-08-01  David S. Miller  <davem@davemloft.net>
44892
44893         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44894         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44895         Bilka.
44896
44897 2013-07-30  David S. Miller  <davem@davemloft.net>
44898
44899         * po/fr.po: Update French translation from translation project.
44900
44901 2013-07-28  David S. Miller  <davem@davemloft.net>
44902
44903         * po/cs.po: Update Czech translation from translation project.
44904
44905         * po/sv.po: Update Swedish translation from translation project.
44906
44907 2013-07-27  David S. Miller  <davem@davemloft.net>
44908
44909         * po/eo.po: Update Esperanto translation from translation project.
44910
44911         * po/vi.po: Update Vietnamese translation from translation project.
44912
44913         * po/de.po: Update German translation from translation project.
44914
44915 2013-07-26  David S. Miller  <davem@davemloft.net>
44916
44917         * po/bg.po: Update Bulgarian translation from translation project.
44918
44919         * po/nl.po: Update Dutch translation from translation project.
44920         * po/pl.po: Update Polish translation from translation project.
44921         * po/ru.po: Update Russian translation from translation project.
44922
44923 2013-07-24  David S. Miller  <davem@davemloft.net>
44924
44925         * po/libc.pot: Update.
44926
44927 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44928
44929         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44930         variable page size.
44931         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44932         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44933         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44934
44935 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44936
44937         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44938
44939 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44940             Andreas Schwab  <schwab@suse.de>
44941             Roland McGrath  <roland@hack.frob.com>
44942             Joseph Myers  <joseph@codesourcery.com>
44943             Carlos O'Donell  <carlos@redhat.com>
44944
44945         [BZ #15755]
44946         * config.h.in: Define HAVE_PT_CHOWN.
44947         * config.make.in (build-pt-chown): New variable.
44948         * configure.in (--enable-pt_chown): New configure option.
44949         * configure: Regenerate.
44950         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44951         build-pt-chown is enabled.
44952         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44953         pt_chown to fix pty ownership.
44954         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44955         CLOSE_ALL_FDS.
44956         * manual/install.texi (Configuring and compiling): Mention
44957         --enable-pt_chown. Add @findex for grantpt.
44958         * INSTALL: Regenerate.
44959
44960 2013-07-20  David S. Miller  <davem@davemloft.net>
44961
44962         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44963         difference between 32-bit and 64-bit.
44964
44965 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44966
44967         [BZ #15711]
44968         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44969         Avoid system header dependency with -ffreestanding.
44970         ($(objpfx)bits/syscall%d): Likewise.
44971
44972 2013-07-13  David S. Miller  <davem@davemloft.net>
44973
44974         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44975         underflows from atanl/atan2l due to bug 15319.
44976         (casinh_test_data): Likewise.
44977
44978 2013-07-07  David S. Miller  <davem@davemloft.net>
44979
44980         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44981
44982 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44983
44984         * sysdeps/i386/fpu/libm-test-ulps: Update.
44985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44986
44987 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44988
44989         * configure.in (--enable-lock-elision): Fix message text.
44990         * INSTALL: Regenerate.
44991         * configure: Regenerate.
44992
44993 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44994
44995         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44996
44997 2013-07-03  Andreas Jaeger  <aj@suse.de>
44998
44999         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45000         define.
45001         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45002         (ptrace_peeksiginfo_args): Add.
45003         (__ptrace_peeksiginfo_flags): Add.
45004         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45005         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45006         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45007
45008 2013-07-03  Allan McRae  <allan@archlinux.org>
45009
45010         * sysdeps/i386/fpu/libm-test-ulps: Update.
45011
45012 2013-07-02  David S. Miller  <davem@davemloft.net>
45013
45014         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45015
45016 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45017
45018         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45019
45020 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45021
45022         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45024
45025 2013-07-02  Andi Kleen <ak@linux.intel.com>
45026
45027         * config.h.in (ENABLE_LOCK_ELISION): Add.
45028         * configure.in (--enable-lock-elision): Add option.
45029         * manual/install.texi: Document --enable lock elision.
45030         * configure: Regenerate
45031         * INSTALL: Regenerate.
45032
45033 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45034
45035         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45036         SSE4.2 strcasecmp for libc.a.
45037         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45038
45039 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45040
45041         [BZ #13304]
45042         * soft-fp/op-common.h (_FP_FMA): New macro.
45043         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45044         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45045         (_FP_MUL_MEAT_1_imm): ... here.
45046         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45047         (_FP_MUL_MEAT_1_wide): ... here.
45048         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45049         (_FP_MUL_MEAT_1_hard): ... here.
45050         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45051         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45052         (_FP_MUL_MEAT_2_wide): ... here.
45053         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45054         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45055         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45056         (_FP_MUL_MEAT_2_gmp): ... here.
45057         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45058         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45059         (_FP_MUL_MEAT_4_wide): ... here.
45060         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45061         (_FP_MUL_MEAT_4_gmp): ... here.
45062         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45063         (_FP_WFRACBITS_DW_S): Likewise.
45064         (_FP_WFRACXBITS_DW_S): Likewise.
45065         (_FP_HIGHBIT_DW_S): Likewise.
45066         (FP_FMA_S): Likewise.
45067         (_FP_FRAC_HIGH_DW_S): Likewise.
45068         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45069         (_FP_WFRACBITS_DW_D): Likewise.
45070         (_FP_WFRACXBITS_DW_D): Likewise.
45071         (_FP_HIGHBIT_DW_D): Likewise.
45072         (FP_FMA_D): Likewise.
45073         (_FP_FRAC_HIGH_DW_D): Likewise.
45074         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45075         (_FP_WFRACBITS_DW_E): Likewise.
45076         (_FP_WFRACXBITS_DW_E): Likewise.
45077         (_FP_HIGHBIT_DW_E): Likewise.
45078         (FP_FMA_E): Likewise.
45079         (_FP_FRAC_HIGH_DW_E): Likewise.
45080         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45081         (_FP_WFRACBITS_DW_Q): Likewise.
45082         (_FP_WFRACXBITS_DW_Q): Likewise.
45083         (_FP_HIGHBIT_DW_Q): Likewise.
45084         (FP_FMA_Q): Likewise.
45085         (_FP_FRAC_HIGH_DW_Q): Likewise.
45086         * soft-fp/fmasf4.c: New file.
45087         * soft-fp/fmadf4.c: Likewise.
45088         * soft-fp/fmatf4.c: Likewise.
45089
45090 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45091
45092         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45093         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45094         Silvermont.
45095         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45096         macro.
45097         (index_Slow_SSE4_2): Likewise.
45098         (index_Prefer_PMINUB_for_stringop): Likewise.
45099         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45100         bit_Slow_SSE4_2 is set.
45101         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45102         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45103
45104 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45105
45106         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45107         rtld_global._dl_hwcap2.
45108         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45109         POWER8.
45110         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45111         POWER8 feature descriptions defined in _dl_hwcap2.
45112         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45113         string handling for POWER8 feature bits.
45114         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45115         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45116         _dl_powerpc_cap_flags.
45117         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45118         * sysdeps/powerpc/rtld-global-offsets.sym
45119         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45120         _dl_hwcap2 in the rtld_global_ro structure.
45121
45122 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45123
45124         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45125         hardware capabilities in support of AT_HWCAP2.
45126         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45127         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45128         GLRO(dl_hwcap2).
45129         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45130         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45131         explicitly the unknown a_type display mechanism is used.
45132         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45133         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45134         struct member.
45135         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45136         to macro prototype for AT_HWCAP2 support.
45137         * sysdeps/i386/dl-procinfo.h: Likewise.
45138         * sysdeps/s390/dl-procinfo.h: Likewise.
45139         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45140         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45141         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45142         return -1 for unknown a_type display fallback.
45143         * sysdeps/sparc/dl-procinfo.h: Likewise.
45144         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45145         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45146
45147 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45148
45149         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45150         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45151
45152 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45153
45154         [BZ #12492]
45155         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45156         mprotect making __stack_prot writable.
45157
45158 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45159             Joseph Myers  <joseph@codesourcery.com>
45160
45161         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45162         as being properly aligned.
45163
45164 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45165
45166         * dlfcn/modstatic5.c: New file.
45167         * dlfcn/tststatic5.c: New file.
45168         * dlfcn/Makefile (tests): Add tststatic5.
45169         (tests-static): Likewise.
45170         (modules-names): Add modstatic5.
45171         (tststatic5-ENV): New variable.
45172         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45173
45174         [BZ #15022]
45175         * elf/dl-support.c (_dl_main_map): New variable.
45176         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45177         (_dl_nns, _dl_load_adds): Set to 1.
45178         (_dl_initial_searchlist): Refer to _dl_main_map.
45179         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45180         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45181         call to _dl_get_origin.
45182         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45183         around call_map.
45184         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45185         * dlfcn/modstatic3.c: New file.
45186         * dlfcn/tststatic3.c: New file.
45187         * dlfcn/tststatic4.c: New file.
45188         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45189         (tests-static): Likewise.
45190         (modules-names): Add modstatic3.
45191         (tststatic3-ENV, tststatic4-ENV): New variables.
45192         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45193         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45194
45195 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45196
45197         * configure.in (CC): Require GCC version 4.4 or later.
45198         * configure: Regenerated.
45199         * manual/install.texi (Tools for Compilation): Update GCC version
45200         requirement.
45201         * INSTALL: Regenerated.
45202
45203 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45204
45205         [BZ #15674]
45206         * string/test-memcmp.c (check2): New.
45207         (main): Call check2.
45208
45209         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45210
45211 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45212
45213         [BZ #15022]
45214         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45215         over to...
45216         (dl_open_worker) [!SHARED]: ... here.
45217
45218 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45219
45220         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45221
45222 2013-06-25  Richard Henderson  <rth@redhat.com>
45223
45224         * locale/programs/locarchive.c: Include <libc-internal.h>
45225
45226 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45227
45228         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45229         trailing whitespace removed.
45230
45231 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45232
45233         [BZ #10283]
45234         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45235         * locale/programs/locarchive.c: Include libc-mmap.h.
45236         (prepare_address_space): Take two new outputs (the mmap base and len).
45237         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45238         values.
45239         (create_archive): Declare new mmap base and len values for
45240         prepare_address_space, and store the result in ah.
45241         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45242         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45243         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45244         Declare new mmap base and len values for
45245         prepare_address_space, and store the result in new_ah.
45246         (open_archive): Declare new mmap base and len values for
45247         prepare_address_space, and store the result in ah.
45248         (close_archive): If ah->mmap_base is not NULL, use that and
45249         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45250         * sysdeps/generic/libc-mmap.h: New file.
45251
45252 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45253
45254         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45255         (ALIGN_UP): Likewise.
45256         (PTR_ALIGN_DOWN): Likewise.
45257         (PTR_ALIGN_UP): Likewise.
45258
45259 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45260
45261         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45262         entry mapped to PPC_PLATFORM_POWER8.
45263         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45264         POWER8.
45265         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45266         (_dl_string_platform): Add case for exporting platform position for
45267         POWER8.
45268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45269         search path to sysdeps/powerpc/powerpc32/power8 directory.
45270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45271         search path to sysdeps/powerpc/powerpc64/power8 directory.
45272         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45273         power7 directories.
45274         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45275         power7 directories.
45276
45277 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45278
45279         * INSTALL: Regenerate.
45280
45281         * nscd/connections.c (nscd_init): Fix comment.
45282
45283 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45284
45285         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45286
45287         [BZ #15667]
45288         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45289         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45290
45291 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45292
45293         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45294         DL_DST_REQ_STATIC.
45295         (DL_DST_REQ_STATIC): Remove macro.
45296
45297 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45298
45299         [BZ #7006]
45300         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45301         with a shift of 0 bits.
45302
45303 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45304
45305         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45306         $(tststatic-ENV).
45307
45308 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45309
45310         [BZ #15655]
45311         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45312
45313 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45314
45315         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45316         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45317         accepts -fno-tree-loop-distribute-patterns.
45318         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45319         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45320         recursive call.
45321         * string/memset.c (memset): Likewise.
45322         * string/test-memmove.c (simple_memmove): Disable loop transformation
45323         to library calls.
45324         * string/test-memset.c (simple_memset): Likewise.
45325         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45326         * benchtests/bench-memset.c (simple_memset): Likewise.
45327         * configure: Regenerated.
45328
45329 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45330
45331         * math/test-misc.c (main): Ignore fesetround failure when failures
45332         of subsequent rounding tests would be ignored.
45333
45334         [BZ #15654]
45335         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45336         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45337         * math/fegetenv.c (__fegetenv): Return 0.
45338         * math/fegetexcept.c (fegetexcept): Return 0.
45339         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45340         FE_TONEAREST.
45341         * math/feholdexcpt.c (feholdexcept): Return 0.
45342         * math/fesetenv.c (__fesetenv): Return 0.
45343         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45344         argument FE_TONEAREST.
45345         * math/feupdateenv.c (__feupdateenv): Return 0.
45346         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45347
45348 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45349
45350         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45351         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45352         ($(objpfx)rtld-%.os rules): Use them.
45353
45354 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45355
45356         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45357         fields.
45358
45359 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45360
45361         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45362         length of target pattern, then descending length of dependency pattern.
45363         * configure.in (AWK): Require gawk 3.1.2 or newer.
45364         * manual/install.texi (Tools for Compilation): Say that we do.
45365         * configure: Regenerated.
45366
45367         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45368         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45369         * scripts/sysd-rules.awk: ... this new script.
45370         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45371         than a glob-style pattern.
45372
45373 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45374
45375         * math/test-misc.c (main): Do not treat incorrectly rounded
45376         conversions as failure unless ROUNDING_TESTS passes.
45377
45378 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45379
45380         [BZ #15631]
45381         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45382         restore exception state around main square root computation, then
45383         check for inexactness explicitly.
45384
45385         * math/libm-test.inc (fma_test_data): Add another test.
45386
45387 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45388
45389         * manual/threads.texi (Non-POSIX Extensions): New document
45390         node.  Document pthread_getattr_default_np and
45391         pthread_setattr_default_np.
45392
45393         * Versions.def (libpthread): Add GLIBC_2.18.
45394         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45396         Likewise.
45397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45398         Likewise.
45399         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45400         Likewise.
45401         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45402         Likewise.
45403         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45404         Likewise.
45405         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45406         Likewise.
45407         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45408         Likewise.
45409         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45410         Likewise.
45411         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45412         Likewise.
45413
45414 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45415
45416         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45417         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45418
45419 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45420             H.J. Lu  <hjl.tools@gmail.com>
45421
45422         [BZ #15627]
45423         * sysdeps/x86_64/rtld-memset.c: Remove file.
45424         * sysdeps/x86_64/rtld-memset.S: New file.
45425
45426 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45427
45428         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45429         (test_in_one_mode): Take arguments for whether the rounding mode
45430         is supported for each floating-point type.
45431         (do_test): Pass new arguments to test_in_one_mode using
45432         ROUNDING_TESTS.
45433
45434 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45435
45436         * posix/tst-waitid.c (do_test): Distinguish different instances of
45437         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45438         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45439         before entering the kernel for waitpid.
45440
45441 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45442
45443         * NEWS: Fix note on clock function precision.  Text by Roland
45444         McGrath.
45445
45446 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45447
45448         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45449         it into place only when and if the sanity check passes.
45450
45451 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45452
45453         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45454         output for whether conversion result is exact.  Take argument
45455         indicating whether type is IBM long double.
45456         (round_for_all): Change need_exact field to ibm_ld.
45457         * stdlib/tst-strtod-round.c (struct exactness): New type.
45458         (struct test): Change bool ld_ok field to struct exactness exact.
45459         (TEST): Update all definitions for change to field.
45460         (tests): Regenerate array contents.
45461         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45462         field value.  Check for IBM long double here.
45463         (do_test): Update calls to test_in_one_mode.
45464
45465 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45466
45467         [BZ #12515]
45468         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45469         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45470
45471 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45472
45473         [BZ #15605]
45474         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45475         generated by the compiler on loop optimizations.
45476         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45477         general definitions.
45478
45479 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45480
45481         * math/bug-nextafter.c: Include <math-tests.h>.
45482         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45483         the relevant type.
45484         * math/bug-nexttoward.c: Include <math-tests.h>.
45485         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45486         the relevant type.
45487         * math/test-misc.c: Include <math-tests.h>.
45488         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45489         the relevant type.
45490
45491 2013-06-12  Andreas Jaeger  <aj@suse.de>
45492
45493         * po/ia.po: Update Interlingua translation from translation
45494         project.
45495
45496 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45497
45498         * include/fenv.h: Include stdbool.h.
45499         (struct rm_ctx): New structure.
45500         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45501         Define macro.
45502         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45503         (SET_RESTORE_ROUNDF): Likewise.
45504         (SET_RESTORE_ROUNDL): Likewise.
45505         (SET_RESTORE_ROUND_NOEX): Likewise.
45506         (SET_RESTORE_ROUND_NOEXF): Likewise.
45507         (SET_RESTORE_ROUND_NOEXL): Likewise.
45508         (SET_RESTORE_ROUND_53BIT): Likewise.
45509         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45510         (libc_feresetround_noexf_ctx): Likewise.
45511         (libc_feresetround_noexl_ctx): Likewise.
45512         (libc_feholdsetround_53bit_ctx): Likewise.
45513         (libc_feresetround_53bit_ctx): Likewise.
45514         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45515         (libc_feholdexcept_setround_sse_ctx): New function.
45516         (libc_fesetenv_sse_ctx): Likewise.
45517         (libc_feupdateenv_sse_ctx): Likewise.
45518         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45519         (libc_feholdexcept_setround_387_ctx): Likewise.
45520         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45521         (libc_feholdsetround_387_prec_ctx): Likewise.
45522         (libc_feholdsetround_387_ctx): Likewise.
45523         (libc_feholdsetround_387_53bit_ctx): Likewise.
45524         (libc_feholdsetround_sse_ctx): Likewise.
45525         (libc_feresetround_sse_ctx): Likewise.
45526         (libc_feresetround_387_ctx): Likewise.
45527         (libc_feupdateenv_387_ctx): Likewise.
45528         (libc_feholdexcept_setroundf_ctx): Define macro.
45529         (libc_fesetenvf_ctx): Likewise.
45530         (libc_feupdateenvf_ctx): Likewise.
45531         (libc_feholdsetroundf_ctx): Likewise.
45532         (libc_feresetroundf_ctx): Likewise.
45533         (libc_feholdexcept_setround_ctx): Likewise.
45534         (libc_fesetenv_ctx): Likewise.
45535         (libc_feupdateenv_ctx): Likewise.
45536         (libc_feholdsetround_ctx): Likewise.
45537         (libc_feresetround_ctx): Likewise.
45538         (libc_feholdexcept_setroundl_ctx): Likewise.
45539         (libc_feupdateenvl_ctx): Likewise.
45540         (libc_feholdsetroundl_ctx): Likewise.
45541         (libc_feresetroundl_ctx): Likewise.
45542         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45543         (libc_feresetround_53bit_ctx): Likewise.
45544
45545 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45546
45547         * locale/iso-639.def: Convert to UTF-8.
45548
45549 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45550
45551         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45552         (EXCEPTION_TESTS_double): Likewise.
45553         (EXCEPTION_TESTS_long_double): Likewise.
45554         (EXCEPTION_TESTS): Likewise.
45555         * math/libm-test.inc (test_exceptions): Only test exceptions if
45556         EXCEPTION_TESTS (FLOAT).
45557
45558 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45559
45560         * benchtests/Makefile (string-bench): Add strcpy_chk and
45561         stpcpy_chk.
45562         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45563         * benchtests/bench-stpcpy_chk.c: New file.
45564         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45565         * benchtests/bench-strcpy_chk.c: New file.
45566         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45567         code.
45568         (do_test): Likewise.
45569
45570 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45571
45572         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45573         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45574         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45575         with tabs where appropriate.
45576         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45577         dl-procinfo.h.
45578         [PPC_PLATFORM_PPC440]: Likewise.
45579         [PPC_PLATFORM_PPC464]: Likewise.
45580         [PPC_PLATFORM_PPC476]: Likewise.
45581         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45582         ppc464, and ppc476 platform strings merging from ports/
45583         dl-procinfo.h.
45584
45585 2013-06-11  Andreas Schwab  <schwab@suse.de>
45586
45587         [BZ #14991]
45588         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45589         (from_ucs4_idx): Regenerate.
45590         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45591         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45592         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45593         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45594         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45595         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45596         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45597         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45598         from FROM_LOOP and TO_LOOP specific macros.
45599         (BODY): Handle combining characters.
45600         * iconvdata/BIG5HKSCS.irreversible: Update.
45601         * iconvdata/BIG5HKSCS.precomposed: New file.
45602         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45603         characters.
45604         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45605
45606 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45607
45608         * include/sys/time.h: Fix indentation and add copyright header.
45609
45610         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45611         (do_test): Likewise.
45612         * string/test-memchr.c (do_one_test): Likewise.
45613         (do_test): Likewise.
45614         * string/test-memcmp.c (do_one_test): Likewise.
45615         (do_test): Likewise.
45616         * string/test-memcpy.c (do_one_test): Likewise.
45617         (do_test): Likewise.
45618         * string/test-memmem.c (do_one_test): Likewise.
45619         (do_test): Likewise.
45620         (do_random_tests): Likewise.
45621         * string/test-memmove.c (do_one_test): Likewise.
45622         (do_test): Likewise.
45623         * string/test-memset.c (do_one_test): Likewise.
45624         (do_test): Likewise.
45625         * string/test-rawmemchr.c (do_one_test): Likewise.
45626         (do_test): Likewise.
45627         * string/test-strcasecmp.c (do_one_test): Likewise.
45628         (do_test): Likewise.
45629         * string/test-strcasestr.c (do_one_test): Likewise.
45630         (do_test): Likewise.
45631         * string/test-strcat.c (do_one_test): Likewise.
45632         (do_test): Likewise.
45633         * string/test-strchr.c (do_one_test): Likewise.
45634         (do_test): Likewise.
45635         * string/test-strcmp.c (do_one_test): Likewise.
45636         (do_test): Likewise.
45637         * string/test-strcpy.c (do_one_test): Likewise.
45638         (do_test): Likewise.
45639         * string/test-string.h: Likewise.
45640         (test_init): Likewise.
45641         * string/test-strlen.c (do_one_test): Likewise.
45642         (do_test): Likewise.
45643         * string/test-strncasecmp.c (do_one_test): Likewise.
45644         (do_test): Likewise.
45645         * string/test-strncat.c (do_one_test): Likewise.
45646         (do_test): Likewise.
45647         * string/test-strncmp.c (do_one_test): Likewise.
45648         (do_test_limit): Likewise.
45649         (do_test): Likewise.
45650         * string/test-strncpy.c (do_one_test): Likewise.
45651         (do_test): Likewise.
45652         * string/test-strnlen.c (do_one_test): Likewise.
45653         (do_test): Likewise.
45654         * string/test-strpbrk.c (do_one_test): Likewise.
45655         (do_test): Likewise.
45656         * string/test-strrchr.c (do_one_test): Likewise.
45657         (do_test): Likewise.
45658         * string/test-strspn.c (do_one_test): Likewise.
45659         (do_test): Likewise.
45660         * string/test-strstr.c (do_one_test): Likewise.
45661         (do_test): Likewise.
45662
45663         * benchtests/Makefile (string-bench): Add string benchmarks.
45664         * benchtests/bench-bcopy-ifunc.c: New file.
45665         * benchtests/bench-bcopy.c: New file.
45666         * benchtests/bench-bzero-ifunc.c: New file.
45667         * benchtests/bench-bzero.c: New file.
45668         * benchtests/bench-memccpy-ifunc.c: New file.
45669         * benchtests/bench-memccpy.c: New file.
45670         * benchtests/bench-memchr-ifunc.c: New file.
45671         * benchtests/bench-memchr.c: New file.
45672         * benchtests/bench-memcmp-ifunc.c: New file.
45673         * benchtests/bench-memcmp.c: New file.
45674         * benchtests/bench-memmem-ifunc.c: New file.
45675         * benchtests/bench-memmem.c: New file.
45676         * benchtests/bench-memmove-ifunc.c: New file.
45677         * benchtests/bench-memmove.c: New file.
45678         * benchtests/bench-mempcpy-ifunc.c: New file.
45679         * benchtests/bench-mempcpy.c: New file.
45680         * benchtests/bench-memset-ifunc.c: New file.
45681         * benchtests/bench-memset.c: New file.
45682         * benchtests/bench-rawmemchr-ifunc.c: New file.
45683         * benchtests/bench-rawmemchr.c: New file.
45684         * benchtests/bench-stpcpy-ifunc.c: New file.
45685         * benchtests/bench-stpcpy.c: New file.
45686         * benchtests/bench-stpncpy-ifunc.c: New file.
45687         * benchtests/bench-stpncpy.c: New file.
45688         * benchtests/bench-strcasecmp-ifunc.c: New file.
45689         * benchtests/bench-strcasecmp.c: New file.
45690         * benchtests/bench-strcasestr-ifunc.c: New file.
45691         * benchtests/bench-strcasestr.c: New file.
45692         * benchtests/bench-strcat-ifunc.c: New file.
45693         * benchtests/bench-strcat.c: New file.
45694         * benchtests/bench-strchr-ifunc.c: New file.
45695         * benchtests/bench-strchr.c: New file.
45696         * benchtests/bench-strchrnul-ifunc.c: New file.
45697         * benchtests/bench-strchrnul.c: New file.
45698         * benchtests/bench-strcmp-ifunc.c: New file.
45699         * benchtests/bench-strcmp.c: New file.
45700         * benchtests/bench-strcpy-ifunc.c: New file.
45701         * benchtests/bench-strcpy.c: New file.
45702         * benchtests/bench-strcspn-ifunc.c: New file.
45703         * benchtests/bench-strcspn.c: New file.
45704         * benchtests/bench-strlen-ifunc.c: New file.
45705         * benchtests/bench-strlen.c: New file.
45706         * benchtests/bench-strncasecmp-ifunc.c: New file.
45707         * benchtests/bench-strncasecmp.c: New file.
45708         * benchtests/bench-strncat-ifunc.c: New file.
45709         * benchtests/bench-strncat.c: New file.
45710         * benchtests/bench-strncmp-ifunc.c: New file.
45711         * benchtests/bench-strncmp.c: New file.
45712         * benchtests/bench-strncpy-ifunc.c: New file.
45713         * benchtests/bench-strncpy.c: New file.
45714         * benchtests/bench-strnlen-ifunc.c: New file.
45715         * benchtests/bench-strnlen.c: New file.
45716         * benchtests/bench-strpbrk-ifunc.c: New file.
45717         * benchtests/bench-strpbrk.c: New file.
45718         * benchtests/bench-strrchr-ifunc.c: New file.
45719         * benchtests/bench-strrchr.c: New file.
45720         * benchtests/bench-strspn-ifunc.c: New file.
45721         * benchtests/bench-strspn.c: New file.
45722         * benchtests/bench-strstr-ifunc.c: New file.
45723         * benchtests/bench-strstr.c: New file.
45724
45725         * benchtests/Makefile: Disable parallel execution of targets.
45726         (string-bench): Add memcpy.
45727         (benchset): New variable to store a list of benchmark sets.
45728         (bench-func): Renamed from bench.
45729         (bench-set): New target.
45730         (bench): Depend on bench-func and bench-set.
45731         * benchtests/README: Add section on benchmark sets.
45732         * benchtests/bench-memcpy-ifunc.c: New file.
45733         * benchtests/bench-memcpy.c: New file.
45734         * benchtests/bench-string.h: New file.
45735
45736 2013-06-11  Andreas Schwab  <schwab@suse.de>
45737
45738         [BZ #15577]
45739         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45740         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45741         values in the triple.
45742         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45743         terminator in the group key.
45744
45745 2013-06-11  Andreas Jaeger  <aj@suse.de>
45746
45747         * po/zh_TW.po: Update Chinese (traditional) translation from
45748         translation project.
45749
45750 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45751
45752         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45753         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45754         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45755         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45756         (clock_getcpuclockid): Likewise.
45757         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45758         Add weak_alias and libc_hidden_def.
45759         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45760         * rt/clock_gettime.c (clock_gettime): Rename to
45761         __clock_gettime.  Add weak_alias and libc_hidden_def.
45762         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45763         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45764         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45765         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45766         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45767         Likewise.
45768         * rt/clock_settime.c (clock_settime): Rename to
45769         __clock_settime.  Add weak_alias and libc_hidden_def.
45770         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45771
45772 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45773
45774         * mach/err_boot.sub: Remove trailing whitespace.
45775         * mach/err_ipc.sub: Likewise.
45776         * mach/err_mach.sub: Likewise.
45777
45778         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45779         (ROUNDING_TESTS_double): Likewise.
45780         (ROUNDING_TESTS_long_double): Likewise.
45781         (ROUNDING_TESTS): Likewise.
45782         * math/libm-test.inc: Include <math-tests.h>.
45783         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45784         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45785         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45786         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45787
45788 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45789
45790         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45791         of assigning.
45792
45793 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45794
45795         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45796         otherwise empty TRANS lines.
45797         * sysdeps/gnu/errlist.c: Regenerated.
45798
45799         * catgets/gencat.c (error_print): Use (void) in function
45800         definition.
45801         * crypt/crypt_util.c (__init_des): Likewise.
45802         * crypt/speeds.c (Stop): Likewise.
45803         (main): Likewise.
45804         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45805         * inet/ruserpass.c (token): Likewise.
45806         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45807         * intl/localealias.c (extend_alias_table): Likewise.
45808         * intl/plural-exp.c (init_germanic_plural): Likewise.
45809         * libio/fcloseall.c (__fcloseall): Likewise.
45810         * libio/genops.c (_IO_flush_all): Likewise.
45811         (_IO_flush_all_linebuffered): Likewise.
45812         (_IO_cleanup): Likewise.
45813         (_IO_iter_begin): Likewise.
45814         (_IO_iter_end): Likewise.
45815         (_IO_list_lock): Likewise.
45816         (_IO_list_unlock): Likewise.
45817         (_IO_list_resetlock): Likewise.
45818         * libio/getchar.c (getchar): Likewise.
45819         * libio/getchar_u.c (getchar_unlocked): Likewise.
45820         * libio/getwchar.c (getwchar): Likewise.
45821         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45822         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45823         * login/getpt.c (__getpt): Likewise.
45824         * login/tst-utmp.c (main): Likewise.
45825         * malloc/hooks.c (__malloc_check_init): Likewise.
45826         * malloc/malloc.c (__malloc_stats): Likewise.
45827         * malloc/mtrace.c (tr_break): Likewise.
45828         (mtrace): Likewise.
45829         (muntrace): Likewise.
45830         * misc/fstab.c (endfsent): Likewise.
45831         * misc/getclktck.c (__getclktck): Likewise.
45832         * misc/getdtsz.c (__getdtablesize): Likewise.
45833         * misc/gethostid.c (gethostid): Likewise.
45834         * misc/getpagesize.c (__getpagesize): Likewise.
45835         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45836         (__get_nprocs): Likewise.
45837         (__get_phys_pages): Likewise.
45838         (__get_avphys_pages): Likewise.
45839         * misc/getttyent.c (getttyent): Likewise.
45840         (setttyent): Likewise.
45841         (endttyent): Likewise.
45842         * misc/getusershell.c (getusershell): Likewise.
45843         (endusershell): Likewise.
45844         (setusershell): Likewise.
45845         (initshells): Likewise.
45846         * misc/hsearch.c (__hdestroy): Likewise.
45847         * misc/sync.c (sync): Likewise.
45848         * misc/syslog.c (closelog_internal): Likewise.
45849         (closelog): Likewise.
45850         * misc/ttyslot.c (ttyslot): Likewise.
45851         * misc/vhangup.c (vhangup): Likewise.
45852         * posix/fork.c (__fork): Likewise.
45853         * posix/getegid.c (__getegid): Likewise.
45854         * posix/geteuid.c (__geteuid): Likewise.
45855         * posix/getgid.c (__getgid): Likewise.
45856         * posix/getpid.c (__getpid): Likewise.
45857         * posix/getppid.c (__getppid): Likewise.
45858         * posix/getuid.c (__getuid): Likewise.
45859         * posix/pause.c (pause): Likewise.
45860         * posix/setpgrp.c (setpgrp): Likewise.
45861         * posix/setsid.c (__setsid): Likewise.
45862         * posix/test-vfork.c (noop): Likewise.
45863         * resolv/gethnamaddr.c (_endhtent): Likewise.
45864         (_gethtent): Likewise.
45865         (ht_endhostent): Likewise.
45866         (gethostent): Likewise.
45867         (dns_service): Likewise.
45868         * stdlib/drand48.c (drand48): Likewise.
45869         * stdlib/lrand48.c (lrand48): Likewise.
45870         * stdlib/mrand48.c (mrand48): Likewise.
45871         * stdlib/rand.c (rand): Likewise.
45872         * stdlib/random.c (__random): Likewise.
45873         * stdlib/setenv.c (clearenv): Likewise.
45874         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45875         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45876         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45877         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45878         (__get_nprocs): Likewise.
45879         (__get_phys_pages): Likewise.
45880         (__get_avphys_pages): Likewise.
45881         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45882         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45883         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45884         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45885         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45886         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45887         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45888         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45889         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45890         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45891         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45892         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45893         * sysdeps/posix/clock.c (clock): Likewise.
45894         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45895         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45896         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45897         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45898         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45899         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45900         (__get_nprocs_conf): Likewise.
45901         (__get_phys_pages): Likewise.
45902         (__get_avphys_pages): Likewise.
45903         * time/clock.c (clock): Likewise.
45904         * time/tzset.c (__tzname_max): Likewise.
45905
45906 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45907
45908         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45909         (__bswap_32): Do not use "register".
45910         * crypt/crypt.c (_ufc_doit_r): Likewise.
45911         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45912         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45913         * gmon/gmon.c (__monstartup): Likewise.
45914         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45915         * hurd/hurdmalloc.c (more_memory): Likewise.
45916         (malloc): Likewise.
45917         (free): Likewise.
45918         (realloc): Likewise.
45919         (malloc_fork_prepare): Likewise.
45920         (malloc_fork_parent): Likewise.
45921         (malloc_fork_child): Likewise.
45922         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45923         (_svcauth_des): Likewise.
45924         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45925         * inet/inet_net.c (inet_network): Likewise.
45926         * inet/inet_netof.c (inet_netof): Likewise.
45927         * inet/rcmd.c (__validuser2_sa): Likewise.
45928         * io/fts.c (fts_open): Likewise.
45929         (fts_load): Likewise.
45930         (fts_close): Likewise.
45931         (fts_read): Likewise.
45932         (fts_children): Likewise.
45933         (fts_build): Likewise.
45934         (fts_stat): Likewise.
45935         (fts_sort): Likewise.
45936         (fts_alloc): Likewise.
45937         (fts_lfree): Likewise.
45938         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45939         (_IO_file_xsgetn): Likewise.
45940         (_IO_file_xsgetn_mmap): Likewise.
45941         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45942         (_IO_cookie_write): Likewise.
45943         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45944         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45945         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45946         * malloc/obstack.c (_obstack_begin): Likewise.
45947         (_obstack_begin_1): Likewise.
45948         (_obstack_newchunk): Likewise.
45949         (_obstack_allocated_p): Likewise.
45950         (obstack_free): Likewise.
45951         (_obstack_memory_used): Likewise.
45952         * misc/getttyent.c (getttynam): Likewise.
45953         (getttyent): Likewise.
45954         (skip): Likewise.
45955         (value): Likewise.
45956         * misc/getusershell.c (initshells): Likewise.
45957         * misc/syslog.c (__vsyslog_chk): Likewise.
45958         * misc/ttyslot.c (ttyslot): Likewise.
45959         * nis/nis_hash.c (__nis_hash): Likewise.
45960         * posix/fnmatch_loop.c (FCT): Likewise.
45961         * posix/getconf.c (print_all): Likewise.
45962         (main): Likewise.
45963         * posix/getopt.c (exchange): Likewise.
45964         * posix/glob.c (globfree): Likewise.
45965         (prefix_array): Likewise.
45966         (__glob_pattern_type): Likewise.
45967         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45968         (NS_GET32): Likewise.
45969         (NS_PUT16): Likewise.
45970         (NS_PUT32): Likewise.
45971         * resolv/gethnamaddr.c (getanswer): Likewise.
45972         (gethostbyname2): Likewise.
45973         (gethostbyaddr): Likewise.
45974         (_gethtent): Likewise.
45975         (_gethtbyname2): Likewise.
45976         (_gethtbyaddr): Likewise.
45977         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45978         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45979         * resolv/res_init.c (__res_vinit): Likewise.
45980         (net_mask): Likewise.
45981         * resolv/res_mkquery.c (outchar): Likewise.
45982         (PRINT): Likewise.
45983         * stdio-common/printf_fp.c (outchar): Likewise.
45984         (PRINT): Likewise.
45985         * stdio-common/printf_fphex.c (outchar): Likewise.
45986         (PRINT): Likewise.
45987         * stdio-common/printf_size.c (outchar): Likewise.
45988         (PRINT): Likewise.
45989         * stdio-common/test_rdwr.c (main): Likewise.
45990         * stdio-common/tfformat.c (matches): Likewise.
45991         * stdio-common/vfprintf.c (outchar): Likewise.
45992         (printf_unknown): Likewise.
45993         (buffered_vfprintf): Likewise.
45994         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45995         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45996         (ReadFile): Likewise.
45997         * stdlib/qsort.c (SWAP): Likewise.
45998         (_quicksort): Likewise.
45999         * stdlib/setenv.c (__add_to_environ): Likewise.
46000         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46001         * stdlib/strtol_l.c (__strtol_l): Likewise.
46002         * stdlib/tst-strtod.c (main): Likewise.
46003         * stdlib/tst-strtol.c (main): Likewise.
46004         * stdlib/tst-strtoll.c (main): Likewise.
46005         * string/bits/string2.h (__strcmp_cc): Likewise.
46006         (__strcmp_cg): Likewise.
46007         (__strcspn_c1): Likewise.
46008         (__strcspn_c2): Likewise.
46009         (__strcspn_c3): Likewise.
46010         (__strspn_c1): Likewise.
46011         (__strspn_c2): Likewise.
46012         (__strspn_c3): Likewise.
46013         (__strsep_1c): Likewise.
46014         (__strsep_2c): Likewise.
46015         (__strsep_3c): Likewise.
46016         * string/memccpy.c (__memccpy): Likewise.
46017         * string/stpcpy.c (__stpcpy): Likewise.
46018         * string/strcmp.c (strcmp): Likewise.
46019         * string/strrchr.c (strrchr): Likewise.
46020         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46021         Likewise.
46022         * sysdeps/mach/hurd/getcwd.c
46023         (_hurd_canonicalize_directory_name_internal): Likewise.
46024         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46025         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46026         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46027         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46028         Likewise, in both definitions.
46029         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46030         definitions.
46031         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46032         64] (__bswap_64): Likewise.
46033         * time/test_time.c (main): Likewise.
46034         * time/tzfile.c (__tzfile_read): Likewise.
46035         (__tzfile_compute): Likewise.
46036         * time/tzset.c (__tzset_parse_tz): Likewise.
46037         (tzset_internal): Likewise.
46038         (compute_change): Likewise.
46039         * wcsmbs/wcscat.c (__wcscat): Likewise.
46040         * wcsmbs/wcschr.c (wcschr): Likewise.
46041         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46042         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46043         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46044         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46045         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46046         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46047         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46048         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46049         * wcsmbs/wmemset.c (wmemset): Likewise.
46050
46051 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46052
46053         * scripts/config.guess: Update to version 2013-05-16.
46054         * scripts/config.sub: Update to version 2013-04-24.
46055         * scripts/install-sh: Update to version 2011-11-20.07.
46056         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46057         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46058
46059 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46060
46061         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46062         * elf/sln.c: Likewise.
46063         * hurd/hurd/ioctl.h: Likewise.
46064         * hurd/hurdmalloc.c: Likewise.
46065         * hurd/xattr.c: Likewise.
46066         * include/shlib-compat.h: Likewise.
46067         * inet/ruserpass.c: Likewise.
46068         * libio/iofgets_u.c: Likewise.
46069         * libio/iofgetws_u.c: Likewise.
46070         * locale/programs/ld-identification.c: Likewise.
46071         * locale/programs/ld-time.c: Likewise.
46072         * mach/msg-destroy.c: Likewise.
46073         * nss/nss_files/files-netgrp.c: Likewise.
46074         * resolv/res_data.c: Likewise.
46075         * soft-fp/op-1.h: Likewise.
46076         * soft-fp/op-2.h: Likewise.
46077         * soft-fp/op-4.h: Likewise.
46078         * soft-fp/op-common.h: Likewise.
46079         * stdio-common/printf_fphex.c: Likewise.
46080         * stdlib/strtod_l.c: Likewise.
46081         * sunrpc/rpc/clnt.h: Likewise.
46082         * sysdeps/generic/framestate.c: Likewise.
46083         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46084         * sysdeps/i386/bsd-setjmp.S: Likewise.
46085         * sysdeps/i386/__longjmp.S: Likewise.
46086         * sysdeps/i386/setjmp.S: Likewise.
46087         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46088         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46089         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46090         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46091         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46092         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46093         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46094         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46095         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46096         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46097         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46098         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46099         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46100         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46101         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46102         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46103         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46104         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46105         * sysdeps/ieee754/support.c: Likewise.
46106         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46107         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46108         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46109         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46110         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46111         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46112         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46113         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46114         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46115         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46116         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46117         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46118         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46119         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46120         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46121         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46122         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46124
46125 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46126
46127         * posix/transbug.c: Remove executable mode.
46128
46129 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46130
46131         * crypt/speeds.c: Remove trailing whitespace.
46132         * dlfcn/default.c: Likewise.
46133         * elf/ifuncdep2.c: Likewise.
46134         * elf/ifuncmain1.c: Likewise.
46135         * elf/ifuncmain1vis.c: Likewise.
46136         * elf/testobj.h: Likewise.
46137         * elf/tst-stackguard1.c: Likewise.
46138         * gmon/sys/gmon.h: Likewise.
46139         * hurd/hurdmsg.c: Likewise.
46140         * hurd/new-fd.c: Likewise.
46141         * hurd/ports-get.c: Likewise.
46142         * iconvdata/ibm1008_420.c: Likewise.
46143         * inet/tst-getni1.c: Likewise.
46144         * inet/tst-getni2.c: Likewise.
46145         * libio/ioungetc.c: Likewise.
46146         * libio/wfiledoalloc.c: Likewise.
46147         * manual/libm-err-tab.pl: Likewise.
46148         * math/w_dremf.c: Likewise.
46149         * misc/ftruncate.c: Likewise.
46150         * posix/bug-glob2.c: Likewise.
46151         * posix/tst-pcre.c: Likewise.
46152         * posix/wait4.c: Likewise.
46153         * resolv/README: Likewise.
46154         * resolv/res_debug.h: Likewise.
46155         * resolv/tst-inet_ntop.c: Likewise.
46156         * setjmp/bug269-setjmp.c: Likewise.
46157         * soft-fp/extended.h: Likewise.
46158         * soft-fp/op-1.h: Likewise.
46159         * soft-fp/op-2.h: Likewise.
46160         * soft-fp/op-4.h: Likewise.
46161         * soft-fp/op-8.h: Likewise.
46162         * soft-fp/testit.c: Likewise.
46163         * stdio-common/bug16.c: Likewise.
46164         * stdlib/random.c: Likewise.
46165         * sunrpc/rpcsvc/rquota.x: Likewise.
46166         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46167         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46168         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46169         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46170         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46171         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46172         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46173         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46174         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46175         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46176         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46177         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46178         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46179         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46180         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46181         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46182         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46183         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46184         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46185         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46186         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46187         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46188         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46189         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46190         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46191         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46192         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46193         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46194         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46195         * sysdeps/ieee754/s_lib_version.c: Likewise.
46196         * sysdeps/mach/hurd/check_fds.c: Likewise.
46197         * sysdeps/mach/hurd/getsockname.c: Likewise.
46198         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46199         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46200         * sysdeps/powerpc/bits/link.h: Likewise.
46201         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46202         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46203         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46204         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46205         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46206         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46207         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46208         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46209         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46210         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46211         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46212         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46213         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46214         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46215         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46216         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46217         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46218         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46219         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46220         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46221         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46222         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46223         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46224         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46225         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46226         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46227         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46228         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46229         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46230         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46231         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46232         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46233         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46234         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46235         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46236         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46237         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46238         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46239         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46240         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46241         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46242         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46243         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46244         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46245         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46246         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46247         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46248         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46249         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46250         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46251         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46252         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46253         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46254         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46255         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46256         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46257         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46258         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46259         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46260         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46261         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46262         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46263         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46264         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46265         * sysdeps/powerpc/sysdep.h: Likewise.
46266         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46267         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46268         * sysdeps/sh/dl-trampoline.S: Likewise.
46269         * sysdeps/sh/memset.S: Likewise.
46270         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46271         * sysdeps/sh/strlen.S: Likewise.
46272         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46273         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46274         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46275         * sysdeps/sparc/sparc32/rem.S: Likewise.
46276         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46277         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46278         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46279         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46280         * sysdeps/sparc/sparc32/urem.S: Likewise.
46281         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46282         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46283         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46284         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46285         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46286         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46287         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46288         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46289         * sysdeps/unix/bsd/times.c: Likewise.
46290         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46291         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46295         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46296         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46297         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46298         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46299         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46300         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46301         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46302         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46303         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46304         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46305         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46306         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46307         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46308         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46309         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46310         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46311         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46312         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46313         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46314         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46315         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46316         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46317         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46318         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46319         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46320         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46321         * sysdeps/x86_64/strcspn.S: Likewise.
46322
46323 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46324
46325         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46326         generated file.  Regenerate properly from gen-translit.pl.
46327         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46328         locale/C-translit.h.
46329
46330 2013-06-05  Andreas Schwab  <schwab@suse.de>
46331
46332         [BZ #15100]
46333         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46334         week as 6 instead of -1.
46335         * time/tst-strptime.c (day_tests): Add test case.
46336
46337 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46338
46339         * sysdeps/generic/math_private.h
46340         (libc_feholdexcept_setround_53bit): Replace with
46341         libc_feholdsetround_53bit.
46342         (libc_feupdateenv_53bit): Replace with
46343         libc_feresetround_53bit.
46344         (SET_RESTORE_ROUND_53BIT): Adjust.
46345
46346 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46347
46348         * string/test-strchrnul.c: Add copyright header.
46349
46350         * posix/tst-getaddrinfo4.c: Increase test timeout.
46351
46352 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46353
46354         [BZ #15536]
46355         * math/libm-test.inc (MAX_EXP): Remove
46356         (MIN_EXP): Define.
46357         (ulp): Use MIN_EXP - MANT_DIG.
46358         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46359
46360 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46361
46362         * po/be.po: Revert last change.
46363         * po/zh_CN.po: Likewise.
46364         * po/header.pot: Likewise.
46365
46366 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46367
46368         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46369         link-libc-deps to empty as target-specific variable.
46370         * Makerules (link-libc-args): New variable.
46371         (libc-for-link): Likewise.
46372         (link-libc-deps): Likewise.
46373         (lib%.so): Depend on $(link-libc-deps).  Link with
46374         $(link-libc-args).
46375         (build-module): Link with $(link-libc-args).
46376         (build-module-asneeded): Likewise.
46377         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46378         list of objects.
46379         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46380         target-specific variable.
46381         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46382         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46383         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46384         libc.
46385         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46386         libc and ld.so.
46387         ($(objpfx)libpcprofile.so): Likewise.
46388         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46389         libc_nonshared.a.
46390         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46391         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46392         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46393         $(link-libc-deps).
46394         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46395         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46396         * login/Makefile ($(objpfx)libutil.so): Likewise.
46397         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46398         * math/Makefile ($(objpfx)libm.so): Likewise.
46399         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46400         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46401         variable instead of depending directly on libc.
46402         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46403         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46404         $(link-libc-deps).
46405         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46406         libc.
46407         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46408         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46409         ($(objpfx)libanl.so): Likewise.
46410         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46411         ld.so.
46412         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46413         $(link-libc-deps).
46414         * sysdeps/i386/fpu/Makefile: Remove file.
46415         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46416         ($(objpfx)libm.so): Remove dependency on ld.so.
46417
46418 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46419
46420         [BZ # 15553]
46421         * nis/yp_xdr.c (XDRMAXNAME): Define.
46422         (XDRMAXRECORD): Define.
46423         (xdr_domainname): Use XDRMAXNAME.
46424         (xdr_mapname): Likewise.
46425         (xdr_peername): Likewise.
46426         (xdr_keydat): Use XDRMAXRECORD.
46427         (xdr_valdat): Likewise.
46428
46429 2013-05-30  Jeff Law  <law@redhat.com>
46430
46431         [BZ #14256]
46432         * manual/errno.texi (ESTALE): Update to account for more than
46433         just NFS file systems.
46434         * sysdeps/gnu/errlist.c: Regenerated.
46435
46436 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46437
46438         [BZ #15465]
46439         * elf/Makefile (tests): Add tst-null-argv.
46440         (modules-names):  Add tst-null-argv-lib.
46441         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46442         (tst-null-argv-ENV): Set environment for tst-null-argv.
46443         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46444         (RTLD_PROGNAME): New macro.
46445         * elf/tst-null-argv.c: New test case.
46446         * elf/tst-null-argv-lib.c: Library for test case.
46447         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46448         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46449         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46450         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46451         * elf/dl-init.c (call_init): Likewise.
46452         (_dl_init): Likewise.
46453         * elf/dl-load.c (print_search_path): Likewise.
46454         (_dl_map_object): Likewise.
46455         * elf/dl-lookup.c (do_lookup_x): Likewise.
46456         (add_dependency): Likewise.
46457         (_dl_lookup_symbol_x): Likewise.
46458         (_dl_debug_bindings): Likewise.
46459         * elf/dl-open.c (_dl_show_scope): Likewise.
46460         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46461         * elf/dl-version.c (match_symbol): Likewise.
46462         (_dl_check_map_versions): Likewise.
46463         * elf/rtld.c (dl_main): Likewise.
46464         (print_unresolved): Use RTLD_PROGNAME.
46465         (print_missing_version): Likewise.
46466         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46467         (elf_machine_rela): Likewise.
46468         * sysdeps/powerpc/powerpc32/dl-machine.c
46469         (__process_machine_rela): Likewise.
46470         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46471         Likewise.
46472         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46473         Likewise.
46474         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46475         Likewise.
46476         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46477         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46478         Likewise.
46479         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46480         Likewise.
46481         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46482
46483 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46484
46485         * po/be.po: Add descriptive title.
46486         * po/zh_CN.po: Likewise.
46487         * po/header.pot: Likewise.
46488
46489 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46490
46491         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46492         error message.
46493         (enlarge_archive): Likewise.
46494
46495 2013-05-28  Ben North  <ben@redfrontdoor.org>
46496
46497         * manual/arith.texi (frexp): It is the magnitude of the return
46498         value which lies in [0.5, 1), not the return value itself.
46499
46500 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46501
46502         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46503
46504 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46505
46506         * stdio-common/bug26.c (main): Correct fscanf template.
46507
46508         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46509         declare _dl_skip_args.
46510
46511         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46512         Don't declare.
46513
46514         * manual/platform.texi: Add missing @end deftypefun.
46515
46516 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46517
46518         [BZ #15529]
46519         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46520         bit of mantissa of 2^16382.
46521         * math/libm-test.inc (hypot_test_data): Add more tests.
46522
46523         * math/libm-test.inc: Add drem and pow10 to list of tested
46524         functions.
46525         (pow10_test): New function.
46526         (drem_test): Likewise.
46527         (drem_test_tonearest): Likewise.
46528         (drem_test_towardzero): Likewise.
46529         (drem_test_downward): Likewise.
46530         (drem_test_upward): Likewise.
46531         (main): Call the new functions.
46532
46533         * math/libm-test.inc (finite_test_data): Remove.
46534         (finite_test): Run tests from isfinite_test_data.
46535         (gamma_test_data): Remove.
46536         (gamma_test): Run tests from lgamma_test_data.
46537         * sysdeps/i386/fpu/libm-test-ulps: Update.
46538         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46539
46540 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46541
46542         * manual/platform.texi: Add PowerPC PPR function set documentation.
46543         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46544         implementation.
46545
46546 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46547
46548         * math/libm-test.inc (MAX_EXP): Define.
46549         (ULPDIFF): Define.
46550         (ulp): New function.
46551         (check_float_internal): Use ULPDIFF.
46552         (cpow_test): Disable failing test.
46553         (check_ulp): Test ulp() implemetnation.
46554         (main): Call check_ulp before starting tests.
46555
46556 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46557
46558         * math/gen-libm-test.pl (generate_testfile): Do not handle
46559         START_DATA and END_DATA.
46560         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46561         END_DATA.
46562         (acos_tonearest_test_data): Likewise.
46563         (acos_towardzero_test_data): Likewise.
46564         (acos_downward_test_data): Likewise.
46565         (acos_upward_test_data): Likewise.
46566         (acosh_test_data): Likewise.
46567         (asin_test_data): Likewise.
46568         (asin_tonearest_test_data): Likewise.
46569         (asin_towardzero_test_data): Likewise.
46570         (asin_downward_test_data): Likewise.
46571         (asin_upward_test_data): Likewise.
46572         (asinh_test_data): Likewise.
46573         (atan_test_data): Likewise.
46574         (atanh_test_data): Likewise.
46575         (atan2_test_data): Likewise.
46576         (cabs_test_data): Likewise.
46577         (cacos_test_data): Likewise.
46578         (cacosh_test_data): Likewise.
46579         (carg_test_data): Likewise.
46580         (casin_test_data): Likewise.
46581         (casinh_test_data): Likewise.
46582         (catan_test_data): Likewise.
46583         (catanh_test_data): Likewise.
46584         (cbrt_test_data): Likewise.
46585         (ccos_test_data): Likewise.
46586         (ccosh_test_data): Likewise.
46587         (ceil_test_data): Likewise.
46588         (cexp_test_data): Likewise.
46589         (cimag_test_data): Likewise.
46590         (clog_test_data): Likewise.
46591         (clog10_test_data): Likewise.
46592         (conj_test_data): Likewise.
46593         (copysign_test_data): Likewise.
46594         (cos_test_data): Likewise.
46595         (cos_tonearest_test_data): Likewise.
46596         (cos_towardzero_test_data): Likewise.
46597         (cos_downward_test_data): Likewise.
46598         (cos_upward_test_data): Likewise.
46599         (cosh_test_data): Likewise.
46600         (cosh_tonearest_test_data): Likewise.
46601         (cosh_towardzero_test_data): Likewise.
46602         (cosh_downward_test_data): Likewise.
46603         (cosh_upward_test_data): Likewise.
46604         (cpow_test_data): Likewise.
46605         (cproj_test_data): Likewise.
46606         (creal_test_data): Likewise.
46607         (csin_test_data): Likewise.
46608         (csinh_test_data): Likewise.
46609         (csqrt_test_data): Likewise.
46610         (ctan_test_data): Likewise.
46611         (ctan_tonearest_test_data): Likewise.
46612         (ctan_towardzero_test_data): Likewise.
46613         (ctan_downward_test_data): Likewise.
46614         (ctan_upward_test_data): Likewise.
46615         (ctanh_test_data): Likewise.
46616         (ctanh_tonearest_test_data): Likewise.
46617         (ctanh_towardzero_test_data): Likewise.
46618         (ctanh_downward_test_data): Likewise.
46619         (ctanh_upward_test_data): Likewise.
46620         (erf_test_data): Likewise.
46621         (erfc_test_data): Likewise.
46622         (exp_test_data): Likewise.
46623         (exp_tonearest_test_data): Likewise.
46624         (exp_towardzero_test_data): Likewise.
46625         (exp_downward_test_data): Likewise.
46626         (exp_upward_test_data): Likewise.
46627         (exp10_test_data): Likewise.
46628         (exp2_test_data): Likewise.
46629         (expm1_test_data): Likewise.
46630         (fabs_test_data): Likewise.
46631         (fdim_test_data): Likewise.
46632         (finite_test_data): Likewise.
46633         (floor_test_data): Likewise.
46634         (fma_test_data): Likewise.
46635         (fma_towardzero_test_data): Likewise.
46636         (fma_downward_test_data): Likewise.
46637         (fma_upward_test_data): Likewise.
46638         (fmax_test_data): Likewise.
46639         (fmin_test_data): Likewise.
46640         (fmod_test_data): Likewise.
46641         (fpclassify_test_data): Likewise.
46642         (frexp_test_data): Likewise.
46643         (gamma_test_data): Likewise.
46644         (hypot_test_data): Likewise.
46645         (ilogb_test_data): Likewise.
46646         (isfinite_test_data): Likewise.
46647         (isgreater_test_data): Likewise.
46648         (isgreaterequal_test_data): Likewise.
46649         (isinf_test_data): Likewise.
46650         (isless_test_data): Likewise.
46651         (islessequal_test_data): Likewise.
46652         (islessgreater_test_data): Likewise.
46653         (isnan_test_data): Likewise.
46654         (isnormal_test_data): Likewise.
46655         (issignaling_test_data): Likewise.
46656         (isunordered_test_data): Likewise.
46657         (j0_test_data): Likewise.
46658         (j1_test_data): Likewise.
46659         (jn_test_data): Likewise.
46660         (ldexp_test_data): Likewise.
46661         (lgamma_test_data): Likewise.
46662         (lrint_test_data): Likewise.
46663         (lrint_tonearest_test_data): Likewise.
46664         (lrint_towardzero_test_data): Likewise.
46665         (lrint_downward_test_data): Likewise.
46666         (lrint_upward_test_data): Likewise.
46667         (llrint_test_data): Likewise.
46668         (llrint_tonearest_test_data): Likewise.
46669         (llrint_towardzero_test_data): Likewise.
46670         (llrint_downward_test_data): Likewise.
46671         (llrint_upward_test_data): Likewise.
46672         (log_test_data): Likewise.
46673         (log10_test_data): Likewise.
46674         (log1p_test_data): Likewise.
46675         (log2_test_data): Likewise.
46676         (logb_test_data): Likewise.
46677         (logb_downward_test_data): Likewise.
46678         (lround_test_data): Likewise.
46679         (llround_test_data): Likewise.
46680         (modf_test_data): Likewise.
46681         (nearbyint_test_data): Likewise.
46682         (nextafter_test_data): Likewise.
46683         (nexttoward_test_data): Likewise.
46684         (pow_test_data): Likewise.
46685         (pow_tonearest_test_data): Likewise.
46686         (pow_towardzero_test_data): Likewise.
46687         (pow_downward_test_data): Likewise.
46688         (pow_upward_test_data): Likewise.
46689         (remainder_test_data): Likewise.
46690         (remainder_tonearest_test_data): Likewise.
46691         (remainder_towardzero_test_data): Likewise.
46692         (remainder_downward_test_data): Likewise.
46693         (remainder_upward_test_data): Likewise.
46694         (remquo_test_data): Likewise.
46695         (rint_test_data): Likewise.
46696         (rint_tonearest_test_data): Likewise.
46697         (rint_towardzero_test_data): Likewise.
46698         (rint_downward_test_data): Likewise.
46699         (rint_upward_test_data): Likewise.
46700         (round_test_data): Likewise.
46701         (scalb_test_data): Likewise.
46702         (scalbn_test_data): Likewise.
46703         (scalbln_test_data): Likewise.
46704         (signbit_test_data): Likewise.
46705         (sin_test_data): Likewise.
46706         (sin_tonearest_test_data): Likewise.
46707         (sin_towardzero_test_data): Likewise.
46708         (sin_downward_test_data): Likewise.
46709         (sin_upward_test_data): Likewise.
46710         (sincos_test_data): Likewise.
46711         (sinh_test_data): Likewise.
46712         (sinh_tonearest_test_data): Likewise.
46713         (sinh_towardzero_test_data): Likewise.
46714         (sinh_downward_test_data): Likewise.
46715         (sinh_upward_test_data): Likewise.
46716         (sqrt_test_data): Likewise.
46717         (tan_test_data): Likewise.
46718         (tan_tonearest_test_data): Likewise.
46719         (tan_towardzero_test_data): Likewise.
46720         (tan_downward_test_data): Likewise.
46721         (tan_upward_test_data): Likewise.
46722         (tanh_test_data): Likewise.
46723         (tgamma_test_data): Likewise.
46724         (trunc_test_data): Likewise.
46725         (y0_test_data): Likewise.
46726         (y1_test_data): Likewise.
46727         (yn_test_data): Likewise.
46728         (significand_test_data): Likewise.
46729
46730         * math/gen-libm-test.pl (@functions): Remove variable.
46731         (generate_testfile): Don't handle START and END lines.
46732         * math/libm-test.inc (START): New macro.
46733         (END): Likewise.
46734         (END_COMPLEX): Likewise.
46735         (acos_test): Use END macro without arguments.
46736         (acos_test_tonearest): Likewise.
46737         (acos_test_towardzero): Likewise.
46738         (acos_test_downward): Likewise.
46739         (acos_test_upward): Likewise.
46740         (acosh_test): Likewise.
46741         (asin_test): Likewise.
46742         (asin_test_tonearest): Likewise.
46743         (asin_test_towardzero): Likewise.
46744         (asin_test_downward): Likewise.
46745         (asin_test_upward): Likewise.
46746         (asinh_test): Likewise.
46747         (atan_test): Likewise.
46748         (atanh_test): Likewise.
46749         (atan2_test): Likewise.
46750         (cabs_test): Likewise.
46751         (cacos_test): Use END_COMPLEX macro without arguments.
46752         (cacosh_test): Likewise.
46753         (carg_test): Use END macro without arguments.
46754         (casin_test): Use END_COMPLEX macro without arguments.
46755         (casinh_test): Likewise.
46756         (catan_test): Likewise.
46757         (catanh_test): Likewise.
46758         (cbrt_test): Use END macro without arguments.
46759         (ccos_test): Use END_COMPLEX macro without arguments.
46760         (ccosh_test): Likewise.
46761         (ceil_test): Use END macro without arguments.
46762         (cexp_test): Use END_COMPLEX macro without arguments.
46763         (cimag_test): Use END macro without arguments.
46764         (clog_test): Use END_COMPLEX macro without arguments.
46765         (clog10_test): Likewise.
46766         (conj_test): Likewise.
46767         (copysign_test): Use END macro without arguments.
46768         (cos_test): Likewise.
46769         (cos_test_tonearest): Likewise.
46770         (cos_test_towardzero): Likewise.
46771         (cos_test_downward): Likewise.
46772         (cos_test_upward): Likewise.
46773         (cosh_test): Likewise.
46774         (cosh_test_tonearest): Likewise.
46775         (cosh_test_towardzero): Likewise.
46776         (cosh_test_downward): Likewise.
46777         (cosh_test_upward): Likewise.
46778         (cpow_test): Use END_COMPLEX macro without arguments.
46779         (cproj_test): Likewise.
46780         (creal_test): Use END macro without arguments.
46781         (csin_test): Use END_COMPLEX macro without arguments.
46782         (csinh_test): Likewise.
46783         (csqrt_test): Likewise.
46784         (ctan_test): Likewise.
46785         (ctan_test_tonearest): Likewise.
46786         (ctan_test_towardzero): Likewise.
46787         (ctan_test_downward): Likewise.
46788         (ctan_test_upward): Likewise.
46789         (ctanh_test): Likewise.
46790         (ctanh_test_tonearest): Likewise.
46791         (ctanh_test_towardzero): Likewise.
46792         (ctanh_test_downward): Likewise.
46793         (ctanh_test_upward): Likewise.
46794         (erf_test): Use END macro without arguments.
46795         (erfc_test): Likewise.
46796         (exp_test): Likewise.
46797         (exp_test_tonearest): Likewise.
46798         (exp_test_towardzero): Likewise.
46799         (exp_test_downward): Likewise.
46800         (exp_test_upward): Likewise.
46801         (exp10_test): Likewise.
46802         (exp2_test): Likewise.
46803         (expm1_test): Likewise.
46804         (fabs_test): Likewise.
46805         (fdim_test): Likewise.
46806         (finite_test): Likewise.
46807         (floor_test): Likewise.
46808         (fma_test): Likewise.
46809         (fma_test_towardzero): Likewise.
46810         (fma_test_downward): Likewise.
46811         (fma_test_upward): Likewise.
46812         (fmax_test): Likewise.
46813         (fmin_test): Likewise.
46814         (fmod_test): Likewise.
46815         (fpclassify_test): Likewise.
46816         (frexp_test): Likewise.
46817         (gamma_test): Likewise.
46818         (hypot_test): Likewise.
46819         (ilogb_test): Likewise.
46820         (isfinite_test): Likewise.
46821         (isgreater_test): Likewise.
46822         (isgreaterequal_test): Likewise.
46823         (isinf_test): Likewise.
46824         (isless_test): Likewise.
46825         (islessequal_test): Likewise.
46826         (islessgreater_test): Likewise.
46827         (isnan_test): Likewise.
46828         (isnormal_test): Likewise.
46829         (issignaling_test): Likewise.
46830         (isunordered_test): Likewise.
46831         (j0_test): Likewise.
46832         (j1_test): Likewise.
46833         (jn_test): Likewise.
46834         (ldexp_test): Likewise.
46835         (lgamma_test): Likewise.
46836         (lrint_test): Likewise.
46837         (lrint_test_tonearest): Likewise.
46838         (lrint_test_towardzero): Likewise.
46839         (lrint_test_downward): Likewise.
46840         (lrint_test_upward): Likewise.
46841         (llrint_test): Likewise.
46842         (llrint_test_tonearest): Likewise.
46843         (llrint_test_towardzero): Likewise.
46844         (llrint_test_downward): Likewise.
46845         (llrint_test_upward): Likewise.
46846         (log_test): Likewise.
46847         (log10_test): Likewise.
46848         (log1p_test): Likewise.
46849         (log2_test): Likewise.
46850         (logb_test): Likewise.
46851         (logb_test_downward): Likewise.
46852         (lround_test): Likewise.
46853         (llround_test): Likewise.
46854         (modf_test): Likewise.
46855         (nearbyint_test): Likewise.
46856         (nextafter_test): Likewise.
46857         (nexttoward_test): Likewise.
46858         (pow_test): Likewise.
46859         (pow_test_tonearest): Likewise.
46860         (pow_test_towardzero): Likewise.
46861         (pow_test_downward): Likewise.
46862         (pow_test_upward): Likewise.
46863         (remainder_test): Likewise.
46864         (remainder_test_tonearest): Likewise.
46865         (remainder_test_towardzero): Likewise.
46866         (remainder_test_downward): Likewise.
46867         (remainder_test_upward): Likewise.
46868         (remquo_test): Likewise.
46869         (rint_test): Likewise.
46870         (rint_test_tonearest): Likewise.
46871         (rint_test_towardzero): Likewise.
46872         (rint_test_downward): Likewise.
46873         (rint_test_upward): Likewise.
46874         (round_test): Likewise.
46875         (scalb_test): Likewise.
46876         (scalbn_test): Likewise.
46877         (scalbln_test): Likewise.
46878         (signbit_test): Likewise.
46879         (sin_test): Likewise.
46880         (sin_test_tonearest): Likewise.
46881         (sin_test_towardzero): Likewise.
46882         (sin_test_downward): Likewise.
46883         (sin_test_upward): Likewise.
46884         (sincos_test): Likewise.
46885         (sinh_test): Likewise.
46886         (sinh_test_tonearest): Likewise.
46887         (sinh_test_towardzero): Likewise.
46888         (sinh_test_downward): Likewise.
46889         (sinh_test_upward): Likewise.
46890         (sqrt_test): Likewise.
46891         (tan_test): Likewise.
46892         (tan_test_tonearest): Likewise.
46893         (tan_test_towardzero): Likewise.
46894         (tan_test_downward): Likewise.
46895         (tan_test_upward): Likewise.
46896         (tanh_test): Likewise.
46897         (tgamma_test): Likewise.
46898         (trunc_test): Likewise.
46899         (y0_test): Likewise.
46900         (y1_test): Likewise.
46901         (yn_test): Likewise.
46902         (significand_test): Likewise.
46903
46904 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46905
46906         [BZ #15381]
46907         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46908
46909 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46910
46911         [BZ #14894]
46912         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46913         __ppc_mdoio and __ppc_mdoom.
46914         * manual/platform.texi: Document new functions __ppc_yield,
46915         __ppc_mdoio and __ppc_mdoom.
46916
46917 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46918
46919         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46920         (main): Mention "tls" pseudo-hwcap is legacy.
46921         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46922
46923 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46924
46925         * math/gen-libm-test.pl (parse_args): Output only string of
46926         arguments as text for test name, not full call or descriptions of
46927         tests for extra outputs.
46928         (generate_testfile): Do not pass function name to parse_args.
46929         Generate this_func variable from START.
46930         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46931         field to arg_str.
46932         (struct test_ff_f_data): Likewise.
46933         (test_ff_f_data_nexttoward): Likewise.
46934         (struct test_fi_f_data): Likewise.
46935         (struct test_fl_f_data): Likewise.
46936         (struct test_if_f_data): Likewise.
46937         (struct test_fff_f_data): Likewise.
46938         (struct test_c_f_data): Likewise.
46939         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46940         (struct test_fF_f1_data): Likewise.
46941         (struct test_ffI_f1_data): Likewise.
46942         (struct test_c_c_data): Rename test_name field to arg_str.
46943         (struct test_cc_c_data): Likewise.
46944         (struct test_f_i_data): Likewise.
46945         (struct test_ff_i_data): Likewise.
46946         (struct test_f_l_data): Likewise.
46947         (struct test_f_L_data): Likewise.
46948         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46949         and extra2_name.
46950         (COMMON_TEST_SETUP): New macro.
46951         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46952         (COMMON_TEST_CLEANUP): Likewise.
46953         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46954         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46955         macros.
46956         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46957         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46958         macros.
46959         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46960         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46961         cleanup macros.
46962         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46963         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46964         macros.
46965         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46966         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46967         macros.
46968         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46969         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46970         cleanup macros.
46971         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46972         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46973         cleanup macros.
46974         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46975         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46976         cleanup macros.
46977         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46978         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46979         macros.
46980         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46981         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46982         macros.
46983         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46984         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46985         macros.
46986         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46987         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46988         cleanup macros.
46989         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46990         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46991         cleanup macros.
46992         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46993         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46994         macros.
46995         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46996         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46997         cleanup macros.
46998         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46999         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47000         macros.
47001         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47002         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47003         macros.
47004         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47005         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47006         cleanup macros.
47007         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47008
47009 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47010
47011         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47012         to _sifields.sigfault.
47013         (si_addr_lsb): Define new macro.
47014         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47015         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47016         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47017
47018 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47019
47020         [BZ #15441]
47021         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47022         returns -1.
47023         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47024         null return -1.
47025         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47026         loading the domain.
47027
47028 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47029
47030         * math/gen-libm-test.pl (parse_args): Do not include expected
47031         result in test name.
47032         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47033         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47034         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47035         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47036         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47038
47039 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47040
47041         * benchtests/Makefile: Sort function entries.
47042
47043         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47044         tanh, asinh, acosh, atanh.
47045         * benchtests/acos-inputs: New file.
47046         * benchtests/acosh-inputs: New file.
47047         * benchtests/asin-inputs: New file.
47048         * benchtests/asinh-inputs: New file.
47049         * benchtests/atanh-inputs: New file.
47050         * benchtests/cosh-inputs: New file.
47051         * benchtests/log-inputs: New file.
47052         * benchtests/sinh-inputs: New file.
47053         * benchtests/tanh-inputs: New file.
47054
47055 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47056
47057         [BZ #15339]
47058         * posix/tst-getaddrinfo4.c: New test.
47059         * posix/Makefile (tests): Add it.
47060
47061 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47062
47063         [BZ #15339]
47064         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47065         when no services were used.
47066         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47067         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47068
47069 2013-05-21  Andreas Schwab  <schwab@suse.de>
47070
47071         [BZ #15014]
47072         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47073         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47074         successful.
47075         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47076         redundant variable declarations and reallocation of buffer when
47077         parsing as IPv6 address.  Always set NSS status when called from
47078         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47079         buffer too small.  Correct computation of needed size.
47080         * nss/Makefile (tests): Add test-digits-dots.
47081         * nss/test-digits-dots.c: New test.
47082
47083 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47084
47085         * benchtests/Makefile: Remove instructions for adding
47086         benchmark tests.
47087         * benchtests/README: New file to explain how to execute and
47088         enhance the benchmark tests.
47089
47090 2013-05-21  Andreas Schwab  <schwab@suse.de>
47091
47092         [BZ #15493]
47093         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47094         * setjmp/tst-sigsetjmp.c: New test.
47095
47096 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47097
47098         * sysdeps/x86_64/memset.S (memset): New implementation.
47099         (__bzero): Likewise.
47100         (__memset_tail): New function.
47101
47102 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47103
47104         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47105         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47106         __memcpy_sse2_unaligned ifunc selection.
47107         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47108         Add memcpy-sse2-unaligned.S.
47109         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47110         Add: __memcpy_sse2_unaligned.
47111
47112 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47113
47114         [BZ #15490]
47115         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47116         math_force_eval before restoring floating-point envrionment.
47117         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47118         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47119         Likewise.
47120         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47121         <math_private.h>.
47122         (__nearbyintl): Use math_force_eval before restoring
47123         floating-point environment.
47124         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47125
47126         * math/gen-libm-test.pl (special_functions): Remove.
47127         (parse_args): Don't handle TEST_extra.  Handle functions with no
47128         return value.
47129         * math/libm-test.inc (struct test_sincos_data): Replace with
47130         struct test_fFF_11_data.
47131         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47132         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47133         (sincos_test_data): Change element type to struct
47134         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47135         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47136         RUN_TEST_LOOP_sincos.
47137         * math/README.libm-test: Don't mention special handling of
47138         individual functions.
47139         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47140         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47141         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47142         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47143         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47145
47146         * math/gen-libm-test.pl (get_variable): Remove function.
47147         (parse_args): Don't show pointer parameters to call in test
47148         names.  Use "extra output N" in test names for extra outputs
47149         rather than naming variables.
47150
47151 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47152
47153         [BZ #15488]
47154         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47155         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47156         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47157         double tests.
47158         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47159         disable.
47160         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47161         check_long_double.
47162
47163         * math/gen-libm-test.pl (@tests): Remove variable.
47164         ($count): Likewise.
47165         (new_test): Remove function.
47166         (show_exceptions): New function.
47167         (special_functions): Use show_exceptions instead of new_test.
47168         (parse_args): Likewise.
47169         (generate_testfile): Pass only function name in generated call to
47170         print_max_error or print_complex_max_error.
47171         (get_ulps): Do not handle complex tests specially.
47172         (output_test): Rename to ...
47173         (get_all_ulps_for_test): ... this.  Return a string rather than
47174         printing to a file.  Require ulps to be present.
47175         (output_ulps): Generate arrays rather than #defines.
47176         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47177         (struct ulp_data): New type.
47178         (BUILD_COMPLEX_ULP): Remove macro.
47179         (compare_ulp_data): New function.
47180         (find_ulps): Likewise.
47181         (find_test_ulps): Likewise.
47182         (find_function_ulps): Likewise.
47183         (find_complex_function_ulps): Likewise.
47184         (print_max_error): Determine allowed ulps using
47185         find_function_ulps.
47186         (print_complex_max_error): Determine allowed ulps using
47187         find_complex_function_ulps.
47188         (check_float_internal): Determine max ulps using find_test_ulps.
47189         (check_float): Do not take max_ulp parameter.  Update call to
47190         check_float_internal.
47191         (check_complex): Likewise.
47192         (check_int): Do not take max_ulp parameter.
47193         (check_long): Likewise.
47194         (check_bool): Likewise.
47195         (check_longlong): Likewise.
47196         (struct test_f_f_data): Remove max_ulp field.
47197         (struct test_ff_f_data): Likewise.
47198         (struct test_ff_f_data_nexttoward): Likewise.
47199         (struct test_fi_f_data): Likewise.
47200         (struct test_fl_f_data): Likewise.
47201         (struct test_if_f_data): Likewise.
47202         (struct test_fff_f_data): Likewise.
47203         (struct test_c_f_data): Likewise.
47204         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47205         (struct test_fF_f1_data): Likewise.
47206         (struct test_ffI_f1_data): Likewise.
47207         (struct test_c_c_data): Remove max_ulp field.
47208         (struct test_cc_c_data): Likewise.
47209         (struct test_f_i_data): Likewise.
47210         (struct test_ff_i_data): Likewise.
47211         (struct test_f_l_data): Likewise.
47212         (struct test_f_L_data): Likewise.
47213         (struct test_sincos_data): Likewise.
47214         (RUN_TEST_f_f): Do not handle ulps.
47215         (RUN_TEST_LOOP_f_f): Likewise.
47216         (RUN_TEST_2_f): Likewise.
47217         (RUN_TEST_LOOP_2_f): Likewise.
47218         (RUN_TEST_fff_f): Likewise.
47219         (RUN_TEST_LOOP_fff_f): Likewise.
47220         (RUN_TEST_c_f): Likewise.
47221         (RUN_TEST_LOOP_c_f): Likewise.
47222         (RUN_TEST_f_f1): Likewise.
47223         (RUN_TEST_LOOP_f_f1): Likewise.
47224         (RUN_TEST_fF_f1): Likewise.
47225         (RUN_TEST_LOOP_fF_f1): Likewise.
47226         (RUN_TEST_fI_f1): Likewise.
47227         (RUN_TEST_LOOP_fI_f1): Likewise.
47228         (RUN_TEST_ffI_f1): Likewise.
47229         (RUN_TEST_LOOP_ffI_f1): Likewise.
47230         (RUN_TEST_c_c): Likewise.
47231         (RUN_TEST_LOOP_c_c): Likewise.
47232         (RUN_TEST_cc_c): Likewise.
47233         (RUN_TEST_LOOP_cc_c): Likewise.
47234         (RUN_TEST_f_i): Likewise.
47235         (RUN_TEST_LOOP_f_i): Likewise.
47236         (RUN_TEST_f_i_tg): Likewise.
47237         (RUN_TEST_LOOP_f_i_tg): Likewise.
47238         (RUN_TEST_ff_i_tg): Likewise.
47239         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47240         (RUN_TEST_f_b): Likewise.
47241         (RUN_TEST_LOOP_f_b): Likewise.
47242         (RUN_TEST_f_b_tg): Likewise.
47243         (RUN_TEST_LOOP_f_b_tg): Likewise.
47244         (RUN_TEST_f_l): Likewise.
47245         (RUN_TEST_LOOP_f_l): Likewise.
47246         (RUN_TEST_f_L): Likewise.
47247         (RUN_TEST_LOOP_f_L): Likewise.
47248         (RUN_TEST_sincos): Likewise.
47249         (RUN_TEST_LOOP_sincos): Likewise.
47250
47251 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47252
47253         [BZ #15480]
47254         [BZ #15485]
47255         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47256         main case of finite arguments, set rounding mode to FE_TONEAREST
47257         and discard exceptions.
47258         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47259         exceptions.
47260         (remainder_tonearest_test_data): New variable.
47261         (remainder_test_tonearest): New function.
47262         (remainder_towardzero_test_data): New variable.
47263         (remainder_test_towardzero): New function.
47264         (remainder_downward_test_data): New variable.
47265         (remainder_test_downward): New function.
47266         (remainder_upward_test_data): New variable.
47267         (remainder_test_upward): New function.
47268         (main): Call the new test functions.
47269
47270         * math/libm-test.inc (struct test_f_f1_data): Remove field
47271         extra_init.
47272         (struct test_fF_f1_data): Likewise.
47273         (struct test_ffI_f1_data): Likewise.
47274         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47275         based on value of EXTRA_EXPECTED.
47276         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47277         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47278         EXTRA_VAR based on value of EXTRA_EXPECTED.
47279         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47280         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47281         EXTRA_VAR based on value of EXTRA_EXPECTED.
47282         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47283         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47284         EXTRA_VAR based on value of EXTRA_EXPECTED.
47285         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47286         * math/gen-libm-test.pl (parse_args): Don't output initializers
47287         for extra output values.
47288
47289         * math/libm-test.inc (check_int): Expect result to be exactly
47290         equal to expected value and do not handle ulps.
47291         (check_long): Likewise.
47292         (check_longlong): Likewise.
47293
47294         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47295         exceptions.
47296         (cimag_test_data): Likewise.
47297         (conj_test_data): Likewise.
47298         (copysign_test_data): Likewise.
47299         (cproj_test_data): Likewise.
47300         (creal_test_data): Likewise.
47301         (fabs_test_data): Likewise.
47302         (fdim_test_data): Likewise.
47303         (finite_test_data): Likewise.
47304         (floor_test_data): Likewise.
47305         (fmax_test_data): Likewise.
47306         (fmin_test_data): Likewise.
47307         (fmod_test_data): Likewise.
47308         (fpclassify_test_data): Likewise.
47309         (frexp_test_data): Likewise.
47310         (ilogb_test_data): Likewise.
47311         (isfinite_test_data): Likewise.
47312         (isgreater_test_data): Likewise.
47313         (isgreaterequal_test_data): Likewise.
47314         (isinf_test_data): Likewise.
47315         (isless_test_data): Likewise.
47316         (islessequal_test_data): Likewise.
47317         (islessgreater_test_data): Likewise.
47318         (isnan_test_data): Likewise.
47319         (isnormal_test_data): Likewise.
47320         (issignaling_test_data): Likewise.
47321         (isunordered_test_data): Likewise.
47322         (ldexp_test_data): Likewise.
47323         (lrint_test_data): Likewise.
47324         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47325         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47326         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47327         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47328         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47329         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47330         test input.
47331         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47332         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47333         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47334         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47335         that test input.
47336         (lrint_downward_test_data): Test for "inexact" exceptions.
47337         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47338         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47339         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47340         test input.
47341         (lrint_upward_test_data): Test for "inexact" exceptions.
47342         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47343         test input.
47344         (llrint_test_data): Test for "inexact" exceptions.
47345         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47346         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47347         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47348         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47349         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47350         (llrint_downward_test_data): Test for "inexact" exceptions.
47351         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47352         (llrint_upward_test_data): Test for "inexact" exceptions.
47353         (logb_test_data): Likewise.
47354         (logb_downward_test_data): Likewise.
47355         (nextafter_test_data): Likewise.
47356         (nexttoward_test_data): Likewise.
47357         (remainder_test_data): Likewise.
47358         (remquo_test_data): Likewise.
47359         (scalbn_test_data): Likewise.
47360         (scalbln_test_data): Likewise.
47361         (signbit_test_data): Likewise.
47362         (sqrt_test_data): Likewise.
47363         (significand_test_data): Likewise.
47364
47365 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47366
47367         [BZ #15424]
47368         * benchtests/bench-modf.c (struct args): Mark arg0 as
47369         volatile.
47370         * scripts/bench.pl: Mark members of struct args as volatile.
47371
47372 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47373
47374         [BZ # 15497]
47375         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47376         negative infinity on POWER6 or lower.
47377         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47378
47379 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47380
47381         [BZ #15442]
47382         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47383         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47384         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47385         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47386         (_FP_SETQNAN): New macro.
47387         (_FP_SETQNAN_SEMIRAW): Likewise.
47388         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47389         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47390         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47391         (FP_EXTEND): Use _FP_FRAC_SNANP.
47392         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47393         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47394         into account.
47395         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47396         New macro.
47397         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47398         Likewise.
47399
47400 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47401
47402         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47403         with DIVIDE_BY_ZERO_EXCEPTION.
47404         (gamma_test_data): Likewise.
47405         (lgamma_test_data): Likewise.
47406         (log_test_data): Likewise.
47407         (log10_test_data): Likewise.
47408         (log2_test_data): Likewise.
47409         (tgamma_test_data): Likewise.
47410
47411         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47412         (acos_test_tonearest): Likewise.
47413         (acos_test_towardzero): Likewise.
47414         (acos_test_downward): Likewise.
47415         (acos_test_upward): Likewise.
47416         (acosh_test): Likewise.
47417         (asin_test): Likewise.
47418         (asin_test_tonearest): Likewise.
47419         (asin_test_towardzero): Likewise.
47420         (asin_test_downward): Likewise.
47421         (asin_test_upward): Likewise.
47422         (asinh_test): Likewise.
47423         (atan_test): Likewise.
47424         (atanh_test): Likewise.
47425         (atan2_test): Likewise.
47426         (cabs_test): Likewise.
47427         (cacos_test): Likewise.
47428         (cacosh_test): Likewise.
47429         (casin_test): Likewise.
47430         (casinh_test): Likewise.
47431         (catan_test): Likewise.
47432         (catanh_test): Likewise.
47433         (cbrt_test): Likewise.
47434         (ccos_test): Likewise.
47435         (ccosh_test): Likewise.
47436         (cexp_test): Likewise.
47437         (clog_test): Likewise.
47438         (clog10_test): Likewise.
47439         (cos_test): Likewise.
47440         (cos_test_tonearest): Likewise.
47441         (cos_test_towardzero): Likewise.
47442         (cos_test_downward): Likewise.
47443         (cos_test_upward): Likewise.
47444         (cosh_test): Likewise.
47445         (cosh_test_tonearest): Likewise.
47446         (cosh_test_towardzero): Likewise.
47447         (cosh_test_downward): Likewise.
47448         (cosh_test_upward): Likewise.
47449         (cpow_test): Likewise.
47450         (csin_test): Likewise.
47451         (csinh_test): Likewise.
47452         (csqrt_test): Likewise.
47453         (ctan_test): Likewise.
47454         (ctan_test_tonearest): Likewise.
47455         (ctan_test_towardzero): Likewise.
47456         (ctan_test_downward): Likewise.
47457         (ctan_test_upward): Likewise.
47458         (ctanh_test): Likewise.
47459         (ctanh_test_tonearest): Likewise.
47460         (ctanh_test_towardzero): Likewise.
47461         (ctanh_test_downward): Likewise.
47462         (ctanh_test_upward): Likewise.
47463         (erf_test): Likewise.
47464         (erfc_test): Likewise.
47465         (exp_test): Likewise.
47466         (exp_test_tonearest): Likewise.
47467         (exp_test_towardzero): Likewise.
47468         (exp_test_downward): Likewise.
47469         (exp_test_upward): Likewise.
47470         (exp10_test): Likewise.
47471         (exp2_test): Likewise.
47472         (expm1_test): Likewise.
47473         (fmod_test): Likewise.
47474         (gamma_test): Likewise.
47475         (hypot_test): Likewise.
47476         (j0_test): Likewise.
47477         (j1_test): Likewise.
47478         (jn_test): Likewise.
47479         (lgamma_test): Likewise.
47480         (log_test): Likewise.
47481         (log10_test): Likewise.
47482         (log1p_test): Likewise.
47483         (log2_test): Likewise.
47484         (logb_test_downward): Likewise.
47485         (pow_test): Likewise.
47486         (pow_test_tonearest): Likewise.
47487         (pow_test_towardzero): Likewise.
47488         (pow_test_downward): Likewise.
47489         (pow_test_upward): Likewise.
47490         (remainder_test): Likewise.
47491         (remquo_test): Likewise.
47492         (sin_test): Likewise.
47493         (sin_test_tonearest): Likewise.
47494         (sin_test_towardzero): Likewise.
47495         (sin_test_downward): Likewise.
47496         (sin_test_upward): Likewise.
47497         (sincos_test): Likewise.
47498         (sinh_test): Likewise.
47499         (sinh_test_tonearest): Likewise.
47500         (sinh_test_towardzero): Likewise.
47501         (sinh_test_downward): Likewise.
47502         (sinh_test_upward): Likewise.
47503         (sqrt_test): Likewise.
47504         (tan_test): Likewise.
47505         (tan_test_tonearest): Likewise.
47506         (tan_test_towardzero): Likewise.
47507         (tan_test_downward): Likewise.
47508         (tan_test_upward): Likewise.
47509         (tanh_test): Likewise.
47510         (tgamma_test): Likewise.
47511         (y0_test): Likewise.
47512         (y1_test): Likewise.
47513         (yn_test): Likewise.
47514
47515         * math/gen-libm-test.pl (adjust_arg): Remove function.
47516         (special_function): Remove argument $in_func.  Only handle
47517         generating output for tables of tests, not inside functions.
47518         (parse_args): Likewise.
47519         (generate_testfile): Remove variable $in_func.  Update call to
47520         parse_args.
47521         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47522         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47523         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47524         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47525         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47526         (MAX_VALUE_INIT): Rename macro to max_value.
47527         (MIN_VALUE_INIT): Rename macro to min_value.
47528         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47529         (plus_zero): Remove variable.
47530         (minus_zero): Likewise.
47531         (plus_infty): Likewise.
47532         (minus_infty): Likewise.
47533         (qnan_value): Likewise.
47534         (max_value): Likewise.
47535         (min_value): Likewise.
47536         (min_subnorm_value): Likewise.
47537
47538 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47539
47540         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47541         uint64_t or uint32_t usage.
47542         * crypt/sha256-block.c: Likewise.
47543         * crypt/sha256-crypt.c: Likewise.
47544         * crypt/sha256.c: Likewise.
47545         * crypt/sha512-block.c: Likewise.
47546         * crypt/sha512-crypt.c: Likewise.
47547         * crypt/sha512.c: Likewise.
47548         * debug/backtrace-tst.c: Likewise.
47549         * debug/pcprofiledump.c: Likewise.
47550         * elf/cache.c: Likewise.
47551         * elf/dl-cache.c: Likewise.
47552         * elf/dl-misc.c: Likewise.
47553         * elf/dl-profile.c: Likewise.
47554         * elf/dl-support.c: Likewise.
47555         * elf/ldconfig.c: Likewise.
47556         * elf/sprof.c: Likewise.
47557         * iconv/dummy-repertoire.c: Likewise.
47558         * iconv/iconv_charmap.c: Likewise.
47559         * iconv/skeleton.c: Likewise.
47560         * iconvdata/8bit-generic.c: Likewise.
47561         * iconvdata/cp737.h: Likewise.
47562         * iconvdata/cp775.h: Likewise.
47563         * iconvdata/ibm1008.h: Likewise.
47564         * iconvdata/ibm1025.h: Likewise.
47565         * iconvdata/ibm1046.h: Likewise.
47566         * iconvdata/ibm1097.h: Likewise.
47567         * iconvdata/ibm1112.h: Likewise.
47568         * iconvdata/ibm1122.h: Likewise.
47569         * iconvdata/ibm1123.h: Likewise.
47570         * iconvdata/ibm1124.h: Likewise.
47571         * iconvdata/ibm1129.h: Likewise.
47572         * iconvdata/ibm1130.h: Likewise.
47573         * iconvdata/ibm1132.h: Likewise.
47574         * iconvdata/ibm1133.h: Likewise.
47575         * iconvdata/ibm1137.h: Likewise.
47576         * iconvdata/ibm1140.h: Likewise.
47577         * iconvdata/ibm1141.h: Likewise.
47578         * iconvdata/ibm1142.h: Likewise.
47579         * iconvdata/ibm1143.h: Likewise.
47580         * iconvdata/ibm1144.h: Likewise.
47581         * iconvdata/ibm1145.h: Likewise.
47582         * iconvdata/ibm1146.h: Likewise.
47583         * iconvdata/ibm1147.h: Likewise.
47584         * iconvdata/ibm1148.h: Likewise.
47585         * iconvdata/ibm1149.h: Likewise.
47586         * iconvdata/ibm1153.h: Likewise.
47587         * iconvdata/ibm1154.h: Likewise.
47588         * iconvdata/ibm1155.h: Likewise.
47589         * iconvdata/ibm1156.h: Likewise.
47590         * iconvdata/ibm1157.h: Likewise.
47591         * iconvdata/ibm1158.h: Likewise.
47592         * iconvdata/ibm1160.h: Likewise.
47593         * iconvdata/ibm1161.h: Likewise.
47594         * iconvdata/ibm1162.h: Likewise.
47595         * iconvdata/ibm1163.h: Likewise.
47596         * iconvdata/ibm1164.h: Likewise.
47597         * iconvdata/ibm1166.h: Likewise.
47598         * iconvdata/ibm1167.h: Likewise.
47599         * iconvdata/ibm12712.h: Likewise.
47600         * iconvdata/ibm1390.h: Likewise.
47601         * iconvdata/ibm1399.h: Likewise.
47602         * iconvdata/ibm16804.h: Likewise.
47603         * iconvdata/ibm4517.h: Likewise.
47604         * iconvdata/ibm4899.h: Likewise.
47605         * iconvdata/ibm4909.h: Likewise.
47606         * iconvdata/ibm4971.h: Likewise.
47607         * iconvdata/ibm5347.h: Likewise.
47608         * iconvdata/ibm803.h: Likewise.
47609         * iconvdata/ibm856.h: Likewise.
47610         * iconvdata/ibm901.h: Likewise.
47611         * iconvdata/ibm902.h: Likewise.
47612         * iconvdata/ibm9030.h: Likewise.
47613         * iconvdata/ibm9066.h: Likewise.
47614         * iconvdata/ibm921.h: Likewise.
47615         * iconvdata/ibm922.h: Likewise.
47616         * iconvdata/ibm9448.h: Likewise.
47617         * iconvdata/isiri-3342.h: Likewise.
47618         * iconvdata/jis0201.h: Likewise.
47619         * include/link.h: Likewise.
47620         * include/netdb.h: Likewise.
47621         * inet/check_native.c: Likewise.
47622         * inet/check_pf.c: Likewise.
47623         * inet/getipv4sourcefilter.c: Likewise.
47624         * inet/getnameinfo.c: Likewise.
47625         * inet/getsourcefilter.c: Likewise.
47626         * inet/htonl.c: Likewise.
47627         * inet/setipv4sourcefilter.c: Likewise.
47628         * inet/setsourcefilter.c: Likewise.
47629         * inet/test-inet6_opt.c: Likewise.
47630         * inet/tst-network.c: Likewise.
47631         * locale/C-collate.c: Likewise.
47632         * locale/C-ctype.c: Likewise.
47633         * locale/C-time.c: Likewise.
47634         * locale/C-translit.h: Likewise.
47635         * locale/loadarchive.c: Likewise.
47636         * locale/programs/3level.h: Likewise.
47637         * locale/programs/charmap.c: Likewise.
47638         * locale/programs/charmap.h: Likewise.
47639         * locale/programs/ld-address.c: Likewise.
47640         * locale/programs/ld-collate.c: Likewise.
47641         * locale/programs/ld-ctype.c: Likewise.
47642         * locale/programs/ld-identification.c: Likewise.
47643         * locale/programs/ld-measurement.c: Likewise.
47644         * locale/programs/ld-messages.c: Likewise.
47645         * locale/programs/ld-monetary.c: Likewise.
47646         * locale/programs/ld-name.c: Likewise.
47647         * locale/programs/ld-numeric.c: Likewise.
47648         * locale/programs/ld-paper.c: Likewise.
47649         * locale/programs/ld-telephone.c: Likewise.
47650         * locale/programs/ld-time.c: Likewise.
47651         * locale/programs/linereader.c: Likewise.
47652         * locale/programs/locale.c: Likewise.
47653         * locale/programs/locarchive.c: Likewise.
47654         * locale/programs/locfile.h: Likewise.
47655         * locale/programs/repertoire.c: Likewise.
47656         * locale/programs/simple-hash.c: Likewise.
47657         * locale/programs/simple-hash.h: Likewise.
47658         * malloc/memusage.c: Likewise.
47659         * malloc/memusagestat.c: Likewise.
47660         * nis/nis_defaults.c: Likewise.
47661         * nis/nis_hash.c: Likewise.
47662         * nis/nis_print.c: Likewise.
47663         * nis/nis_xdr.c: Likewise.
47664         * nscd/connections.c: Likewise.
47665         * nscd/hstcache.c: Likewise.
47666         * nscd/nscd_gethst_r.c: Likewise.
47667         * nscd/nscd_getserv_r.c: Likewise.
47668         * nscd/nscd_helper.c: Likewise.
47669         * nscd/servicescache.c: Likewise.
47670         * nss/makedb.c: Likewise.
47671         * nss/nss_db/db-XXX.c: Likewise.
47672         * nss/nss_db/db-initgroups.c: Likewise.
47673         * nss/nss_db/db-netgrp.c: Likewise.
47674         * nss/nss_files/files-network.c: Likewise.
47675         * nss/nss_files/files-parse.c: Likewise.
47676         * posix/bug-regex5.c: Likewise.
47677         * posix/fnmatch_loop.c: Likewise.
47678         * posix/regcomp.c: Likewise.
47679         * posix/regexec.c: Likewise.
47680         * posix/tst-rfc3484-2.c: Likewise.
47681         * posix/tst-rfc3484-3.c: Likewise.
47682         * posix/tst-rfc3484.c: Likewise.
47683         * resolv/nss_dns/dns-canon.c: Likewise.
47684         * resolv/nss_dns/dns-network.c: Likewise.
47685         * resolv/res_init.c: Likewise.
47686         * resolv/res_mkquery.c: Likewise.
47687         * resolv/tst-aton.c: Likewise.
47688         * stdlib/cxa_atexit.c: Likewise.
47689         * stdlib/cxa_finalize.c: Likewise.
47690         * stdlib/gen-fpioconst.c: Likewise.
47691         * stdlib/strtol_l.c: Likewise.
47692         * string/tst-endian.c: Likewise.
47693         * sunrpc/auth_des.c: Likewise.
47694         * sunrpc/clnt_udp.c: Likewise.
47695         * sunrpc/rtime.c: Likewise.
47696         * sunrpc/svcauth_des.c: Likewise.
47697         * sunrpc/xdr.c: Likewise.
47698         * sunrpc/xdr_intXX_t.c: Likewise.
47699         * sunrpc/xdr_rec.c: Likewise.
47700         * sysdeps/generic/ldconfig.h: Likewise.
47701         * sysdeps/generic/ldsodefs.h: Likewise.
47702         * sysdeps/generic/memusage.h: Likewise.
47703         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47704         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47705         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47706         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47707         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47708         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47709         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47710         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47711         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47712         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47713         * sysdeps/posix/getaddrinfo.c: Likewise.
47714         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47715         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47716         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47717         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47718         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47719         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47720         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47721         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47722         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47723         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47724         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47725         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47726         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47727         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47728         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47729         * sysdeps/x86_64/dl-tls.h: Likewise.
47730         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47731         * time/alt_digit.c: Likewise.
47732         * time/era.c: Likewise.
47733         * wcsmbs/tst-c16c32-1.c: Likewise.
47734
47735 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47736
47737         * math/libm-test.inc (struct test_sincos_data): New type.
47738         (RUN_TEST_LOOP_sincos): New macro.
47739         (sincos_test_data): New variable.
47740         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47741
47742 2013-05-16  Richard Henderson  <rth@redhat.com>
47743
47744         * math/atest-exp2.c (LIMB64): New macro.
47745         (CONSTSZ): New macro.
47746         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47747         (hexdig): Move ...
47748         (print_mpn_fp): ... to function scope.
47749         (read_mpn_hex): Remove.
47750         (get_log2): Remove.
47751         (exp2_mpn): Use mp_log2.
47752         (main): Use mp_exp1.
47753
47754 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47755
47756         * math/libm-test.inc: Remove comment about not testing "inexact"
47757         exceptions.
47758         (INEXACT_EXCEPTION): New macro.
47759         (NO_INEXACT_EXCEPTION): Likewise.
47760         (INVALID_EXCEPTION_OK): Update value.
47761         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47762         (OVERFLOW_EXCEPTION_OK): Likewise.
47763         (UNDERFLOW_EXCEPTION_OK): Likewise.
47764         (IGNORE_ZERO_INF_SIGN): Likewise.
47765         (ERRNO_UNCHANGED): Likewise.
47766         (ERRNO_EDOM): Likewise.
47767         (ERRNO_ERANGE): Likewise.
47768         (test_exceptions): Handle testing "inexact" exceptions.
47769         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47770         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47771         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47772         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47773         INEXACT_EXCEPTION.
47774         (rint_towardzero_test_data): Likewise.
47775         (rint_downward_test_data): Likewise.
47776         (rint_upward_test_data): Likewise.
47777
47778         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47779         with OVERFLOW_EXCEPTION.
47780         (exp10_test_data): Likewise.
47781         (exp2_test_data): Likewise.
47782         (expm1_test_data): Likewise.
47783         (lgamma_test_data): Likewise.
47784         (pow_test_data): Likewise.
47785         (tgamma_test_data): Likewise.
47786         (yn_test_data): Remove duplicate test of overflow.
47787
47788         * math/libm-test.inc (struct test_cc_c_data): New type.
47789         (RUN_TEST_LOOP_cc_c): New macro.
47790         (cpow_test_data): New variable.
47791         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47792
47793         * math/libm-test.inc (struct test_f_L_data): New type.
47794         (RUN_TEST_LOOP_f_L): New macro.
47795         (llrint_test_data): New variable.
47796         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47797         (llrint_tonearest_test_data): New variable.
47798         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47799         (llrint_towardzero_test_data): New variable.
47800         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47801         (llrint_downward_test_data): New variable.
47802         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47803         (llrint_upward_test_data): New variable.
47804         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47805         (llround_test_data): New variable.
47806         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47807
47808 2013-05-13  Peter Collingbourne  <pcc@google.com>
47809
47810         * math/atest-exp2.c (get_log2): Remove const attribute.
47811
47812 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47813
47814         * math/libm-test.inc (struct test_f_l_data): New type.
47815         (RUN_TEST_LOOP_f_l): New macro.
47816         (lrint_test_data): New variable.
47817         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47818         (lrint_tonearest_test_data): New variable.
47819         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47820         (lrint_towardzero_test_data): New variable.
47821         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47822         (lrint_downward_test_data): New variable.
47823         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47824         (lrint_upward_test_data): New variable.
47825         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47826         (lround_test_data): New variable.
47827         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47828
47829 2013-05-15  Peter Collingbourne  <pcc@google.com>
47830
47831         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47832         (EXTRACT_WORDS64) Use where appropriate.
47833         (INSERT_WORDS64) Likewise.
47834
47835         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47836         constraints with x constraints.
47837         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47838
47839         * malloc/obstack.c (_obstack_compat): Add initializer.
47840
47841 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47842
47843         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47844         si_trapno and add si_addr_lsb to _sifields.sigfault.
47845         (si_trapno): Remove macro.
47846         (si_addr_lsb): Define new macro.
47847         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47848
47849 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47850
47851         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47852         instead of TEST_f_l.
47853         (llrint_test_tonearest): Likewise.
47854         (llrint_test_towardzero): Likewise.
47855         (llrint_test_downward): Likewise.
47856         (llrint_test_upward): Likewise.
47857         (llround_test): Likewise.
47858
47859         * math/libm-test.inc (struct test_f_i_data): Add comment.
47860         (RUN_TEST_LOOP_f_b): New macro.
47861         (RUN_TEST_LOOP_f_b_tg): Likewise.
47862         (finite_test_data): New variable.
47863         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47864         (isfinite_test_data): New variable.
47865         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47866         (isinf_test_data): New variable.
47867         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47868         (isnan_test_data): New variable.
47869         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47870         (isnormal_test_data): New variable.
47871         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47872         (issignaling_test_data): New variable.
47873         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47874         (signbit_test_data): New variable.
47875         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47876
47877         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47878         with INVALID_EXCEPTION.
47879         (acosh_test_data): Likewise.
47880         (asin_test_data): Likewise.
47881         (atanh_test_data): Likewise.
47882         (fmod_test_data): Likewise.
47883         (log_test_data): Likewise.
47884         (log10_test_data): Likewise.
47885         (log2_test_data): Likewise.
47886         (pow_test_data): Likewise.
47887         (sqrt_test_data): Likewise.
47888         (y0_test_data): Likewise.
47889         (y1_test_data): Likewise.
47890         (yn_test_data): Likewise.
47891
47892         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47893         function contents.
47894
47895         * math/libm-test.inc (struct test_ff_i_data): New type.
47896         (RUN_TEST_LOOP_ff_i_tg): New macro.
47897         (isgreater_test_data): New variable.
47898         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47899         (isgreaterequal_test_data): New variable.
47900         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47901         (isless_test_data): New variable.
47902         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47903         (islessequal_test_data): New variable.
47904         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47905         (islessgreater_test_data): New variable.
47906         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47907         (isunordered_test_data): New variable.
47908         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47909
47910 2013-05-14  David S. Miller  <davem@davemloft.net>
47911
47912         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47913
47914 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47915
47916         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47917
47918         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47919         extra_test to int.
47920         (struct test_f_i_data): Change type of max_ulp to int.
47921
47922         * math/libm-test.inc (test_ffI_f1_data): New type.
47923         (RUN_TEST_LOOP_ffI_f1): New macro.
47924         (remquo_test_data): New variable.
47925         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47926
47927         * setjmp/tst-setjmp-fp.c: New file.
47928         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47929         (link-libm): New variable.
47930         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47931
47932         * math/libm-test.inc (struct test_f_i_data): New type.
47933         (RUN_TEST_LOOP_f_i): New macro.
47934         (RUN_TEST_LOOP_f_i_tg): Likewise.
47935         (fpclassify_test_data): New variable.
47936         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47937         (ilogb_test_data): New variable.
47938         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47939
47940         * math/libm-test.inc (scalbln_test): Correct function name in END
47941         call.
47942
47943         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47944         (RUN_TEST_LOOP_fI_f1): New macro.
47945         (frexp_test_data): New variable.
47946         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47947
47948         * math/libm-test.inc (struct test_fF_f1_data): New type.
47949         (RUN_TEST_LOOP_fF_f1): New macro.
47950         (modf_test_data): New variable.
47951         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47952
47953         * math/libm-test.inc (struct test_f_f1_data): New type.
47954         (RUN_TEST_LOOP_f_f1): New macro.
47955         (gamma_test_data): New variable.
47956         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47957         (lgamma_test_data): New variable.
47958         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47959
47960 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47961
47962         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47963         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47964         (main): Comment "tls" pseudo-hwcap.
47965
47966 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47967
47968         * math/libm-test.inc (struct test_fl_f_data): New type.
47969         (RUN_TEST_LOOP_fl_f): New variable.
47970         (scalbln_test_data): New variable.
47971         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47972
47973         * math/libm-test.inc (struct test_fi_f_data): New type.
47974         (RUN_TEST_LOOP_fi_f): New macro.
47975         (ldexp_test_data): New variable.
47976         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47977         (scalbn_test_data): New variable.
47978         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47979
47980         * math/libm-test.inc (struct test_c_f_data): New type.
47981         (RUN_TEST_LOOP_c_f): New macro.
47982         (cabs_test_data): New variable.
47983         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47984         (carg_test_data): New variable.
47985         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47986         (cimag_test_data): New variable.
47987         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47988         (creal_test_data): New variable.
47989         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47990
47991         * math/libm-test.inc (struct test_if_f_data): New type.
47992         (RUN_TEST_LOOP_if_f): New macro.
47993         (jn_test_data): New variable.
47994         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47995         (yn_test_data): New variable.
47996         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47997
47998         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47999
48000 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48001
48002         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48003         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48004
48005 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48006
48007         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48008         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48009         (bench-deps): Add bench-timing.h.
48010         * benchtests-bench-skeleton.c: Include bench-timing.h.
48011         (main): Use TIMING_* macros instead of clock_gettime.
48012         * benchtests/bench-timing.h: New file.
48013
48014         [BZ #14582]
48015         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48016         Renamed from _LIB_VERSION.
48017         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48018
48019 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48020
48021         * math/libm-test.inc (struct test_fff_f_data): New type.
48022         (RUN_TEST_LOOP_fff_f): New macro.
48023         (fma_test_data): New variable.
48024         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48025         (fma_towardzero_test_data): New variable.
48026         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48027         (fma_downward_test_data): New variable.
48028         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48029         (fma_upward_test_data): New variable.
48030         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48031
48032         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48033         (struct test_c_c_data): New type.
48034         (RUN_TEST_LOOP_c_c): New macro.
48035         (cacos_test_data): New variable.
48036         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48037         (cacosh_test_data): New variable.
48038         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48039         (casin_test_data): New variable.
48040         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48041         (casinh_test_data): New variable.
48042         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48043         (catan_test_data): New variable.
48044         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48045         (catanh_test_data): New variable.
48046         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48047         (ccos_test_data): New variable.
48048         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48049         (ccosh_test_data): New variable.
48050         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48051         (cexp_test_data): New variable.
48052         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48053         (clog_test_data): New variable.
48054         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48055         (clog10_test_data): New variable.
48056         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48057         (conj_test_data): New variable.
48058         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48059         (cproj_test_data): New variable.
48060         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48061         (csin_test_data): New variable.
48062         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48063         (csinh_test_data): New variable.
48064         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48065         (csqrt_test_data): New variable.
48066         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48067         (ctan_test_data): New variable.
48068         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48069         (ctan_tonearest_test_data): New variable.
48070         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48071         (ctan_towardzero_test_data): New variable.
48072         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48073         (ctan_downward_test_data): New variable.
48074         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48075         (ctan_upward_test_data): New variable.
48076         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48077         (ctanh_test_data): New variable.
48078         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48079         (ctanh_tonearest_test_data): New variable.
48080         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48081         (ctanh_towardzero_test_data): New variable.
48082         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48083         (ctanh_downward_test_data): New variable.
48084         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48085         (ctanh_upward_test_data): New variable.
48086         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48087         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48088         of BUILD_COMPLEX.
48089
48090         * math/libm-test.inc (struct test_ff_f_data): New type.
48091         (struct test_ff_f_data_nexttoward): Likewise.
48092         (RUN_TEST_LOOP_2_f): New macro.
48093         (RUN_TEST_LOOP_ff_f): Likewise.
48094         (atan2_test_data): New variable.
48095         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48096         (copysign_test_data): New variable.
48097         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48098         (fdim_test_data): New variable.
48099         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48100         (fmax_test_data): New variable.
48101         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48102         (fmin_test_data): New variable.
48103         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48104         (fmod_test_data): New variable.
48105         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48106         (hypot_test_data): New variable.
48107         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48108         (nextafter_test_data): New variable.
48109         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48110         (nexttoward_test_data): New variable.
48111         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48112         (pow_test_data): New variable.
48113         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48114         (pow_tonearest_test_data): New variable.
48115         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48116         (pow_towardzero_test_data): New variable.
48117         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48118         (pow_downward_test_data): New variable.
48119         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48120         (pow_upward_test_data): New variable.
48121         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48122         (remainder_test_data): New variable.
48123         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48124         (scalb_test_data): New variable.
48125         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48126         * sysdeps/i386/fpu/libm-test-ulps: Update.
48127
48128 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48129
48130         * math/libm-test.inc (fma_test): Use max_value instead of local
48131         variable fltmax.
48132         (nextafter_test): Likewise.
48133
48134         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48135         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48136         (acos_downward_test_data): New variable.
48137         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48138         (acos_upward_test_data): New variable.
48139         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48140         (acosh_test_data): New variable.
48141         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48142         (asin_test_data): New variable.
48143         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48144         (asin_tonearest_test_data): New variable.
48145         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48146         (asin_towardzero_test_data): New variable.
48147         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48148         (asin_downward_test_data): New variable.
48149         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48150         (asin_upward_test_data): New variable.
48151         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48152         (asinh_test_data): New variable.
48153         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48154         (atan_test_data): New variable.
48155         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48156         (atanh_test_data): New variable.
48157         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48158         (cbrt_test_data): New variable.
48159         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48160         (ceil_test_data): New variable.
48161         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48162         (cos_test_data): New variable.
48163         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48164         (cos_tonearest_test_data): New variable.
48165         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48166         (cos_towardzero_test_data): New variable.
48167         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48168         (cos_downward_test_data): New variable.
48169         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48170         (cos_upward_test_data): New variable.
48171         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48172         (cosh_test_data): New variable.
48173         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48174         (cosh_tonearest_test_data): New variable.
48175         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48176         (cosh_towardzero_test_data): New variable.
48177         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48178         (cosh_downward_test_data): New variable.
48179         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48180         (cosh_upward_test_data): New variable.
48181         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48182         (erf_test_data): New variable.
48183         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48184         (erfc_test_data): New variable.
48185         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48186         (exp_test_data): New variable.
48187         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48188         (exp_tonearest_test_data): New variable.
48189         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48190         (exp_towardzero_test_data): New variable.
48191         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48192         (exp_downward_test_data): New variable.
48193         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48194         (exp_upward_test_data): New variable.
48195         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48196         (exp10_test_data): New variable.
48197         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48198         (exp2_test_data): New variable.
48199         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48200         (expm1_test_data): New variable.
48201         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48202         (fabs_test_data): New variable.
48203         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48204         (floor_test_data): New variable.
48205         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48206         (j0_test_data): New variable.
48207         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48208         (j1_test_data): New variable.
48209         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48210         (log_test_data): New variable.
48211         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48212         (log10_test_data): New variable.
48213         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48214         (log1p_test_data): New variable.
48215         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48216         (log2_test_data): New variable.
48217         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48218         (logb_test_data): New variable.
48219         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48220         (logb_downward_test_data): New variable.
48221         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48222         (nearbyint_test_data): New variable.
48223         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48224         (rint_test_data): New variable.
48225         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48226         (rint_tonearest_test_data): New variable.
48227         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48228         (rint_towardzero_test_data): New variable.
48229         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48230         (rint_downward_test_data): New variable.
48231         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48232         (rint_upward_test_data): New variable.
48233         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48234         (round_test_data): New variable.
48235         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48236         (sin_test_data): New variable.
48237         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48238         (sin_tonearest_test_data): New variable.
48239         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48240         (sin_towardzero_test_data): New variable.
48241         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48242         (sin_downward_test_data): New variable.
48243         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48244         (sin_upward_test_data): New variable.
48245         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48246         (sinh_test_data): New variable.
48247         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48248         (sinh_tonearest_test_data): New variable.
48249         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48250         (sinh_towardzero_test_data): New variable.
48251         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48252         (sinh_downward_test_data): New variable.
48253         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48254         (sinh_upward_test_data): New variable.
48255         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48256         (sqrt_test_data): New variable.
48257         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48258         (tan_test_data): New variable.
48259         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48260         (tan_tonearest_test_data): New variable.
48261         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48262         (tan_towardzero_test_data): New variable.
48263         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48264         (tan_downward_test_data): New variable.
48265         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48266         (tan_upward_test_data): New variable.
48267         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48268         (tanh_test_data): New variable.
48269         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48270         (tgamma_test_data): New variable.
48271         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48272         (trunc_test_data): New variable.
48273         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48274         (y0_test_data): New variable.
48275         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48276         (y1_test_data): New variable.
48277         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48278         (significand_test_data): New variable.
48279         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48280
48281 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48282
48283         [BZ #12387]
48284         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48285
48286 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48287
48288         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48289
48290 2013-05-10  Andreas Jaeger  <aj@suse.de>
48291
48292         [BZ #15448]
48293         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48294         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48295
48296 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48297
48298         * math/gen-libm-test.pl (adjust_arg): New function.
48299         (special_functions): Handle generating output in both functions
48300         and arrays.
48301         (parse_args): Likewise.
48302         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48303         $in_func argument to parse_args.
48304         * math/libm-test.inc (struct test_f_f_data): New type.
48305         (IF_ROUND_INIT_): New macro.
48306         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48307         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48308         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48309         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48310         (ROUND_RESTORE_): Likewise.
48311         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48312         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48313         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48314         (ROUND_RESTORE_FE_UPWARD): Likewise.
48315         (RUN_TEST_LOOP_f_f): New macro.
48316         (acos_test_data): New variable.
48317         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48318         (acos_tonearest_test_data): New variable.
48319         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48320
48321 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48322
48323         * benchtests/bench-skeleton.c (startup): Fix coding style.
48324
48325 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48326
48327         [BZ #6809]
48328         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48329         negative infinity argument.
48330         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48331         negative infinity argument.
48332         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48333         negative infinity argument.
48334         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48335         domain errors.
48336
48337 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48338
48339         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48340         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48341         * iconv/iconv_prog.c (main): Likewise.
48342         * locale/programs/charmap-dir.c (charmap_readdir)
48343         (fopen_uncompressed): Likewise.
48344         * locale/programs/locfile.c (siblings_uncached)
48345         (write_locale_data): Use lstat64 instead of lstat.
48346         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48347         stat.
48348
48349 2013-05-10  Andreas Jaeger  <aj@suse.de>
48350
48351         [BZ #15395]
48352         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48353         localization.
48354         Include <locale.h>.
48355
48356 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48357
48358         * elf/dl-close.c (_dl_close_worker): Add comments.
48359
48360 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48361
48362         [BZ #15359]
48363         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48364         high part of pi/2.
48365         (__ieee754_rem_pio2l): Update comments.
48366
48367         [BZ #15429]
48368         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48369         high part of pi/2.
48370         (__ieee754_rem_pio2l): Update comments.
48371
48372         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48373         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48374
48375         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48376         M_PI_4l.
48377
48378         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48379         (M_PI_34_LOG10El): Likewise.
48380         (M_PI2_LOG10El): Likewise.
48381         (M_PI4_LOG10El): Likewise.
48382         (M_PI_LOG10El): Likewise.
48383
48384 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48385
48386         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48387
48388 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48389
48390         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48391         (MINUS_ZERO_INIT): Likewise.
48392         (PLUS_INFTY_INIT): Likewise.
48393         (MINUS_INFTY_INIT): Likewise.
48394         (QNAN_VALUE_INIT): Likewise.
48395         (MAX_VALUE_INIT): Likewise.
48396         (MIN_VALUE_INIT): Likewise.
48397         (MIN_SUBNORM_VALUE_INIT): Likewise.
48398         (plus_zero): Initialize with PLUS_ZERO_INIT.
48399         (minus_zero): Initialize with MINUS_ZERO_INIT.
48400         (plus_infty): Initialize with PLUS_INFTY_INIT.
48401         (minus_infty): Initialize with MINUS_INFTY_INIT.
48402         (qnan_value): Initialize with QNAN_VALUE_INIT.
48403         (max_value): Initialize with MAX_VALUE_INIT.
48404         (min_value): Initialize with MIN_VALUE_INIT.
48405         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48406
48407         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48408         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48409         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48410         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48411
48412         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48413         (RUN_TEST_2_f): Likewise.
48414         (RUN_TEST_ff_f): Likewise.
48415         (RUN_TEST_fi_f): Likewise.
48416         (RUN_TEST_fl_f): Likewise.
48417         (RUN_TEST_fff_f): Likewise.
48418         (RUN_TEST_c_f): Likewise.
48419         (RUN_TEST_f_f1): Likewise.
48420         (RUN_TEST_fF_f1): Likewise.
48421         (RUN_TEST_fI_f1): Likewise.
48422         (RUN_TEST_ffI_f1): Likewise.
48423         (RUN_TEST_c_c): Likewise.
48424         (RUN_TEST_cc_c): Likewise.
48425         (RUN_TEST_f_i): Likewise.
48426         (RUN_TEST_f_i_tg): Likewise.
48427         (RUN_TEST_ff_i_tg): Likewise.
48428         (RUN_TEST_f_b): Likewise.
48429         (RUN_TEST_f_b_tg): Likewise.
48430         (RUN_TEST_f_l): Likewise.
48431         (RUN_TEST_f_L): Likewise.
48432         (RUN_TEST_sincos): Likewise.
48433         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48434         whether to show exceptions.  Do not include ");\n" in return
48435         value.
48436         (special_functions): Output call to RUN_TEST_sincos instead of
48437         check_float calls.  Update calls to new_test.
48438         (parse_args): Output call to single RUN_TEST_* macro instead of
48439         check_* calls and other assignments.  Update calls to new_test.
48440
48441         [BZ #2546]
48442         [BZ #2560]
48443         [BZ #5159]
48444         [BZ #15426]
48445         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48446         input to result for tgamma overflow.
48447         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48448         (gamma_coeff): New variable.
48449         (NCOEFF): New macro.
48450         (gamma_positive): New function.
48451         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48452         underflow here.  Use gamma_positive instead of exp (lgamma) for
48453         other arguments.
48454         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48455         (gamma_coeff): New variable.
48456         (NCOEFF): New macro.
48457         (gammaf_positive): New function.
48458         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48459         underflow here.  Use gamma_positive instead of exp (lgamma) for
48460         other arguments.
48461         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48462         (gamma_coeff): New variable.
48463         (NCOEFF): New macro.
48464         (gammal_positive): New function.
48465         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48466         underflow here.  Use gamma_positive instead of exp (lgamma) for
48467         other arguments.
48468         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48469         (gamma_coeff): New variable.
48470         (NCOEFF): New macro.
48471         (gammal_positive): New function.
48472         (__ieee754_gammal_r): Handle positive infinity, overflow and
48473         underflow here.  Handle NaN the same as positive infinity.  Remove
48474         check x < 0xffffffff for negative integers.  Use gamma_positive
48475         instead of exp (lgamma) for other arguments.
48476         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48477         (gamma_coeff): New variable.
48478         (NCOEFF): New macro.
48479         (gammal_positive): New function.
48480         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48481         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48482         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48483         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48484         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48485         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48486         * sysdeps/generic/math_private.h (__gamma_productf): New
48487         prototype.
48488         (__gamma_product): Likewise.
48489         (__gamma_productl): Likewise.
48490         * math/Makefile (libm-calls): Add gamma_product.
48491         * math/libm-test.inc (tgamma_test): Add more tests.
48492         * sysdeps/i386/fpu/libm-test-ulps: Update.
48493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48494
48495 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48496
48497         * benchtests/bench-skeleton.c (main): Preheat CPU.
48498
48499 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48500
48501         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48502
48503 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48504
48505         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48506         and _dl_skip_args_internal.
48507
48508 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48509
48510         * manual/message.texi (Message Translation): Talk about users.
48511         Message to key mapping impacts design.
48512
48513 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48514
48515         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48516
48517         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48518
48519         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48520         * sysdeps/wordsize-64/glob64.c: ... here.
48521
48522         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48523         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48524         New macros.
48525
48526         * debug/getlogin_r_chk.c: Moved to ...
48527         * login/getlogin_r_chk.c: ... here.
48528         * debug/Makefile (routines): Move getlogin_r_chk to ...
48529         * login/Makefile (routines): ... here.
48530         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48531         * login/Versions (libc: GLIBC_2.4): ... here.
48532
48533         * io/poll.c (__poll): Renamed from poll.
48534         Add libc_hidden_def.
48535         (poll): Define as weak alias.
48536
48537         * debug/ptsname_r_chk.c: Moved to ...
48538         * login/ptsname_r_chk.c: ... here.
48539         * debug/Makefile (routines): Move ptsname_r_chk to ...
48540         * login/Makefile (routines): ... here.
48541         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48542         * login/Versions (libc: GLIBC_2.4): ... here.
48543
48544         * posix/getlogin.c: Moved to ...
48545         * login/getlogin.c: ... here.
48546         * posix/getlogin_r.c: Moved to ...
48547         * login/getlogin_r.c: ... here.
48548         * posix/getlogin_r.c: Moved to ...
48549         * login/getlogin_r.c: ... here.
48550         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48551         * login/Makefile (routines): ... here.
48552         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48553         * login/Versions (libc: GLIBC_2.0): ... here.
48554
48555         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48556         (setrlimit): Define as weak alias.
48557
48558         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48559         Call __ names for open, ftruncate, and close.
48560         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48561         (truncate): Define as weak alias.
48562
48563 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48564
48565         * math/gen-libm-test.pl (parse_args): Initialize x before each
48566         test of frexp, modf and remquo.
48567
48568         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48569         test signgam value.
48570
48571 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48572
48573         [BZ #15418]
48574         [BZ #15419]
48575         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48576         internal tests.
48577         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48578
48579 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48580
48581         * elf/dl-writev.h: New file.
48582         * elf/dl-misc.c: Include it.
48583         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48584         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48585
48586 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48587
48588         * math/libm-test.inc (noXFails): Remove variable.
48589         (noXPasses): Likewise.
48590         (BUILD_COMPLEX_INT): Remove macro.
48591         (print_screen): Remove xfail argument.
48592         (print_screen_max_error): Likewise.
48593         (update_stats): Likewise.
48594         (print_max_error): Likewise.  Update calls to other affected
48595         functions.
48596         (print_complex_max_error): Likewise.
48597         (test_single_exception): Update calls to print_screen.
48598         (test_single_errno): Likewise.
48599         (check_float_internal): Remove xfail argument.  Update calls to
48600         other affected functions.
48601         (check_float): Likewise.
48602         (check_complex): Likewise.
48603         (check_int): Likewise.
48604         (check_long): Likewise.
48605         (check_bool): Likewise.
48606         (check_longlong): Likewise.
48607         (main): Don't print noXFails and noXPasses.
48608         * math/gen-libm-test.pl (top level): Don't mention expected
48609         failure handling in comment.
48610         (new_test): Don't handle expected failures.
48611         (parse_args): Don't mention expected failure handling in comment.
48612         (generate_testfile): Don't handle expected failures.
48613         (parse_ulps): Likewise.
48614         (print_ulps_file): Likewise.
48615         (get_failure): Remove function.
48616         (output_test): Don't handle expected failures.
48617         * make/README.libm-test: Don't mention expected failure handling.
48618
48619         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48620         (minus_zero): Likewise.
48621         (plus_infty): Likewise.
48622         (minus_infty): Likewise.
48623         (qnan_value): Likewise.
48624         (max_value): Likewise.
48625         (min_value): Likewise.
48626         (min_subnorm_value): Likewise.
48627         (initialize): Do not initialize those variables dynamically.
48628
48629 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48630
48631         * io/open.c (__open_2): Moved to ...
48632         * io/open_2.c: ... this new file.
48633         * io/open64.c (__open64_2): Moved to ...
48634         * io/open64_2.c: ... this new file.
48635         * io/openat.c (__openat_2): Moved to ...
48636         * io/openat_2.c: ... this new file.
48637         * io/openat64.c (__openat64_2): Moved to ...
48638         * io/openat64_2.c: ... this new file.
48639         * io/Makefile (routines): Add them.
48640         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48641         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48642         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48643         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48644         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48645         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48646         (__openat64): Add hidden_ver.
48647         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48648         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48649
48650         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48651         Separately conditionalize setting of GLRO(dl_sysinfo) so
48652         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48653         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48654
48655 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48656
48657         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48658         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48659         definition.
48660         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48661         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48662         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48663         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48664         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48665
48666 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48667
48668         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48669         test signgam value.
48670
48671         * math/libm-test.inc (hypot_test): Do not use
48672         IGNORE_ZERO_INF_SIGN.
48673
48674 2013-05-03  Andreas Jaeger  <aj@suse.de>
48675
48676         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48677         Linux 3.9.
48678         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48679         (PF_MAX): Adjust for VSOCK change.
48680
48681 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48682
48683         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48684
48685 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48686
48687         [BZ #15264]
48688         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48689         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48690         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48691
48692 2013-05-02  David S. Miller  <davem@davemloft.net>
48693
48694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48695
48696 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48697
48698         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48699
48700 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48701
48702         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48703
48704 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48705
48706         [BZ #14952]
48707         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48708         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48709         Use __attribute__ ((__gnu_inline__)).
48710         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48711         Don't use __attribute__ ((__gnu_inline__)).
48712
48713 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48714
48715         [BZ #15423]
48716         * math/s_catan.c (__catan): Handle small real or imaginary part of
48717         input specially to avoid spurious underflow.
48718         * math/s_catanf.c (__catanf): Likewise.
48719         * math/s_catanh.c (__catanh): Likewise.
48720         * math/s_catanhf.c (__catanhf): Likewise.
48721         * math/s_catanhl.c (__catanhl): Likewise.
48722         * math/s_catanl.c (__catanl): Likewise.
48723         * math/libm-test.inc (catan_test): Add more tests.
48724         (catanh_test): Likewise.
48725         * sysdeps/i386/fpu/libm-test-ulps: Update.
48726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48727
48728 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48729
48730         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48731
48732 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48733
48734         [BZ #15416]
48735         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48736         accurately for denominator in atan2.
48737         * math/s_catanf.c (__catanf): Likewise.
48738         * math/s_catanh.c (__catanh): Likewise.
48739         * math/s_catanhf.c (__catanhf): Likewise.
48740         * math/s_catanhl.c (__catanhl): Likewise.
48741         * math/s_catanl.c (__catanl): Likewise.
48742         * math/libm-test.inc (catan_test): Add more tests.
48743         (catanh_test): Likewise.
48744         * sysdeps/i386/fpu/libm-test-ulps: Update.
48745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48746
48747 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48748
48749         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48750
48751         * benchtests/Makefile (bench): Remove slow benchmarks.
48752         * benchtests/atan-inputs: Add slow benchmark inputs.
48753         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48754         (BENCH_FUNC): Accept variant offset.
48755         (VARIANT): Define.
48756         * benchtests/bench-skeleton.c (main): Run benchmark for each
48757         variant.
48758         * benchtests/cos-inputs: Add slow benchmark inputs.
48759         * benchtests/exp-inputs: Likewise.
48760         * benchtests/pow-inputs: Likewise.
48761         * benchtests/sin-inputs: Likewise.
48762         * benchtests/slowatan-inputs: Remove.
48763         * benchtests/slowatan.c: Remove.
48764         * benchtests/slowcos-inputs: Remove.
48765         * benchtests/slowcos.c: Remove.
48766         * benchtests/slowexp-inputs: Remove.
48767         * benchtests/slowexp.c: Remove.
48768         * benchtests/slowpow-inputs: Remove.
48769         * benchtests/slowpow.c: Remove.
48770         * benchtests/slowsin-inputs: Remove.
48771         * benchtests/slowsin.c: Remove.
48772         * benchtests/slowtan-inputs: Remove.
48773         * benchtests/slowtan.c: Remove.
48774         * benchtests/tan-inputs: Add slow benchmark inputs.
48775         * scripts/bench.pl: Parse comments and directives.
48776
48777         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48778         in CPPFLAGS.
48779         ($(objpfx)bench-%.c): Remove *-ITER.
48780         * benchtests/bench-modf.c: Remove definition of ITER.
48781         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48782         (main): Loop for DURATION seconds instead of fixed number of
48783         iterations.
48784         * scripts/bench.pl: Don't expect iterations in parameters.
48785
48786 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48787
48788         * io/fchdir.c (__fchdir): Renamed from fchdir.
48789         (fchdir): Define as weak alias.
48790
48791 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48792
48793         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48794         (ERRNO_EDOM): Likewise.
48795         (ERRNO_ERANGE): Likewise.
48796         (noErrnoTests): New variable.
48797         (init_max_error): Set errno to 0.
48798         (test_single_errno): New function.
48799         (test_errno): Likewise.
48800         (check_float_internal): Call test_errno.  Set errno to 0.
48801         (check_complex): Refer to errno tests in comment.
48802         (check_int): Call test_errno.  Set errno to 0.
48803         (check_long): Likewise.
48804         (check_bool): Likewise.
48805         (check_longlong): Likewise.
48806         (cos_test): Use ERRNO_* flags for errno tests instead of
48807         check_int.
48808         (expm1_test): Likewise.
48809         (fmod_test): Likewise.
48810         (ilogb_test): Likewise.
48811         (lgamma_test): Likewise.
48812         (pow_test): Likewise.
48813         (remainder_test): Likewise.
48814         (sin_test): Likewise.
48815         (tan_test): Likewise.
48816         (yn_test): Likewise.
48817         (initialize): Set errno to 0.
48818         (main): Print number of errno tests.
48819         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48820
48821 2013-04-29  Andreas Jaeger  <aj@suse.de>
48822
48823         [BZ #15084]
48824         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48825         and RES_USEVC.
48826
48827         [BZ #15085]
48828         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48829         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48830         unimplemented.
48831
48832         [BZ #15380]
48833         * stdlib/random.c (__initstate): Return NULL if
48834         __initstate fails.
48835
48836         [BZ #15086]
48837         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48838         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48839         RES_SNGLKUPREOP.
48840
48841 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48842
48843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48844
48845 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48846
48847         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48848         of individual tests.
48849         (casin_test): Likewise.
48850         (casinh_test): Likewise.
48851
48852 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48853
48854         [BZ #15409]
48855         * math/s_catan.c (__catan): Handle arguments with large real or
48856         imaginary part separately without squaring.
48857         * math/s_catanf.c (__catanf): Likewise.
48858         * math/s_catanh.c (__catanh): Likewise.
48859         * math/s_catanhf.c (__catanhf): Likewise.
48860         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48861         and redefine.
48862         (__catanhl): Handle arguments with large real or imaginary part
48863         separately without squaring.
48864         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48865         and redefine.
48866         (__catanl): Handle arguments with large real or imaginary part
48867         separately without squaring.
48868         * math/libm-test.inc (catan_test): Add more tests.
48869         (catanh_test): Likewise.
48870         * sysdeps/i386/fpu/libm-test-ulps: Update.
48871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48872
48873 2013-04-27  Andreas Jaeger  <aj@suse.de>
48874
48875         [BZ #15007]
48876         * stdlib/stdlib.h: Update guards for qecvt.
48877         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48878         <stdlib.h>.
48879
48880 2013-04-27  Allan McRae  <allan@archlinux.org>
48881
48882         * sysdeps/i386/fpu/libm-test-ulps: Update.
48883
48884 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48885
48886         [BZ #15406]
48887         * math/s_catan.c: Include <float.h>.
48888         (__catan): Ensure underflow exception occurs for underflowed
48889         result.
48890         * math/s_catanf.c: Include <float.h>.
48891         (__catanf): Ensure underflow exception occurs for underflowed
48892         result.
48893         * math/s_catanh.c: Include <float.h>.
48894         (__catanh): Ensure underflow exception occurs for underflowed
48895         result.
48896         * math/s_catanhf.c: Include <float.h>.
48897         (__catanhf): Ensure underflow exception occurs for underflowed
48898         result.
48899         * math/s_catanhl.c: Include <float.h>.
48900         (__catanhl): Ensure underflow exception occurs for underflowed
48901         result.
48902         * math/s_catanl.c: Include <float.h>.
48903         (__catanl): Ensure underflow exception occurs for underflowed
48904         result.
48905         * math/libm-test.inc (catan_test): Add more tests.
48906         (catanh_test): Likewise.
48907
48908         [BZ #15405]
48909         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48910         underflowed result.
48911         * math/s_ccoshf.c (__ccoshf): Likewise.
48912         * math/s_ccoshl.c (__ccoshl): Likewise.
48913         * math/s_csin.c (__csin): Likewise.
48914         * math/s_csinf.c (__csinf): Likewise.
48915         * math/s_csinh.c (__csinh): Likewise.
48916         * math/s_csinhf.c (__csinhf): Likewise.
48917         * math/s_csinhl.c (__csinhl): Likewise.
48918         * math/s_csinl.c (__csinl): Likewise.
48919         * math/libm-test.inc (ccos_test): Add more tests.
48920         (ccosh_test): Likewise.
48921         (csin_test): Likewise.
48922         (csinh_test): Likewise.
48923
48924 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48925
48926         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48927         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48928         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48929         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48930         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48931         powerpc/power5+/fpu folders.
48932         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48933
48934
48935 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48936
48937         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48938
48939 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48940
48941         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48942         additions to variable.
48943         [$(config-machine) = x86_64] (modules-names): Likewise.
48944         ($(objpfx)tst-audit3): Remove dependency.
48945         ($(objpfx)tst-audit3.out): Likewise.
48946         ($(objpfx)tst-audit4): Likewise.
48947         ($(objpfx)tst-audit4.out): Likewise.
48948         ($(objpfx)tst-audit5): Likewise.
48949         ($(objpfx)tst-audit5.out): Likewise.
48950         ($(objpfx)tst-audit6): Likewise.
48951         ($(objpfx)tst-audit6.out): Likewise.
48952         ($(objpfx)tst-audit7): Likewise.
48953         ($(objpfx)tst-audit7.out): Likewise.
48954         (tst-audit3-ENV): Remove variable.
48955         (tst-audit4-ENV): Likewise.
48956         (tst-audit5-ENV): Likewise.
48957         (tst-audit6-ENV): Likewise.
48958         (tst-audit7-ENV): Likewise.
48959         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48960         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48961         addition to variable.
48962         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48963         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48964         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48965         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48966         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48967         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48968         tst-audit3, tst-audit4 and tst-audit5.
48969         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48970         tst-audit6 and tst-audit7.
48971         [$(subdir) = elf] (modules-names): Add audit modules for those
48972         tests.
48973         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48974         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48975         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48976         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48977         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48978         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48979         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48980         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48981         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48982         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48983         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48984         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48985         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48986         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48987         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48988         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48989         Likewise.
48990         [$(subdir) = elf && $(config-cflags-avx) = yes]
48991         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48992         [$(subdir) = elf && $(config-cflags-avx) = yes]
48993         (CFLAGS-tst-auditmod4a.c): Likewise.
48994         [$(subdir) = elf && $(config-cflags-avx) = yes]
48995         (CFLAGS-tst-auditmod4b.c): Likewise.
48996         [$(subdir) = elf && $(config-cflags-avx) = yes]
48997         (CFLAGS-tst-auditmod6b.c): Likewise.
48998         [$(subdir) = elf && $(config-cflags-avx) = yes]
48999         (CFLAGS-tst-auditmod6c.c): Likewise.
49000         [$(subdir) = elf && $(config-cflags-avx) = yes]
49001         (CFLAGS-tst-auditmod7b.c): Likewise.
49002         * elf/tst-audit3.c: Move to ...
49003         * sysdeps/x86_64/tst-audit3.c: ... here.
49004         * elf/tst-audit4.c: Move to ...
49005         * sysdeps/x86_64/tst-audit4.c: ... here.
49006         * elf/tst-audit5.c: Move to ...
49007         * sysdeps/x86_64/tst-audit5.c: ... here.
49008         * elf/tst-audit6.c: Move to ...
49009         * sysdeps/x86_64/tst-audit6.c: ... here.
49010         * elf/tst-audit7.c: Move to ...
49011         * sysdeps/x86_64/tst-audit7.c: ... here.
49012         * elf/tst-auditmod3a.c: Move to ...
49013         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49014         * elf/tst-auditmod3b.c: Move to ...
49015         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49016         * elf/tst-auditmod4a.c: Move to ...
49017         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49018         * elf/tst-auditmod4b.c: Move to ...
49019         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49020         * elf/tst-auditmod5a.c: Move to ...
49021         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49022         * elf/tst-auditmod5b.c: Move to ...
49023         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49024         * elf/tst-auditmod6a.c: Move to ...
49025         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49026         * elf/tst-auditmod6b.c: Move to ...
49027         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49028         * elf/tst-auditmod6c.c: Move to ...
49029         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49030         * elf/tst-auditmod7a.c: Move to ...
49031         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49032         * elf/tst-auditmod7b.c: Move to ...
49033         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49034
49035 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49036
49037         [BZ #15366]
49038         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49039         define unconditionally.
49040         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49041         define unconditionally.
49042         (INT8_C, INT16_C, etc.): Likewise.
49043
49044 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49045
49046         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49047         __ehdr_start with hidden visibility.
49048
49049         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49050
49051 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49052
49053         * math/libm-test.inc (cos_test): Use accurate hex constants.
49054         (sincost_test): Likewise.
49055
49056 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49057
49058         * math/libm-test.inc (catan_test): Add more tests.
49059         (catanh_test): Likewise.
49060
49061         * math/s_catanf.c (__catanf): Use suffixed floating-point
49062         constants.
49063         * math/s_catanhf.c (__catanhf): Likewise.
49064         * math/s_catanhl.c (__catanhl): Likewise.
49065         * math/s_catanl.c (__catanl): Likewise.
49066
49067         [BZ #15394]
49068         * math/s_catan.c (__catan): Calculate imaginary part of result
49069         with log1p not log unless computing log of number close to 0.
49070         * math/s_catanf.c (__catanf): Likewise.
49071         * math/s_catanl.c (__catanl): Likewise.
49072         * math/s_catanh.c (__catanh): Calculate real part of result with
49073         log1p not log unless computing log of number close to 0.
49074         * math/s_catanhf.c (__catanhf): Likewise.
49075         * math/s_catanhl.c (__catanhl): Likewise.
49076         * math/libm-test.inc (catan_test): Add more tests.
49077         (catanh_test): Likewise.
49078         * sysdeps/i386/fpu/libm-test-ulps: Update.
49079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49080
49081 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49082
49083         * benchtests/Makefile: Mention files in which fast and slow
49084         paths of math functions are implemented.
49085
49086 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49087
49088         * sysdeps/posix/timespec_get.c: New file.
49089
49090 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49091
49092         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49093         POWER.
49094         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49095         for POWER.
49096         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49097         powerpc/power5/fpu folders.
49098         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49099         * benchtests/Makefile: Add modf testcase.
49100         * benchtests/bench-modf.c: New file: Benchmark test for mo
49101
49102 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49103
49104         [BZ #14888]
49105         * time/Makefile (tests): Add tst-strptime-whitespace.
49106         * time/strptime_l.c (get_number): Use ISSPACE.
49107         (__strptime_internal): Likewise.
49108         * time/tst-strptime-whitespace.c: New test case.
49109
49110 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49111
49112         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49113         member.
49114         (_nss_files_init): Set it here.
49115
49116 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49117
49118         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49119         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49120         unsigned.
49121
49122 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49123
49124         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49125
49126 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49127
49128         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49129         size just once.
49130
49131 2013-04-21  David S. Miller  <davem@davemloft.net>
49132
49133         * po/ru.po: Update Russion translation from translation project.
49134
49135 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49136
49137         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49138         and setfsgid.
49139
49140 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49141
49142         * configure.in: Remove i386 configure warning. Remove i386 case.
49143         * configure: Regenerate.
49144         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49145         Add example to error message.
49146         * sysdeps/i386/configure: Regenerate.
49147
49148 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49149
49150         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49151         slowtan.
49152         * benchtests/cos-inputs: New file.
49153         * benchtests/slowcos-inputs: New file.
49154         * benchtests/slowcos.c: New file.
49155         * benchtests/slowtan-inputs: New file.
49156         * benchtests/slowtan.c: New file.
49157         * benchtests/tan-inputs: New file.
49158
49159 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49160
49161         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49162         considered kosher.
49163
49164 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49165
49166         * benchtests/Makefile: Include cppflags-iterator.mk to add
49167         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49168
49169         * Makefile.in (bench-clean): New target.
49170         * benchtests/Makefile (bench-clean): Likewise.
49171
49172 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49173
49174         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49175
49176 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49177
49178         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49179
49180 2013-04-15  Andreas Schwab  <schwab@suse.de>
49181
49182         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49183         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49184         * nscd/pwdcache.c (cache_addpw): Likewise.
49185         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49186         more than recsize.
49187
49188 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49189
49190         * benchtests/Makefile (bench): Write all output to
49191         bench-out.tmp together.
49192
49193 2013-04-15  Andreas Schwab  <schwab@suse.de>
49194
49195         * nscd/nscd.c (main): Don't fork again after closing files.
49196
49197 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49198
49199         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49200
49201         * benchtests/Rules (bench-deps): Collect dependencies into a
49202         single variable.  Add Makefile to dependencies.
49203         ($(objpfx)bench-%.c): Depend on bench-deps.
49204
49205 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49206             Xavier Roche  <roche+kml2@exalead.com>
49207
49208         [BZ #15361]
49209         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49210         just that it's a file descriptor.
49211         * manual/llio.texi (Synchronizing AIO Operations): Update description
49212         for EBADF error from aio_fsync.
49213
49214 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49215
49216         * Rules (bench): Move target definition...
49217         * benchtests/Makefile: ... here.
49218
49219 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49220
49221         * math/libm-test.inc (cos_test): Fix PI/2 test.
49222         (sincos_test): Likewise.
49223         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49224         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49225
49226 2013-04-11  Andreas Schwab  <schwab@suse.de>
49227
49228         [BZ #13988]
49229         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49230         accept exponent character only when digits were seen.
49231         * stdio-common/Makefile (tests): Add bug26.
49232         * stdio-common/bug26.c: New file.
49233
49234         [BZ #14293]
49235         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49236         non-freeable.
49237
49238 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49239
49240         * Makeconfig (rtld-prefix): Define built linker prefix.
49241         * Rules (run-bench): Use it.
49242         * math/Makefile (run-regen-ulps): Likewise.
49243
49244         * Rules (bench): Remove eval.
49245
49246 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49247             Roland McGrath  <roland@hack.frob.com>
49248             Ondrej Bilka  <neleai@seznam.cz>
49249
49250         [BZ #15346]
49251         * time/getdate.c: Include ctype.h and alloca.h.
49252         (__getdate_r): Trim leading and trailing spaces of input.
49253         * time/tst-getdate.c (tests): Add tests with leading and
49254         trailing spaces.
49255
49256 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49257
49258         [BZ #14280]
49259         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49260         when computing value.
49261
49262 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49263
49264         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49265         Use testrun.sh to run libm tests.
49266
49267         [BZ #15309]
49268         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49269
49270 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49271
49272         [BZ #15264]
49273         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49274
49275 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49276
49277         * Makefile.in (regen-ulps): New target.
49278         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49279         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49280         [ifneq (no,$(PERL)] (regen-ulps): New target.
49281         [ifeq (no,$(PERL)] (regen-ulps): New target.
49282         * math/libm-test.inc (ulps_file_name): Define.
49283         (output_dir): New variable.
49284         (options): Add "output-dir" option.
49285         (parse_opt): Handle 'o' case.
49286         (main): If output_dir is non-NULL use it as a prefix
49287         otherwise use "".
49288         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49289
49290 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49291
49292         [BZ #10060, #10062]
49293         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49294         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49295         fail configure if __sync_val_compare_and_swap is not inlined.
49296         * sysdeps/i386/configure: Regenerate.
49297         * configure.in: Build for i686 when configured for i386.
49298         * configure: Regenerate.
49299         * README: Remove i386 reference.
49300
49301 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49302
49303         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49304         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49305
49306 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49307
49308         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49309         (lmsnanval): New variables.
49310         (F): Add conversion tests.
49311         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49312         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49313
49314         * stdio-common/tstdiomisc.c (F): Properly collect individual
49315         tests' results.
49316
49317         [BZ #14686, #15336]
49318         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49319         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49320         Instead, use input NaN values or generate a qNaN by arithmetic
49321         operation.  Also fix bugs to comply with the standard.
49322         * math/libm-test.inc (remainder_test): Add more tests.
49323
49324         [BZ #15335, #15342]
49325         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49326         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49327         input NaN values or generate a qNaN by arithmetic operation.
49328
49329         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49330         unreachable code.
49331
49332         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49333         definitions.
49334
49335 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49336
49337         [BZ #14478]
49338         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49339         underflowed result.
49340         * math/s_cexpf.c (__cexpf): Likewise.
49341         * math/s_cexpl.c (__cexpl): Likewise.
49342         * math/libm-test.inc (cexp_test): Add more tests.
49343
49344 2013-04-03  Andreas Schwab  <schwab@suse.de>
49345
49346         [BZ #15330]
49347         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49348         order arrays from heap if bigger than alloca cutoff.
49349
49350 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49351
49352         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49353         (SNAN_TESTS_double): Refer to GCC PR56831.
49354         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49355         GCC PR56828.
49356
49357 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49358
49359         * Rules (bench): Move bench.out after the run is complete.
49360
49361         * Rules (bench): Echo currently running benchmark.
49362
49363         * benchtests/Makefile (bench): Add atan and slowatan.
49364         * benchtests/atan-inputs: New file.
49365         * benchtests/slowatan-inputs: New file.
49366         * benchtests/slowatan.c: New file.
49367
49368         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49369         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49370         its value.
49371
49372         [BZ #15305]
49373         * sysdeps/unix/sysv/linux/kernel-features.h
49374         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49375         __ASSUME_XFS_RESTRICTED_CHOWN.
49376         * sysdeps/unix/sysv/linux/pathconf.c
49377         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49378         Save and restore errno.
49379
49380 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49381
49382         [BZ #15327]
49383         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49384         arguments using __kernel_casinh.
49385         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49386         arguments using __kernel_casinhf.
49387         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49388         arguments using __kernel_casinhl.
49389         * math/libm-test.inc (cacosh_test): Add more tests.
49390         * sysdeps/i386/fpu/libm-test-ulps: Update.
49391         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49392
49393 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49394
49395         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49396         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49397
49398         * bench/Makefile (bench): Add sin and slowsin.
49399         * benchtests/sin-inputs: New file.
49400         * benchtests/slowsin-inputs: New file.
49401         * benchtests/slowsin.c: New file.
49402
49403         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49404         (bench): Add slowexp and slowpow.
49405         (exp-ITER): Increase iterations.
49406         (pow-ITER): Likewise.
49407         * benchtests/exp-inputs: Change input.
49408         * benchtests/pow-inputs: Likewise.
49409         * benchtests/slowexp-inputs: New file.
49410         * benchtests/slowexp.c: New file.
49411         * benchtests/slowpow-inputs: New file.
49412         * benchtests/slowpow.c: New file.
49413
49414 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49415
49416         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49417         instructions.
49418         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49419         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49420         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49421         * benchtests/Makefile: Add rint benchtest.
49422         * benchtests/rint-inputs: Input for rint benchtest.
49423
49424 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49425
49426         * Versions.def (libm): Add GLIBC_2.18.
49427         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49428         hidden libm prototypes.
49429         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49430         * math/Makefile (libm-calls): Add s_issignaling.
49431         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49432         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49433         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49434         declaration.
49435         * math/math.h [__USE_GNU] (issignaling): New macro.
49436         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49437         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49438         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49439         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49440         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49441         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49442         * manual/arith.texi (issignaling): New section.
49443         * manual/libm-err-tab.pl (@all_functions): Update comment.
49444         * math/gen-libm-test.pl (parse_args): Apply special handling for
49445         issignaling.
49446         * math/libm-test.inc (print_float, issignaling_test): New
49447         functions.
49448         (check_float_internal): Add issignaling checks.
49449         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49450         default definition.
49451         * sysdeps/powerpc/math-tests.h: New file.
49452         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49453         tests.
49454         * math/test-snan.c (TEST_FUNC): Likewise.
49455
49456 2013-03-30  David S. Miller  <davem@davemloft.net>
49457
49458         * po/de.po: Update from translation team.
49459
49460 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49461
49462         [BZ #10357]
49463         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49464         imaginary part less than 1.0 and real part less than 0.5
49465         specially.
49466         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49467         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49468         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49469         (cacos_test): Add more tests.
49470         (casin_test): Likewise.
49471         (casinh_test): Likewise.
49472         * sysdeps/i386/fpu/libm-test-ulps: Update.
49473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49474
49475 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49476
49477         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49478         ONE with its value.
49479
49480         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49481         (__pow_mp): Replace ONE and MONE with their values.
49482         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49483         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49484         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49485         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49486         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49487         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49488
49489         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49490
49491         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49492         (__pow_mp): Replace ZERO and MZERO with their values.
49493         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49494         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49495         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49496         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49497         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49498         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49499         (__sqr): Likewise.
49500
49501         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49502
49503         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49504
49505 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49506
49507         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49508         Declare with __attribute__ ((weak)).
49509         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49510         Call __call_tls_dtors only if it's not NULL.
49511
49512 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49513
49514         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49515         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49516         magic __ehdr_start linker symbol if it's defined.
49517         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49518         them up here if it was already done.
49519
49520         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49521         (_dl_aux_init): Use const in cast when setting it.
49522         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49523         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49524         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49525
49526         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49527         Declare them here.
49528         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49529         * csu/libc-tls.c: Nor here.
49530         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49531
49532         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49533         (__libc_message): Never call vsyslog.
49534
49535 2013-03-28  Alan Modra  <amodra@gmail.com>
49536
49537         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49538         Define as empty.
49539         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49540         Likewise.
49541
49542 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49543
49544         [BZ #15214]
49545         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49546         underflow.
49547         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49548
49549 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49550
49551         [BZ #15304]
49552         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49553         Don't add gid passed as argument.
49554
49555         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49556
49557 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49558
49559         [BZ #15307]
49560         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49561         imaginary part between 1.0 and 1.5 and real part less than 0.5
49562         specially.
49563         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49564         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49565         * math/libm-test.inc (cacos_test): Add more tests.
49566         (casin_test): Likewise.
49567         (casinh_test): Likewise.
49568         * sysdeps/i386/fpu/libm-test-ulps: Update.
49569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49570
49571 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49572
49573         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49574         constants.
49575         (norm): Likewise.
49576         (denorm): Likewise.
49577         (__dbl_mp): Likewise.
49578         (add_magnitudes): Likewise.
49579         (sub_magnitudes): Likewise.
49580         (__add): Likewise.
49581         (__sub): Likewise.
49582         (__mul): Likewise.
49583         (__sqr): Likewise.
49584         (__inv): Likewise.
49585         (__dvd): Likewise.
49586
49587         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49588         commented code.
49589         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49590         (__dubcos): Likewise.
49591         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49592         (__ieee754_acos): Likewise.
49593         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49594         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49595         (__exp1): Likewise.
49596         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49597         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49598         (log1): Likewise.
49599         (my_log2): Likewise.
49600         (checkint): Likewise.
49601         * sysdeps/ieee754/dbl-64/e_remainder.c
49602         (__ieee754_remainder): Likewise.
49603         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49604         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49605         (bsloww): Likewise.
49606         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49607
49608         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49609         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49610         MANTISSA_STORE_T to store computations on mantissa.  Use
49611         macros for rounding and division.
49612         (denorm): Likewise.
49613         (__dbl_mp): Likewise.
49614         (add_magnitudes): Likewise.
49615         (sub_magnitudes): Likewise.
49616         (__mul): Likewise.
49617         (__sqr): Likewise.
49618         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49619         powers of two in terms of TWOPOW macro.
49620         (mp_no): Make type of mantissa as MANTISSA_T.
49621         [!RADIXI]: Define RADIXI.
49622         [!TWO52]: Define TWO52.
49623         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49624
49625 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49626
49627         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49628         llroundl symbol when building for PPC32.
49629
49630 2013-03-24  Mark H Weaver  <mhw@netris.org>
49631
49632         * manual/arith.texi (Normalization Functions): Fix prototypes for
49633         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49634
49635 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49636
49637         [BZ #13889]
49638         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49639         high value to check if expl overflow.
49640         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49641         to check for underflow and overflow.
49642         * math/libm-test.inc: Add exp test.
49643
49644 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49645
49646         [BZ #11120]
49647         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49648         with NOT_IN_libc.
49649
49650 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49651
49652         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49653         symbol.
49654
49655 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49656
49657         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49658         wrap blocks consisting of several statements.
49659
49660         * sysdeps/generic/math-tests.h: New file.
49661         * sysdeps/i386/fpu/math-tests.h: Likewise.
49662         * math/test-snan.c: Include it.
49663         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49664
49665 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49666
49667         [BZ #15285]
49668         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49669         (__ieee754_j0l): Do not improve calculations using cos of twice
49670         input for inputs above LDBL_MAX / 2.0L.
49671         (__ieee754_y0l): Likewise.
49672         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49673         (__ieee754_j1l): Do not improve calculations using cos of twice
49674         input for inputs above LDBL_MAX / 2.0L.
49675         (__ieee754_y1l): Likewise.
49676         * math/libm-test.inc (j0_test): Add another test.
49677         (j1_test): Likewise.
49678         (y0_test): Likewise.
49679         (y1_test): Likewise.
49680         * sysdeps/i386/fpu/libm-test-ulps: Update.
49681
49682 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49683
49684         * Rules ($(objpfx)bench-%.c): Include code from a C source
49685         file.
49686
49687 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49688
49689         [BZ #15287]
49690         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49691         imaginary part 1.0 and real part less than 0.5 specially.
49692         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49693         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49694         * math/libm-test.inc (cacos_test): Add more tests.
49695         (casin_test): Likewise.
49696         (casinh_test): Likewise.
49697         * sysdeps/i386/fpu/libm-test-ulps: Update.
49698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49699
49700 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49701
49702         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49703         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49704
49705 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49706
49707         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49708         * config.make.in (config-cflags-sse4): Remove variable.
49709         (config-cflags-avx): Likewise.
49710         (config-cflags-sse2avx): Likewise.
49711         (config-cflags-novzeroupper): Likewise.
49712         (config-asflags-i686): Likewise.
49713         (have-mfma4): Likewise.
49714         (have-as-vis3): Likewise.
49715         (MIG): Likewise.
49716         * configure.in (MIG): Do not AC_SUBST.
49717         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49718         (libc_cv_cc_sse4): Do not AC_SUBST.
49719         (libc_cv_cc_avx): Likewise.
49720         (libc_cv_cc_sse2avx): Likewise.
49721         (libc_cv_cc_novzeroupper): Likewise.
49722         (libc_cv_cc_fma4): Likewise.
49723         (libc_cv_as_i686): Likewise.
49724         (libc_cv_sparc_as_vis3): Likewise.
49725         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49726         LIBC_CONFIG_VAR.
49727         (config-asflags-i686): Likewise.
49728         (config-cflags-avx): Likewise.
49729         (config-cflags-sse2avx): Likewise.
49730         (have-mfma4): Likewise.
49731         (config-cflags-novzeroupper): Likewise.
49732         * sysdeps/mach/configure.in (MIG): Likewise.
49733         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49734         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49735         LIBC_CONFIG_VAR.
49736         (config-cflags-avx): Likewise.
49737         (config-cflags-sse2avx): Likewise.
49738         (have-mfma4): Likewise.
49739         (config-cflags-novzeroupper): Likewise.
49740         * configure: Regenerated.
49741         * sysdeps/i386/configure: Likewise.
49742         * sysdeps/mach/configure: Likewise.
49743         * sysdeps/sparc/configure: Likewise.
49744         * sysdeps/x86_64/configure: Likewise.
49745
49746 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49747
49748         [BZ #14812]
49749         * locale/programs/localedef.c (options): Put N_ translation marker
49750         on argument names, not just descriptions.
49751
49752 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49753
49754         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49755
49756 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49757
49758         [BZ #14176]
49759         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49760
49761 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49762
49763         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49764         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49765         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49766         [!BEFORE_ABORT] (before_abort): New function.
49767         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49768         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49769         (writev_for_fatal): New function.
49770         (WRITEV_FOR_FATAL): New macro; call that.
49771         (backtrace_and_maps): New function.
49772         (BEFORE_ABORT): New macro; call that.
49773         (struct str_list): Type removed.
49774         (__libc_message, __libc_fatal): Functions removed.
49775         Include <sysdeps/posix/libc_fatal.c> instead.
49776
49777 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49778
49779         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49780         constants.
49781         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49782         double constants.
49783
49784 2013-03-19  Andreas Schwab  <schwab@suse.de>
49785
49786         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49787         * sysdeps/gnu/configure: Regenerate.
49788
49789         * configure.in: Substitute libc_cv_rtlddir.
49790         * configure: Regenerate.
49791         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49792         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49793         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49794         * elf/Makefile (install-others, CFLAGS-interp.c)
49795         (ldso_install, common-ldd-rewrite): Likewise.
49796         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49797         $(inst_slibdir)/$(rtld-installed-name).
49798         * scripts/rellns-sh: Add -p option.
49799         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49800         for source.
49801
49802 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49803
49804         * manual/nptl.texi: Renamed to ...
49805         * manual/threads.texi: ... this.
49806         * manual/Makefile (chapters): Update.
49807
49808 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49809
49810         [BZ #14812]
49811         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49812         on argument names, not just descriptions.
49813         * malloc/memusagestat.c (options): Likewise.
49814         * nss/getent.c (options): Likewise.
49815
49816 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49817
49818         [BZ #14812]
49819         * iconv/iconv_prog.c (options): Put N_ translation marker
49820         on argument names, not just descriptions.
49821         * iconv/iconvconfig.c (options): Likewise.
49822
49823 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49824
49825         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49826         implementation which is faster on all x86_64 architectures.
49827         Tested on AMD, Intel Nehalem, SNB, IVB.
49828         * sysdeps/x86_64/strnlen.S: Likewise.
49829
49830         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49831         Remove all multiarch strlen and strnlen versions.
49832         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49833         Remove strlen and strnlen related parts.
49834
49835         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49836         Inline strlen part.
49837         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49838
49839         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49840         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49841         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49842         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49843         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49844         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49845
49846 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49847
49848         * manual/memory.texi (Malloc Tunable Parameters):
49849         Sort parameters alphabetically. Add comments for missing entries.
49850
49851 2013-03-17  David S. Miller  <davem@davemloft.net>
49852
49853         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49854
49855 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49856
49857         [BZ #15283]
49858         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49859         for arguments at most half maximum finite value.
49860         * math/libm-test.inc (j0_test): Add more tests.
49861         (j1_test): Likewise.
49862         (y0_test): Likewise.
49863         (y1_test): Likewise.
49864         * sysdeps/i386/fpu/libm-test-ulps: Update.
49865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49866
49867         [BZ #14155]
49868         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49869         1 / x and functions P and Q for arguments above 0x1p256L.
49870         (__ieee754_y0l): Likewise.
49871         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49872         (__ieee754_y1l): Likewise.
49873         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49874         (j1_test): Likewise.
49875         (y0_test): Likewise.
49876         (y1_test): Likewise.
49877
49878 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49879
49880         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49881         variable.
49882
49883 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49884
49885         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49886         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49887         zero since it's initialized to EXEC_PAGESIZE.
49888
49889         * sysdeps/unix/sysv/linux/ldsodefs.h
49890         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49891         * sysdeps/generic/ldsodefs.h: ... here.
49892
49893 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49894
49895         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49896
49897         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49898         math/test-snan.c.
49899         * math/test-snan.c: Renamed from
49900         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49901         * math/Makefile (tests): Add test-snan.
49902         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49903         test-powerpc-snan.
49904
49905         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49906         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49907         functions.
49908         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49909         __builtin_nan family of functions.
49910         * math/libm-test.inc (initialize): Initialize qnan_value with
49911         __builtin_nan family of functions.
49912         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49913         Remove variables.
49914         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49915         Remove functions.
49916         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49917         storage class.  Initialize qNaN_var and sNaN_var with
49918         __builtin_nan and __builtin_nans families of functions,
49919         respectively.
49920
49921         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49922         (sqrt_test): Remove duplicate test with qNaN input.
49923         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49924         (round_test, signbit_test, significand_test): Note missing +/-Inf
49925         as well as qNaN tests.
49926
49927         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49928         qNaN_var.  Fix a few strings, too.
49929         * math/libm-test.inc (nan_value): Rename to qnan_value.
49930         * math/gen-libm-test.pl (%beautify): Adjust to that.
49931         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49932         * math/test-misc.c (main): Likewise.
49933         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49934         to __qnan_bytes, and __qnan_union, respectively.
49935         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49936         Likewise.
49937         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49938         and lqnanval, respectively.
49939         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49940         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49941         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49942         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49943
49944         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49945         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49946         doubles.
49947
49948         * math/test-misc.c (main): Fix copy'n'pastos.
49949         * misc/tst-efgcvt.c (special): Likewise.
49950
49951         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49952         Remove declarations.
49953
49954 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49955
49956         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49957         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49958         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49959         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49960
49961 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49962
49963         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49964         macro to return vdso values correctly in IFUNC implementations.
49965         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49966         Optimization by using IFUNC.
49967
49968 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49969             Richard Henderson  <rth@redhat.com>
49970             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49971
49972         * Makefile.in (bench): New target.
49973         * NEWS: Mention the benchmark framework.
49974         * Rules (bench): Likewise.
49975         (binaries-bench): Generate binaries for functions to
49976         benchmark.
49977         * benchtests/Makefile: New makefile for benchmark tests.
49978         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49979         programs.
49980         * benchtests/exp-inputs: New input file for EXP function.
49981         * benchtests/pow-inputs: New input file for POW function.
49982         * scripts/bench.pl: New script to generate source files for
49983         benchmark programs.
49984
49985 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49986
49987         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49988         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49989         computations on mantissa.  Use macros for rounding and
49990         division.
49991         (denorm): Likewise.
49992         (__dbl_mp): Likewise.
49993         (add_magnitudes): Likewise.
49994         (sub_magnitudes): Likewise.
49995         (__mul): Likewise.
49996         (__sqr): Likewise.
49997         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49998         powers of two in terms of TWOPOW macro.
49999         (mp_no): Make type of mantissa as MANTISSA_T.
50000         [!RADIXI]: Define RADIXI.
50001         [!TWO52]: Define TWO52.
50002         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50003
50004         * manual/nptl.texi (cindex): Modify threads to pthreads.
50005
50006 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50007
50008         * sysdeps/x86_64/preconfigure: Regenerated.
50009
50010 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50011
50012         [BZ #14155]
50013         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50014         0x1p28 and above.
50015         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50016         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50017         0x1p28 and above.
50018         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50019         * math/libm-test.inc (j0_test): Do not allow one spurious
50020         underflow exception.
50021         (y1_test): Likewise.
50022
50023 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50024
50025         * manual/Makefile (chapters): Add nptl.
50026         * manual/debug.texi (Debugging Support): Add link to Threads
50027         chapter.
50028         * manual/nptl.texi: New file.
50029
50030         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50031
50032 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50033
50034         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50035         for non-NULL pointer before the memory validity test. Pointed
50036         out by Holger Brunck <holger.brunck@keymile.com>.
50037
50038 2013-03-13  Andreas Schwab  <schwab@suse.de>
50039
50040         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50041         instead of .os.
50042
50043 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50044
50045         * timezone/zic.c: Update from tzcode 2013b.
50046
50047 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50048
50049         * manual/install.texi (Configuring and compiling):
50050         Mention i686 and i586.
50051         * INSTALL: Regenerate.
50052
50053 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50054
50055         * sysdeps/init_array/elf-init.c: New file.
50056         * csu/elf-init.c
50057         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50058         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50059
50060         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50061         __gmon_start__ as global, but as static with a .preinit_array pointer.
50062         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50063         * sysdeps/init_array/crti.S: New file, empty except for comments.
50064         * sysdeps/init_array/crtn.S: Likewise.
50065
50066 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50067
50068         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50069         definining bcopy.
50070         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50071         Remove Prefer_SSE_for_memop.
50072         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50073         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50074         HAS_PREFER_SSE_FOR_MEMOP.
50075         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50076         memset-x86-64.
50077         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50078         Remove bzero, memset ifunc support.
50079         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50080         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50081         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50082         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50083
50084 2013-03-11  Andreas Schwab  <schwab@suse.de>
50085
50086         [BZ #15234]
50087         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50088         by SHLIB_COMPAT.
50089         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50090         (GLIBC_2.16): Remove pthread_atfork.
50091
50092 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50093
50094         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50095         (ptestcases.h): Likewise.
50096
50097 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50098
50099         * Makeconfig ($(common-objpfx)config.status): Depend on
50100         sysdeps/*/preconfigure{,.in} too.
50101
50102 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50103
50104         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50105         (__free_hook): Use void * instead of __malloc_ptr_t.
50106         (__malloc_hook): Likewise.
50107         (__realloc_hook): Likewise.
50108         (__memalign_hook): Likewise.
50109         (__after_morecore_hook): Likewise.
50110         * malloc/arena.c (save_malloc_hook): Likewise.
50111         (save_free_hook): Likewise.
50112         * malloc/hooks.c (malloc_hook_ini): Likewise.
50113         (realloc_hook_ini): Likewise.
50114         (memalign_hook_ini): Likewise.
50115         * malloc/malloc.c (malloc_hook_ini): Likewise.
50116         (realloc_hook_ini): Likewise.
50117         (memalign_hook_ini): Likewise.
50118         (__free_hook): Likewise.
50119         (__malloc_hook): Likewise.
50120         (__realloc_hook): Likewise.
50121         (__memalign_hook): Likewise.
50122         (__libc_malloc): Likewise.
50123         (__libc_free): Likewise.
50124         (__libc_realloc): Likewise.
50125         (__libc_memalign): Likewise.
50126         (__libc_valloc): Likewise.
50127         (__libc_pvalloc): Likewise.
50128         (__libc_calloc): Likewise.
50129         (__posix_memalign): Likewise.
50130         * malloc/morecore.c (__sbrk): Likewise.
50131         (__default_morecore): Likewise.
50132
50133         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50134
50135         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50136         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50137         __malloc_ptrdiff_t.
50138
50139         * malloc/malloc.h (__malloc_size_t): Remove macro.
50140         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50141         __malloc_size_t.
50142         (old_memalign_hook): Likewise.
50143         (old_realloc_hook): Likewise.
50144         (struct hdr): Likewise.
50145         (flood): Likewise.
50146         (mallochook): Likewise.
50147         (memalignhook): Likewise.
50148         (reallochook): Likewise.
50149         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50150         (tr_old_realloc_hook): Likewise.
50151         (tr_old_memalign_hook): Likewise.
50152         (tr_mallochook): Likewise.
50153         (tr_reallochook): Likewise.
50154         (tr_memalignhook): Likewise.
50155
50156 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50157
50158         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50159         default_ldbl_pack and using as default implementation.
50160         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50161         implementation.
50162         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50163         redundant definition.
50164         (ldbl_insert_mantissa): Likewise.
50165         (ldbl_canonicalize): Likewise.
50166         (ldbl_nearbyint): Likewise.
50167         (ldbl_pack): Rename to ldbl_pack_ppc.
50168         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50169         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50170         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50171
50172 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50173
50174         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50175         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50176         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50177         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50178         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50179         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50180         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50181         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50182
50183 2013-03-07  Andreas Jaeger  <aj@suse.de>
50184
50185         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50186         bits/mman-linux.h.
50187
50188 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50189
50190         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50191         Include mpa.h and declare __MPEXP.
50192         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50193         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50194         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50195         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50196         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50197         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50198         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50199
50200         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50201         (__slowpow): Use long double EXPL and LOGL functions to
50202         compute POW.
50203         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50204         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50205         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50206         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50207         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50208         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50209
50210         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50211         intermediate variable to calculate exponent.
50212         (__sqr): Likewise.
50213         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50214         Likewise.
50215         (__sqr): Likewise.
50216
50217         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50218         [!NO__SQR]: Define __sqr.
50219         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50220         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50221         sysdeps/ieee754/dbl-64/mpa.c.
50222         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50223
50224         [BZ #12723]
50225         * posix/Makefile (tests): Add tst-pathconf.
50226         * posix/tst-pathconf.c: New test case.
50227         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50228         _PC_PIPE_BUF.
50229         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50230
50231 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50232
50233         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50234
50235 2013-03-06  Andreas Jaeger  <aj@suse.de>
50236
50237         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50238         definition via __MAP_ANONYMOUS.
50239
50240         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50241         it's not part of Linux headers.
50242
50243         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50244         (MAP_HUGE_MASK): Define.
50245
50246         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50247         Define.
50248         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50249         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50250         Define.
50251         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50252         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50253         Define.
50254         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50255         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50256         Define.
50257         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50258
50259         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50260         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50261         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50262         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50263         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50264         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50265
50266         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50267         Handle f2fs.
50268
50269         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50270         Handle f2fs and efivarfs.
50271
50272         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50273         f2fs.
50274
50275         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50276         (EFIVARFS_MAGIC): Add.
50277         (F2FS_LINK_MAX): Add.
50278
50279 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50280
50281         * stdio-common/vfprintf.c: Replace __builtin_expect with
50282         __glibc_unlikely.
50283
50284 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50285
50286         [BZ #13550]
50287         * sysdeps/generic/bp-sym.h: Remove file.
50288         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50289         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50290         <bp-sym.h> and <bp-asm.h>.
50291         (__longjmp): Don't use BP_SYM.
50292         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50293         and <bp-asm.h>.
50294         (memcpy): Don't use BP_SYM.
50295         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50296         <bp-sym.h> and <bp-asm.h>.
50297         (memcpy): Don't use BP_SYM.
50298         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50299         <bp-asm.h>.
50300         (memcpy): Don't use BP_SYM.
50301         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50302         <bp-asm.h>.
50303         (memset): Don't use BP_SYM.
50304         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50305         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50306         (__bzero): Don't use BP_SYM.
50307         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50308         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50309         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50310         <bp-sym.h> and <bp-asm.h>.
50311         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50312         pointers.
50313         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50314         <bp-sym.h> and <bp-asm.h>.
50315         (memcpy): Don't use BP_SYM.
50316         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50317         <bp-sym.h> and <bp-asm.h>.
50318         (memset): Don't use BP_SYM.
50319         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50320         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50321         (__bzero): Don't use BP_SYM.
50322         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50323         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50324         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50325         <bp-sym.h> and <bp-asm.h>.
50326         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50327         pointers.
50328         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50329         <bp-sym.h> and <bp-asm.h>.
50330         (memcpy): Don't use BP_SYM.
50331         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50332         <bp-sym.h> and <bp-asm.h>.
50333         (memset): Don't use BP_SYM.
50334         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50335         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50336         (__bzero): Don't use BP_SYM.
50337         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50338         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50339         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50340         <bp-sym.h> and <bp-asm.h>.
50341         (__memchr): Don't use BP_SYM.
50342         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50343         <bp-sym.h> and <bp-asm.h>.
50344         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50345         pointers.
50346         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50347         <bp-sym.h> and <bp-asm.h>.
50348         (memcpy): Don't use BP_SYM.
50349         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50350         <bp-sym.h> and <bp-asm.h>.
50351         (__mempcpy): Don't use BP_SYM.
50352         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50353         <bp-sym.h> and <bp-asm.h>.
50354         (__memrchr): Don't use BP_SYM.
50355         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50356         <bp-sym.h> and <bp-asm.h>.
50357         (memset): Don't use BP_SYM.
50358         (__bzero): Likewise.
50359         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50360         <bp-sym.h> and <bp-asm.h>.
50361         (__rawmemchr): Don't use BP_SYM.
50362         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50363         <bp-sym.h> and <bp-asm.h>.
50364         (__STRCMP): Don't use BP_SYM.
50365         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50366         <bp-sym.h> and <bp-asm.h>.
50367         (strchr): Don't use BP_SYM.
50368         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50369         <bp-sym.h> and <bp-asm.h>.
50370         (__strchrnul): Don't use BP_SYM.
50371         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50372         <bp-sym.h> and <bp-asm.h>.
50373         (strlen): Don't use BP_SYM.
50374         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50375         <bp-sym.h> and <bp-asm.h>.
50376         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50377         pointers.
50378         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50379         <bp-sym.h> and <bp-asm.h>.
50380         (__strnlen): Don't use BP_SYM.
50381         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50382         <bp-sym.h> and <bp-asm.h>.
50383         (__GI__setjmp): Don't use BP_SYM.
50384         (_setjmp): Likewise.
50385         (__sigsetjmp): Likewise.
50386         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50387         (L(start_addresses)): Don't use BP_SYM.
50388         (_start): Likewise.
50389         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50390         <bp-asm.h>.
50391         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50392         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50393         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50394         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50395         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50396         <bp-asm.h>.
50397         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50398         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50399         about bounded pointers.
50400         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50401         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50402         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50403         <bp-asm.h>.
50404         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50405         about bounded pointers.  Remove GKM FIXME comments.
50406         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50407         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50408         <bp-asm.h>.
50409         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50410         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50411         Remove GKM FIXME comments.
50412         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50413         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50414         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50415         <bp-asm.h>.
50416         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50417         about bounded pointers.  Remove GKM FIXME comment.
50418         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50419         and <bp-asm.h>.
50420         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50421         pointers.
50422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50423         <bp-sym.h> and <bp-asm.h>.
50424         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50426         <bp-sym.h> and <bp-asm.h>.
50427         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50428         comment.
50429
50430 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50431
50432         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50433         call free(NULL).
50434
50435 2013-03-05  David S. Miller  <davem@davemloft.net>
50436
50437         * po/es.po: Update from translation team.
50438
50439 2013-03-05  Andreas Jaeger  <aj@suse.de>
50440
50441         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50442         <bits/mman-linux.h>.
50443         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50444         is fine.
50445         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50446         <bits/mman-linux.h> to end of file.
50447         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50448         is fine.
50449         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50450         <bits/mman-linux.h> to end of file.
50451         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50452         is fine.
50453         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50454         <bits/mman-linux.h> to end of file.
50455
50456         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50457         (MCL_CURRENT, MCL_FUTURE): Define here.
50458
50459 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50460
50461         [BZ #15232]
50462         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50463         attribute_hidden.
50464         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50465
50466 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50467
50468         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50469         fourth parameter needed for rt_sigprocmask syscall.
50470         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50471         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50472         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50473         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50474         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50475         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50476
50477 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50478
50479         [BZ #13550]
50480         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50481         comment about bounded pointers.
50482         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50483         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50484
50485 2013-03-04  Andreas Jaeger  <aj@suse.de>
50486
50487         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50488         common definitions.
50489
50490         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50491         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50492         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50493         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50494         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50495         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50496
50497 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50498
50499         [BZ #15055]
50500         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50501         __ieee754_sqrl instead of __sqrl.
50502
50503 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50504
50505         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50506         * sysdeps/powerpc/fpu_control.h: ... here.
50507         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50508         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50509         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50510         * sysdeps/powerpc/bits/mathinline.h: ... here.
50511
50512 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50513
50514         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50515         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50516         to just [NEED_DL_SYSINFO_DSO].
50517         * elf/dl-support.c: Likewise.
50518         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50519         * elf/rtld.c (dl_main): Likewise.
50520         * elf/setup-vdso.h (setup_vdso): Likewise.
50521         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50522         * sysdeps/unix/sysv/linux/dl-sysdep.c
50523         (_dl_discover_osversion): Likewise.
50524
50525 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50526
50527         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50528         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50529
50530 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50531
50532         * NEWS: Mention libm performance improvements and non-x86 PI
50533         futex support.
50534
50535         * csu/libc-start.c (__pthread_initialize_minimal): Change
50536         function arguments.
50537         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50538
50539 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50540
50541         [BZ #13550]
50542         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50543         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50544         <bp-sym.h> and <bp-asm.h>.
50545         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50546         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50547         and <bp-asm.h>.
50548         (memcpy): Don't use BP_SYM.
50549         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50550         <bp-asm.h>.
50551         (__mpn_add_n): Don't use BP_SYM.
50552         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50553         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50554         and <bp-asm.h>.
50555         (__mpn_addmul_1): Don't use BP_SYM.
50556         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50557         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50558         <bp-sym.h>.
50559         (_setjmp): Don't use BP_SYM.
50560         (__novmx_setjmp): Likewise.
50561         (__GI__setjmp): Likewise.
50562         (__vmx_setjmp): Likewise.
50563         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50564         <bp-sym.h>.
50565         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50566         (__bzero): Don't use BP_SYM.
50567         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50568         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50569         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50570         <bp-sym.h> and <bp-asm.h>.
50571         (memcpy): Don't use BP_SYM.
50572         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50573         <bp-sym.h> and <bp-asm.h>.
50574         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50575         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50576         <bp-sym.h> and <bp-asm.h>.
50577         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50578         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50579         <bp-asm.h>.
50580         (__mpn_lshift): Don't use BP_SYM.
50581         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50582         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50583         <bp-asm.h>.
50584         (memset): Don't use BP_SYM.
50585         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50586         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50587         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50588         <bp-asm.h>.
50589         (__mpn_mul_1): Don't use BP_SYM.
50590         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50591         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50592         <bp-sym.h> and <bp-asm.h>.
50593         (memcmp): Don't use BP_SYM.
50594         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50595         <bp-sym.h> and <bp-asm.h>.
50596         (memcpy): Don't use BP_SYM.
50597         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50598         <bp-sym.h> and <bp-asm.h>.
50599         (memset): Don't use BP_SYM.
50600         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50601         <bp-sym.h> and <bp-asm.h>.
50602         (strncmp): Don't use BP_SYM.
50603         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50604         <bp-sym.h> and <bp-asm.h>.
50605         (memcpy): Don't use BP_SYM.
50606         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50607         <bp-sym.h> and <bp-asm.h>.
50608         (memset): Don't use BP_SYM.
50609         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50610         <bp-sym.h> and <bp-asm.h>.
50611         (__memchr): Don't use BP_SYM.
50612         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50613         <bp-sym.h> and <bp-asm.h>.
50614         (memcmp): Don't use BP_SYM.
50615         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50616         <bp-sym.h> and <bp-asm.h>.
50617         (memcpy): Don't use BP_SYM.
50618         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50619         <bp-sym.h> and <bp-asm.h>.
50620         (__mempcpy): Don't use BP_SYM.
50621         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50622         <bp-sym.h> and <bp-asm.h>.
50623         (__memrchr): Don't use BP_SYM.
50624         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50625         <bp-sym.h> and <bp-asm.h>.
50626         (memset): Don't use BP_SYM.
50627         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50628         <bp-sym.h> and <bp-asm.h>.
50629         (__rawmemchr): Don't use BP_SYM.
50630         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50631         <bp-sym.h> and <bp-asm.h>.
50632         (__STRCMP): Don't use BP_SYM.
50633         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50634         <bp-sym.h> and <bp-asm.h>.
50635         (strchr): Don't use BP_SYM.
50636         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50637         <bp-sym.h> and <bp-asm.h>.
50638         (__strchrnul): Don't use BP_SYM.
50639         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50640         <bp-sym.h> and <bp-asm.h>.
50641         (strlen): Don't use BP_SYM.
50642         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50643         <bp-sym.h> and <bp-asm.h>.
50644         (strncmp): Don't use BP_SYM.
50645         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50646         <bp-sym.h> and <bp-asm.h>.
50647         (__strnlen): Don't use BP_SYM.
50648         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50649         <bp-asm.h>.
50650         (__mpn_rshift): Don't use BP_SYM.
50651         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50652         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50653         <bp-sym.h> and <bp-asm.h>.
50654         (__sigsetjmp): Don't use BP_SYM.
50655         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50656         (L(start_addresses)): Don't use BP_SYM.
50657         (_start): Likewise.
50658         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50659         <bp-asm.h>.
50660         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50661         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50662         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50663         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50664         <bp-asm.h>.
50665         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50666         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50667         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50668         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50669         <bp-asm.h>.
50670         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50671         comments.
50672         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50673         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50674         <bp-asm.h>.
50675         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50676         FIXME comments.
50677         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50678         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50679         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50680         <bp-asm.h>.
50681         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50682         comment.
50683         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50684         and <bp-asm.h>.
50685         (strncmp): Don't use BP_SYM,
50686         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50687         <bp-asm.h>.
50688         (__mpn_sub_n): Don't use BP_SYM.
50689         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50690         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50691         and <bp-asm.h>.
50692         (__mpn_submul_1): Don't use BP_SYM.
50693         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50695         <bp-sym.h> and <bp-asm.h>.
50696         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50698         <bp-sym.h> and <bp-asm.h>.
50699         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50700         comment.
50701
50702 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50703
50704         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50705         Use ZK to minimize writes to Z.
50706         (sub_magnitudes): Simplify code a bit.
50707         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50708         Use ZK to minimize writes to Z.
50709         (sub_magnitudes): Simplify code a bit.
50710
50711 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50712
50713         * csu/gmon-start.c: Add special exception to license text.
50714
50715 2013-02-27  Richard Henderson  <rth@redhat.com>
50716
50717         * scripts/config.guess: Update from config.git.
50718         * scripts/config.sub: Likewise.
50719
50720 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50721
50722         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50723
50724         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50725
50726         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50727
50728         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50729
50730         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50731
50732 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50733
50734         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50735         [$(build-shared = yes].
50736
50737 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50738
50739         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50740         (__mul): Reduce iterations for calculating mantissa.
50741
50742         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50743         MPTWO.
50744         (__mpranred): Likewise.
50745
50746         [BZ #15160]
50747         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50748         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50749
50750 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50751
50752         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50753         Define __attribute__.
50754
50755 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50756
50757         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50758         unused.
50759         * posix/regex_internal.h (__attribute): Remove.
50760         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50761         (re_string_context_at): Likewise.
50762         (bitset_not): Use __attribute__ and mark function as possibly
50763         unused.
50764         (bitset_merge): Likewise.
50765         (bitset_mask): Likewise.
50766         (re_string_char_size_at): Likewise.
50767         (re_string_wchar_at): Likewise.
50768         (re_string_elem_size_at): Likewise.
50769
50770 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50771
50772         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50773         code.
50774         (cc32): Likewise.
50775
50776         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50777         (__acr): Likewise.
50778         (__cpy): Likewise.
50779         (norm): Likewise.
50780         (denorm): Likewise.
50781         (__dbl_mp): Likewise.
50782         (add_magnitudes): Likewise.
50783         (sub_magnitudes): Likewise.
50784         (__mul): Likewise.
50785         (__inv): Likewise.
50786
50787         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50788         style.
50789
50790         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50791         style.
50792
50793         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50794         code.
50795
50796         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50797         up changes with default code.
50798         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50799         Likewise.
50800
50801 2013-02-24  Allan McRae  <allan@archlinux.org>
50802
50803         * manual/socket.texi (The Internet Namespace): Order menu items
50804         to match that in the file.
50805
50806         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50807         node listing of the info page menu.
50808
50809 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50810
50811         [BZ #13550]
50812         * sysdeps/i386/bp-asm.h: Remove file.
50813         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50814         (PARMS): Do not use macros from bp-asm.h.
50815         (S1): Likewise.
50816         (S2): Likewise.
50817         (SIZE): Likewise.
50818         (__mpn_add_n): Do not use BP_SYM
50819         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50820         "bp-asm.h".
50821         (PARMS): Do not use macros from bp-asm.h.
50822         (S1): Likewise.
50823         (SIZE): Likewise.
50824         (__mpn_addmul_1): Do not use BP_SYM
50825         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50826         "bp-asm.h".
50827         (PARMS): Do not use macros from bp-asm.h.
50828         (SIGMSK): Likewise.
50829         (_setjmp): Likewise.  Do not use BP_SYM.
50830         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50831         "bp-asm.h".
50832         (PARMS): Do not use macros from bp-asm.h.
50833         (SIGMSK): Likewise.
50834         (setjmp): Likewise.  Do not use BP_SYM.
50835         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50836         "bp-asm.h".
50837         (PARMS): Do not use macros from bp-asm.h.
50838         (__frexp): Do not use BP_SYM.
50839         (frexp): Likewise.
50840         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50841         "bp-asm.h".
50842         (PARMS): Do not use macros from bp-asm.h.
50843         (__frexpf): Do not use BP_SYM.
50844         (frexpf): Likewise.
50845         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50846         "bp-asm.h".
50847         (PARMS): Do not use macros from bp-asm.h.
50848         (__frexpl): Do not use BP_SYM.
50849         (frexpl): Likewise.
50850         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50851         "bp-asm.h".
50852         (PARMS): Do not use macros from bp-asm.h.
50853         (__remquo): Do not use BP_SYM.
50854         (remquo): Likewise.
50855         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50856         "bp-asm.h".
50857         (PARMS): Do not use macros from bp-asm.h.
50858         (__remquof): Do not use BP_SYM.
50859         (remquof): Likewise.
50860         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50861         "bp-asm.h".
50862         (PARMS): Do not use macros from bp-asm.h.
50863         (__remquol): Do not use BP_SYM.
50864         (remquol): Likewise.
50865         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50866         "bp-asm.h".
50867         (PARMS): Do not use macros from bp-asm.h.
50868         (DEST): Likewise.
50869         (SRC): Likewise.
50870         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50871         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50872         "bp-asm.h".
50873         (PARMS): Do not use macros from bp-asm.h.
50874         (strlen): Do not use BP_SYM.
50875         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50876         "bp-asm.h".
50877         (PARMS): Do not use macros from bp-asm.h.
50878         (S1): Likewise.
50879         (S2): Likewise.
50880         (SIZE): Likewise.
50881         (__mpn_add_n): Do not use BP_SYM.
50882         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50883         "bp-asm.h".
50884         (PARMS): Do not use macros from bp-asm.h.
50885         (S1): Likewise.
50886         (SIZE): Likewise.
50887         (__mpn_addmul_1): Do not use BP_SYM.
50888         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50889         weak_alias.
50890         (bzero): Likewise.
50891         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50892         "bp-asm.h".
50893         (PARMS): Do not use macros from bp-asm.h.
50894         (S): Likewise.
50895         (SIZE): Likewise.
50896         (__mpn_lshift): Do not use BP_SYM.
50897         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50898         "bp-asm.h".
50899         (PARMS): Do not use macros from bp-asm.h.
50900         (DEST): Likewise.
50901         (SRC): Likewise.
50902         (LEN): Likewise.
50903         (memcpy): Likewise.  Do not use BP_SYM.
50904         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50905         libc_hidden_def and weak_alias.
50906         (mempcpy): Do not use BP_SYM in weak_alias.
50907         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50908         "bp-asm.h".
50909         (PARMS): Do not use macros from bp-asm.h.
50910         (DEST): Likewise.
50911         (LEN): Likewise.
50912         [!BZERO_P] (CHR): Likewise.
50913         (memset): Likewise.  Do not use BP_SYM.
50914         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50915         "bp-asm.h".
50916         (PARMS): Do not use macros from bp-asm.h.
50917         (S1): Likewise.
50918         (SIZE): Likewise.
50919         (__mpn_mul_1): Do not use BP_SYM.
50920         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50921         "bp-asm.h".
50922         (PARMS): Do not use macros from bp-asm.h.
50923         (S): Likewise.
50924         (SIZE): Likewise.
50925         (__mpn_rshift): Do not use BP_SYM.
50926         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50927         "bp-asm.h".
50928         (PARMS): Do not use macros from bp-asm.h.
50929         (STR): Likewise.
50930         (CHR): Likewise.
50931         (strchr): Likewise.  Do not use BP_SYM.
50932         (index): Do not use BP_SYM in weak_alias.
50933         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50934         "bp-asm.h".
50935         (PARMS): Do not use macros from bp-asm.h.
50936         (DEST): Likewise.
50937         (SRC): Likewise.
50938         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50939         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50940         "bp-asm.h".
50941         (PARMS): Do not use macros from bp-asm.h.
50942         (strlen): Do not use BP_SYM.
50943         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50944         "bp-asm.h".
50945         (PARMS): Do not use macros from bp-asm.h.
50946         (S1): Likewise.
50947         (S2): Likewise.
50948         (SIZE): Likewise.
50949         (__mpn_sub_n): Do not use BP_SYM.
50950         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50951         "bp-asm.h".
50952         (PARMS): Do not use macros from bp-asm.h.
50953         (S1): Likewise.
50954         (SIZE): Likewise.
50955         (__mpn_submul_1): Do not use BP_SYM.
50956         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50957         "bp-asm.h".
50958         (PARMS): Do not use macros from bp-asm.h.
50959         (S1): Likewise.
50960         (S2): Likewise.
50961         (SIZE): Likewise.
50962         (__mpn_add_n): Do not use BP_SYM.
50963         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50964         weak_alias.
50965         (bzero): Likewise.
50966         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50967         "bp-asm.h".
50968         (PARMS): Do not use macros from bp-asm.h.
50969         (BLK2): Likewise.
50970         (LEN): Likewise.
50971         (memcmp): Do not use BP_SYM.
50972         (bcmp): Do not use BP_SYM in weak_alias.
50973         * sysdeps/i386/i686/memcpy.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         (SRC): Likewise.
50978         (LEN): Likewise.
50979         (memcpy): Likewise.  Do not use BP_SYM.
50980         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50981         "bp-asm.h".
50982         (PARMS): Do not use macros from bp-asm.h.
50983         (DEST): Likewise.
50984         (SRC): Likewise.
50985         (LEN): Likewise.
50986         (memmove): Likewise.  Do not use BP_SYM.
50987         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50988         "bp-asm.h".
50989         (PARMS): Do not use macros from bp-asm.h.
50990         (DEST): Likewise.
50991         (SRC): Likewise.
50992         (LEN): Likewise.
50993         (__mempcpy): Likewise.  Do not use BP_SYM.
50994         (mempcpy): Do not use BP_SYM in weak_alias.
50995         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50996         "bp-asm.h".
50997         (PARMS): Do not use macros from bp-asm.h.
50998         (DEST): Likewise.
50999         (LEN): Likewise.
51000         [!BZERO_P] (CHR): Likewise.
51001         (memset): Likewise.  Do not use BP_SYM.
51002         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51003         "bp-asm.h".
51004         (PARMS): Do not use macros from bp-asm.h.
51005         (STR2): Likewise.
51006         (strcmp): Do not use BP_SYM.
51007         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51008         "bp-asm.h".
51009         (PARMS): Do not use macros from bp-asm.h.
51010         (STR): Likewise.
51011         (DELIM): Likewise.
51012         [USE_AS_STRTOK_R] (SAVE): Likewise.
51013         (FUNCTION): Likewise.  Do not use BP_SYM.
51014         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51015         aliases.
51016         (strtok_r): Likewise.
51017         (__GI___strtok_r): Likewise.
51018         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51019         (PARMS): Do not use macros from bp-asm.h.
51020         (S): Likewise.
51021         (SIZE): Likewise.
51022         (__mpn_lshift): Do not use BP_SYM.
51023         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51024         (PARMS): Do not use macros from bp-asm.h.
51025         (STR): Likewise.
51026         (CHR): Likewise.
51027         (__memchr): Do not use BP_SYM.
51028         (memchr): Do not use BP_SYM in weak_alias.
51029         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51030         (PARMS): Do not use macros from bp-asm.h.
51031         (BLK2): Likewise.
51032         (LEN): Likewise.
51033         (memcmp): Do not use BP_SYM.
51034         (bcmp): Do not use BP_SYM in weak_alias.
51035         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51036         (PARMS): Do not use macros from bp-asm.h.
51037         (S1): Likewise.
51038         (SIZE): Likewise.
51039         (__mpn_mul_1): Do not use BP_SYM.
51040         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51041         "bp-asm.h".
51042         (PARMS): Do not use macros from bp-asm.h.
51043         (STR): Likewise.
51044         (CHR): Likewise.
51045         (__rawmemchr): Do not use BP_SYM.
51046         (rawmemchr): Do not use BP_SYM in weak_alias.
51047         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51048         (PARMS): Do not use macros from bp-asm.h.
51049         (S): Likewise.
51050         (SIZE): Likewise.
51051         (__mpn_rshift): Do not use BP_SYM.
51052         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51053         (PARMS): Do not use macros from bp-asm.h.
51054         (SIGMSK): Likewise.
51055         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51056         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51057         (_start): Do not use BP_SYM.
51058         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51059         (PARMS): Do not use macros from bp-asm.h.
51060         (DEST): Likewise.
51061         (SRC): Likewise.
51062         (__stpcpy): Likewise.  Do not use BP_SYM.
51063         (stpcpy): Do not use BP_SYM in weak_alias.
51064         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51065         "bp-asm.h".
51066         (PARMS): Do not use macros from bp-asm.h.
51067         (DEST): Likewise.
51068         (SRC): Likewise.
51069         (LEN): Likewise.
51070         (__stpncpy): Likewise.  Do not use BP_SYM.
51071         (stpncpy): Do not use BP_SYM in weak_alias.
51072         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51073         (PARMS): Do not use macros from bp-asm.h.
51074         (STR): Likewise.
51075         (CHR): Likewise.
51076         (strchr): Likewise.  Do not use BP_SYM.
51077         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51078         "bp-asm.h".
51079         (PARMS): Do not use macros from bp-asm.h.
51080         (STR): Likewise.
51081         (CHR): Likewise.
51082         (__strchrnul): Likewise.  Do not use BP_SYM.
51083         (strchrnul): Do not use BP_SYM in weak_alias.
51084         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51085         "bp-asm.h".
51086         (PARMS): Do not use macros from bp-asm.h.
51087         (STOP): Likewise.
51088         (strcspn): Do not use BP_SYM.
51089         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51090         "bp-asm.h".
51091         (PARMS): Do not use macros from bp-asm.h.
51092         (STR): Likewise.
51093         (STOP): Likewise.
51094         (strpbrk): Likewise.  Do not use BP_SYM.
51095         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51096         "bp-asm.h".
51097         (PARMS): Do not use macros from bp-asm.h.
51098         (STR): Likewise.
51099         (CHR): Likewise.
51100         (strrchr): Likewise.  Do not use BP_SYM.
51101         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51102         (PARMS): Do not use macros from bp-asm.h.
51103         (SKIP): Likewise.
51104         (strspn): Do not use BP_SYM.
51105         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51106         (PARMS): Do not use macros from bp-asm.h.
51107         (STR): Likewise.
51108         (DELIM): Likewise.
51109         (SAVE): Likewise.
51110         (FUNCTION): Likewise.  Do not use BP_SYM.
51111         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51112         aliases.
51113         (strtok_r): Likewise.
51114         (__GI___strtok_r): Likewise.
51115         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51116         (PARMS): Do not use macros from bp-asm.h.
51117         (S1): Likewise.
51118         (S2): Likewise.
51119         (SIZE): Likewise.
51120         (__mpn_sub_n): Do not use BP_SYM.
51121         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51122         "bp-asm.h".
51123         (PARMS): Do not use macros from bp-asm.h.
51124         (S1): Likewise.
51125         (SIZE): Likewise.
51126         (__mpn_submul_1): Do not use BP_SYM.
51127         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51128         <bp-sym.h>.
51129         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51130         and <bp-asm.h>.
51131         (PARMS): Do not use macros from bp-asm.h.
51132         (FLAGS): Likewise.
51133         (PTID): Likewise.
51134         (TLS): Likewise.
51135         (CTID): Likewise.
51136         (__clone): Do not use BP_SYM.
51137         (clone): Do not use BP_SYM in weak_alias.
51138         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51139         and <bp-asm.h>.
51140         (PARMS): Do not use macros from bp-asm.h.
51141         (LEN): Likewise.
51142         (__mmap64): Do not use BP_SYM.
51143         (mmap64): Do not use BP_SYM in weak_alias.
51144         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51145         <bp-sym.h> and <bp-asm.h>.
51146         (PARMS): Do not use macros from bp-asm.h.
51147         (__posix_fadvise64_l64): Do not use BP_SYM.
51148         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51149         (PARMS): Do not use macros from bp-asm.h.
51150         (NSOPS): Likewise.
51151         (semtimedop): Do not use BP_SYM.
51152         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51153         and <bp-asm.h>.
51154
51155 2013-02-21  Allan McRae  <allan@archlinux.org>
51156
51157         * manual/message.texi (Charset conversion in gettext):
51158         Move @end statement to beginning of line.
51159
51160 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51161
51162         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51163         static.
51164         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51165         Likewise.
51166
51167         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51168         (denorm): Likewise.
51169         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51170         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51171
51172 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51173
51174         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51175         tail-call to the resolved function if pltexit isn't needed.
51176
51177 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51178
51179         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51180         or Y being zero as being unlikely.
51181         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51182         Likewise.
51183
51184 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51185
51186         * manual/nss.texi (System Databases and Name Service Switch):
51187         Remove frobnicate @pxref.
51188
51189 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51190
51191         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51192         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51193
51194 2013-02-20  Petr Machata  <pmachata@redhat.com>
51195
51196         * elf/elf.h (R_ARM_TARGET1): New macro.
51197         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51198         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51199         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51200         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51201         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51202         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51203         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51204         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51205         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51206         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51207         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51208         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51209         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51210         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51211         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51212         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51213         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51214         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51215         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51216         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51217         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51218         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51219         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51220         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51221         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51222         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51223         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51224         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51225         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51226         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51227         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51228         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51229         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51230         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51231         (R_ARM_THM_GOT_BREL12): Likewise.
51232         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51233         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51234         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51235         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51236         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51237         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51238         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51239         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51240         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51241
51242 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51243
51244         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51245         __attribute_used__ to __attribute__ ((unused)).
51246
51247 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51248
51249         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51250         powerpc mpa.c.
51251         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51252         comment formatting.
51253         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51254
51255 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51256
51257         [BZ #13550]
51258         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51259         Remove macro.
51260         (ENTER): Remove both macro definitions.
51261         (LEAVE): Likewise.
51262         (CHECK_BOUNDS_LOW): Likewise.
51263         (CHECK_BOUNDS_HIGH): Likewise.
51264         (CHECK_BOUNDS_BOTH): Likewise.
51265         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51266         (RETURN_BOUNDED_POINTER): Likewise.
51267         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51268         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51269         (POP_ERRNO_LOCATION_RETURN): Likewise.
51270         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51271         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51272         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51273         macros.
51274         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51275         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51276         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51277         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51278         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51279         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51280         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51281         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51282         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51283         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51284         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51285         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51286         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51287         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51288         removed macros.
51289         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51290         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51291         macros.
51292         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51293         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51294         * sysdeps/i386/i586/memset.S (memset): Likewise.
51295         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51296         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51297         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51298         macros.
51299         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51300         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51301         Change uses of L(2) to L(out).
51302         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51303         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51304         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51305         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51306         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51307         removed macros.
51308         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51309         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51310         macros.
51311         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51312         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51313         (RETURN): Do not use macro LEAVE.
51314         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51315         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51316         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51317         * sysdeps/i386/i686/memset.S (memset): Likewise.
51318         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51319         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51320         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51321         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51322         Likewise.
51323         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51324         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51325         L(1_2) and L(1_3) into L(1).
51326         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51327         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51328         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51329         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51330         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51331         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51332         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51333         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51334         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51335         macros.
51336         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51337         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51338         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51339         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51340         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51341         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51342         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51343         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51344         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51345         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51346         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51347         * sysdeps/i386/strspn.S (strspn): Likewise.
51348         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51349         conditional code.
51350         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51351         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51352         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51353         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51354         L(1_3) into L(1_1).
51355         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51356         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51357         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51358         macros.
51359         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51360
51361 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51362
51363         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51364         macro.
51365
51366 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51367
51368         * math/atest-exp.c (exp_mpn): Remove ROUND.
51369         * math/atest-exp2.c (exp_mpn): Likewise.
51370         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51371
51372         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51373         * stdlib/tst-tls-atexit-lib.c: Likewise.
51374         * stdlib/tst-tls-atexit.c: Likewise.
51375
51376 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51377
51378         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51379         and __attribute_alloc_size__.
51380
51381 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51382
51383         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51384         __attribute_alloc_size__.
51385         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51386         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51387
51388 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51389
51390         * include/programs/xmalloc.h: New file.
51391         * catgets/gencat.c: Include it.
51392         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51393         * elf/pldd.c: Likewise.
51394         * iconv/iconv_charmap.c: Likewise.
51395         * iconv/iconvconfig.c: Likewise.
51396         * iconv/strtab.c: Likewise.
51397         * locale/programs/locale.c: Likewise.
51398         * locale/programs/localedef.h: Likewise.
51399         * locale/programs/simple-hash.c: Likewise.
51400         * nscd/nscd.h: Likewise.
51401         * nss/makedb.c: Likewise.
51402         * sysdeps/generic/ldconfig.h: Likewise.
51403
51404 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51405
51406         * Versions.def: Add GLIBC_2.18.
51407         * include/link.h (struct link_map): New member l_tls_dtor_count.
51408         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51409         (__call_tls_dtors): Likewise.
51410         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51411         __cxa_thread_atexit_impl.
51412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51413         Likewise.
51414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51415         Likewise.
51416         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51417         Likewise.
51418         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51419         Likewise.
51420         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51421         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51422         Likewise.
51423         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51424         Likewise.
51425         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51426         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51427         Likewise.
51428         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51429         (tests): Add test case tst-tls-atexit.
51430         (modules-names): Add shared library for tst-tls-atexit.
51431         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51432         (GLIBC_PRIVATE): Add __call_tls_dtors.
51433         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51434         for libstdc++.
51435         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51436         * stdlib/tst-tls-atexit.c: New test case.
51437         * stdlib/tst-tls-atexit-lib.c: New test case.
51438
51439         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51440
51441         * elf/Versions (ld): Add _dl_find_dso_for_object.
51442         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51443         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51444         (dl_open_worker): Use _dl_find_dso_for_object.
51445         * elf/dl-sym.c (do_sym): Likewise.
51446         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51447
51448 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51449
51450         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51451         Syntactic changes only.
51452         (_dl_runtime_profile): Do a tail-call to the resolved function.
51453
51454 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51455
51456         [BZ #13550]
51457         * sysdeps/x86_64/bp-asm.h: Remove file.
51458         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51459         <bp-sym.h> and <bp-asm.h>.
51460         (__clone): Do not use BP_SYM.
51461         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51462         <bp-sym.h> and <bp-asm.h>.
51463         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51464         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51465         "bp-asm.h".
51466         (_setjmp): Do not use BP_SYM.
51467         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51468         "bp-asm.h".
51469         (setjmp): Do not use BP_SYM.
51470         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51471         libc_hidden_def.
51472         (mempcpy): Do not use BP_SYM in weak_alias.
51473         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51474         "bp-asm.h".
51475         (strchr): Do not use BP_SYM.
51476         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51477         "bp-asm.h".
51478         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51479         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51480         (_start): Do not use BP_SYM.
51481         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51482         "bp-asm.h".
51483         (strcat): Do not use BP_SYM.
51484         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51485         "bp-asm.h".
51486         (STRCMP): Do not use BP_SYM.
51487         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51488         "bp-asm.h".
51489         (STRCPY): Do not use BP_SYM.
51490         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51491         "bp-asm.h".
51492         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51493         "bp-asm.h".
51494         (FUNCTION): Do not use BP_SYM.
51495         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51496         weak_alias.
51497         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51498
51499 2013-02-17  Andreas Jaeger  <aj@suse.de>
51500
51501         * time/Versions: Sort entries.
51502         * string/Versions: Likewise.
51503         * resolv/Versions: Likewise.
51504         * posix/Versions: Likewise.
51505         * iconv/Versions: Likewise.
51506         * elf/Versions: Likewise.
51507         * wcsmbs/Versions: Likewise.
51508
51509 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51510
51511         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51512         loop termination condition.
51513
51514         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51515         variable to calculate EZ.
51516         (__sqr): Likewise.
51517
51518         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51519         the lower precision input.
51520
51521 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51522
51523         [BZ #13550]
51524         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51525         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51526         (run-via-rtld-prefix): Do not handle %-bp tests.
51527         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51528         (all-object-suffixes): Remove .ob.
51529         (bppfx): Remove variable.
51530         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51531         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51532         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51533         [$(build-bounded) = yes] (libtype.ob): Likewise.
51534         * Makerules (elide-routines.ob): Remove variable.
51535         (do-tests-clean): Do not handle *-bp.out.
51536         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51537         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51538         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51539         (tests): Do not include $(tests-bp.out).
51540         (xtests): Do not include $(xtests-bp.out).
51541         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51542         [$(build-bounded) = yes] ($(addprefix
51543         $(objpfx),$(binaries-bounded))): Remove rule.
51544         ($(objpfx)%-bp.out): Remove rule.
51545         * config.make.in (build-bounded): Remove variable.
51546         * crypt/Makefile [$(build-bounded) = yes]
51547         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51548         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51549         append to variable.
51550         [$(build-bounded) = yes] (install-lib): Likewise.
51551         [$(build-bounded) = yes] (generated): Likewise.
51552         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51553         Remove rule.
51554         * intl/Makefile [$(build-bounded) = yes]
51555         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51556         * math/Makefile [$(build-bounded) = yes]
51557         ($(tests:%=$(objpfx)%-bp): Likewise.
51558         * misc/Makefile [$(build-bounded) = yes]
51559         ($(objpfx)tst-tsearch-bp): Likewise.
51560         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51561         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51562         Remove dependency.
51563         * string/Makefile (o-objects.ob): Remove variable.
51564         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51565         (CFLAGS-.ob): Remove variable.
51566         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51567         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51568         both definitions of variable.
51569         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51570         (ASFLAGS-.ob): Remove variable.
51571
51572 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51573
51574         [BZ #13550]
51575         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51576         Remove __BOUNDED_POINTERS__ from condition.
51577         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51578         * string/bits/string2.h [!__NO_STRING_INLINES &&
51579         !__BOUNDED_POINTERS__]: Likewise.
51580         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51581         Likewise.
51582         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51583         Remove conditional code.
51584         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51585         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51586         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51587         condition.
51588
51589         [BZ #13550]
51590         * csu/libc-start.c: Do not include <bp-sym.h>.
51591         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51592         * elf/dl-open.c: Do not include <bp-sym.h>.
51593         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51594         * math/fegetenv.c: Do not include <bp-sym.h>.
51595         (fegetenv): Do not use BP_SYM in versioned symbols.
51596         * nptl/sysdeps/pthread/bits/libc-lockP.h
51597         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51598         <bp-sym.h>.
51599         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51600         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51601         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51602         (__pthread_mutex_destroy): Likewise.
51603         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51604         (__pthread_mutex_lock): Likewise.
51605         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51606         (__pthread_mutex_trylock): Likewise.
51607         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51608         (__pthread_mutex_unlock): Likewise.
51609         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51610         (__pthread_mutexattr_init): Likewise.
51611         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51612         (__pthread_mutexattr_destroy): Likewise.
51613         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51614         (__pthread_mutexattr_settype): Likewise.
51615         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51616         (__pthread_rwlock_init): Likewise.
51617         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51618         (__pthread_rwlock_destroy): Likewise.
51619         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51620         (__pthread_rwlock_rdlock): Likewise.
51621         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51622         (__pthread_rwlock_tryrdlock): Likewise.
51623         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51624         (__pthread_rwlock_wrlock): Likewise.
51625         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51626         (__pthread_rwlock_trywrlock): Likewise.
51627         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51628         (__pthread_rwlock_unlock): Likewise.
51629         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51630         (__pthread_key_create): Likewise.
51631         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51632         (__pthread_setspecific): Likewise.
51633         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51634         (__pthread_getspecific): Likewise.
51635         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51636         Likewise.
51637         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51638         (_pthread_cleanup_push_defer): Likewise.
51639         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51640         (_pthread_cleanup_pop_restore): Likewise.
51641         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51642         (pthread_setcancelstate): Likewise.
51643         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51644         <bp-sym.h>.
51645         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51646         (memchr): Do not use BP_SYM in weak_alias.
51647         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51648         (fegetenv): Do not use BP_SYM in versioned symbols.
51649         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51650         (fesetenv): Do not use BP_SYM in versioned symbols.
51651         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51652         (feupdateenv): Do not use BP_SYM in versioned symbols.
51653         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51654         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51655         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51656         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51657         (open64): Do not use BP_SYM in weak_alias.
51658         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51659         (fegetenv): Do not use BP_SYM in versioned symbols.
51660         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51661         (fesetenv): Do not use BP_SYM in versioned symbols.
51662         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51663         (feupdateenv): Do not use BP_SYM in versioned symbols.
51664         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51665         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51666         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51667         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51668         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51669         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51670         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51671         <bp-sym.h>.
51672         (__libc_start_main): Do not use BP_SYM.
51673
51674 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51675
51676         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51677         redundant return line.
51678         (norm): Likewise.
51679         (denorm): Likewise.
51680         (dbl_mp): Likewise.
51681         (sub_magnitudes): Likewise.
51682         (__add): Likewise.
51683         (__sub): Likewise.
51684         (__mul): Likewise.
51685         (__inv): Likewise.
51686         (__dvd): Likewise.
51687         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51688         (norm): Likewise.
51689         (denorm): Likewise.
51690         (dbl_mp): Likewise.
51691         (sub_magnitudes): Likewise.
51692         (__add): Likewise.
51693         (__sub): Likewise.
51694         (__mul): Likewise.
51695         (__inv): Likewise.
51696         (__dvd): Likewise.
51697
51698         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51699         instead of __mul.
51700         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51701         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51702         (cc32): Likewise.
51703
51704         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51705         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51706         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51707         of __mul for squares.
51708         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51709         function
51710         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51711         Likewise.
51712         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51713         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51714
51715 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51716
51717         [BZ #13550]
51718         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51719         code.
51720         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51721         prototype or function definition.  Rename ubp_* variables and
51722         parameters.  Remove argv definitions conditional on
51723         [__BOUNDED_POINTERS__].
51724         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51725         * elf/dl-runtime.c (_dl_fixup): Likewise.
51726         * include/set-hooks.h (RUN_HOOK): Likewise.
51727         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51728         definition.
51729         * string/strcpy.c (strcpy): Do not use __unbounded.
51730         * sysdeps/generic/frame.h (struct layout): Likewise.
51731         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51732         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51733         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51734         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51735         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51736         (__backtrace): Likewise.
51737         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51738         use __ptrvalue.
51739         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51740         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51741         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51742         Likewise.
51743         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51744         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51745         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51746         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51747         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51748         Do not use __unbounded.
51749         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51750         Rename __unboundedrlimits parameter to rlimits in prototype.
51751         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51752         Do not use __unbounded.
51753         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51754         not use __ptrvalue.
51755         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51756         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51757         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51758         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51759         __ptrvalue or __unbounded.
51760         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51761         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51762         use __unbounded.
51763         (__new_msgctl): Do not use __ptrvalue.
51764         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51765         __unbounded.
51766         (__libc_msgrcv): Do not use __ptrvalue.
51767         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51768         startup_info): Do not use __unbounded.
51769         (__libc_start_main): Likewise.  Rename ubp_* variables and
51770         parameters.  Remove argv definitions conditional on
51771         [__BOUNDED_POINTERS__].
51772         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51773         __ptrvalue.
51774         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51775         use __unbounded.
51776         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51777         or __ptrvalue.
51778         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51779         use __unbounded.
51780         (__new_shmctl): Do not use __ptrvalue.
51781         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51782         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51783         Likewise.
51784         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51785         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51786         (__libc_sigaction): Likewise.
51787         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51788         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51789         Likewise.
51790         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51791
51792 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51793
51794         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51795
51796         * string/mempcpy.c: Implement by calling memcpy.
51797
51798 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51799
51800         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51801
51802         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51803         evaluation.
51804
51805         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51806         values in the mantissa.
51807
51808         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51809         minimize writes to Z.
51810         (sub_magnitudes): Simplify code a bit.
51811
51812 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51813
51814         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51815         from the message.  The linker prefixes all warnings with that already.
51816
51817 2013-02-12  Andreas Schwab  <schwab@suse.de>
51818
51819         [BZ #15078]
51820         * posix/regexec.c (extend_buffers): Add parameter min_len.
51821         (check_matching): Pass minimum needed length.
51822         (clean_state_log_if_needed): Likewise.
51823         (get_subexp): Likewise.
51824         * posix/Makefile (tests): Add bug-regex34.
51825         (bug-regex34-ENV): Define.
51826         * posix/bug-regex34.c: New file.
51827
51828         [BZ #11561]
51829         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51830         elements compare against the byte sequence of it, not its name.
51831         * posix/Makefile (tests): Add bug-regex35.
51832         (bug-regex35-ENV): Define.
51833         * posix/bug-regex35.c: New file.
51834
51835 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51836
51837         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51838         comment.
51839         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51840         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51841         (CHECK_EOL): Add undef.
51842
51843 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51844
51845         * bits/stdlib-bsearch.h: New file.
51846         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51847         * stdlib/stdlib.h: Likewise.
51848
51849 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51850
51851         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51852         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51853         declaration.
51854         * manual/search.texi (Array Search Function): Add missing const in
51855         lfind prototype.
51856         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51857         declaration to use rlim_t.
51858         (Basic Scheduling Functions): Remove erroneous const from
51859         sched_getparam prototype.  Remove erroneous * from
51860         sched_get_priority_max and sched_get_priority_min prototypes.
51861         (Resource Usage): Fix summary @comment on vtimes to refer to
51862         sys/vtimes.h rather than vtimes.h.
51863         Add missing *s in vtimes prototype.
51864         (Limits on Resources): Fix ulimit prototype to return long int.
51865         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51866         prototypes to use long int rather than double.
51867         (BSD Random): Fix initstate and setstate to use char *, not void *.
51868         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51869         prototype to make second argument 'struct aiocb64 *const[]'.
51870         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51871         (Status of AIO Operations): Remove erroneous const in aio_return and
51872         aio_return64 prototypes.
51873         (Synchronizing I/O): Fix sync prototype to return void.
51874         * manual/startup.texi (Suboptions): Remove an erroneous const in
51875         getsubopt prototype.
51876         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51877         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51878         use size_t rather than int.
51879         (Scanning All Users): Likewise for getpwent_r.
51880         (Setting Groups): Add missing const to setgroups prototype.
51881         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51882         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51883         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51884         'const void *' rather than 'const char *'.
51885         (Host Address Functions): Likewise for inet_ntop.
51886         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51887         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51888         ssize_t for return value.
51889         (Sending Data): Likewise for send, sendto, sendmsg.
51890         (Socket Option Functions): Add a missing const in setsockopt prototype.
51891         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51892         use wchar_t for the argument.
51893         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51894         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51895         take no arguments.
51896         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51897         double/float/long double for second argument.
51898         Fix return types of significand, significandf, significandl.
51899         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51900         argument in fchmod prototype.
51901         (File Owner): Use uid_t and gid_t in fchown prototype.
51902         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51903         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51904         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51905         use 'const struct dirent **' as argument types to CMP function pointer
51906         argument.
51907         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51908         (File Times): Fix summary magic @comment for struct utimbuf and utime
51909         to refer to utime.h, not time.h.
51910         * manual/string.texi (Argz Functions): Add missing const in
51911         argz_extract and argz_next prototypes.
51912         (Finding Tokens in a String): Likewise for basename.
51913         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51914         (Copying and Concatenation): Fix typo in wmemmove prototype.
51915         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51916         (Signal Stack): Remove erroneous const in sigstack prototype.
51917         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51918         prototype.
51919         (Simple Calendar Time): Likewise for stime.
51920         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51921         prototype.
51922         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51923         say sys/sysctl.h instead.
51924         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51925         and vsyslog prototypes.
51926
51927 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51928
51929         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51930         Remove.
51931
51932 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51933
51934         * misc/sys/mman.h: Fix typo in mremap comment.
51935
51936 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51937
51938         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51939         the '\0' terminator.
51940
51941 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51942
51943         [BZ #13550]
51944         * debug/segfault.c: Don't include <bp-checks.h>.
51945         * sysdeps/generic/bp-checks.h: Remove file.
51946         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51947         (__GETDENTS): Don't use CHECK_N.
51948         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51949         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51950         (__getgroups): Don't use CHECK_N.
51951         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51952         (setgroups): Don't use CHECK_N.
51953         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51954         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51955         (__libc_msgrcv): Don't use CHECK_N.
51956         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51957         (__libc_msgsnd): Don't use CHECK_N.
51958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51959         <bp-checks.h>.
51960         (__libc_pread): Don't use CHECK_N.
51961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51962         include <bp-checks.h>.
51963         (__libc_pread64): Don't use CHECK_N.
51964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51965         include <bp-checks.h>.
51966         (__libc_pwrite): Don't use CHECK_N.
51967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51968         include <bp-checks.h>.
51969         (__libc_pwrite64): Don't use CHECK_N.
51970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51971         <bp-checks.h>.
51972         (__libc_pread): Don't use CHECK_N.
51973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51974         include <bp-checks.h>.
51975         (__libc_pread64): Don't use CHECK_N.
51976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51977         include <bp-checks.h>.
51978         (__libc_pwrite): Don't use CHECK_N.
51979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51980         include <bp-checks.h>.
51981         (__libc_pwrite64): Don't use CHECK_N.
51982         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51983         (do_pread): Don't use CHECK_N.
51984         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51985         (do_pread64): Don't use CHECK_N.
51986         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51987         (do_pwrite): Don't use CHECK_N.
51988         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51989         (do_pwrite64): Don't use CHECK_N.
51990         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51991         (__libc_readv): Don't use CHECK_N.
51992         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51993         (semop): Don't use CHECK_N.
51994         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51995         <bp-checks.h>.
51996         (semtimedop): Don't use CHECK_N.
51997         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51998         (__libc_pread): Don't use CHECK_N.
51999         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52000         <bp-checks.h>.
52001         (__libc_pread64): Don't use CHECK_N.
52002         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52003         <bp-checks.h>.
52004         (__libc_pwrite): Don't use CHECK_N.
52005         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52006         <bp-checks.h>.
52007         (__libc_pwrite64): Don't use CHECK_N.
52008         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52009         <bp-checks.h>.
52010         (__libc_msgrcv): Don't use CHECK_N.
52011         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52012         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52013         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52014         (__libc_writev): Don't use CHECK_N.
52015
52016 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52017
52018         * string/strcpy.c: Removed unused variable.
52019
52020         * Makeconfig (+sysdep-includes): Define with := rather than =.
52021         Use an existing include/ subdir of each sysdeps dir before it.
52022
52023 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52024
52025         * nscd/connection.c (register_traced_file): Comment function.
52026         [HAVE_INOTIFY] (union __inev): Define.
52027         [HAVE_INOTIFY] (inotify_check_files): New function.
52028         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52029         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52030         clear_db_cache.
52031         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52032
52033 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52034
52035         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52036         loaded if not already and that a failure is permanent.
52037
52038 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52039
52040         [BZ #15006]
52041         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52042         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52043
52044 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52045
52046         [BZ #13550]
52047         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52048         (CHECK_1_NULL_OK): Likewise.
52049         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52050         (__fxstat): Do not use CHECK_1.
52051         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52052         <bp-checks.h>.
52053         (___fxstat64): Do not use CHECK_1.
52054         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52055         <bp-checks.h>.
52056         (__fxstatat): Do not use CHECK_1.
52057         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52058         <bp-checks.h>.
52059         (__fxstatat64): Do not use CHECK_1.
52060         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52061         <bp-checks.h>.
52062         (__fxstat): Do not use CHECK_1.
52063         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52064         <bp-checks.h>.
52065         (__fxstatat): Do not use CHECK_1.
52066         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52067         <bp-checks.h>.
52068         (__getresgid): Do not use CHECK_1.
52069         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52070         <bp-checks.h>.
52071         (__getresuid): Do not use CHECK_1.
52072         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52073         <bp-checks.h>.
52074         (__lxstat): Do not use CHECK_1.
52075         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52076         <bp-checks.h>.
52077         (__old_msgctl): Do not use CHECK_1.
52078         (__new_msgctl): Likewise.
52079         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52080         <bp-checks.h>.
52081         (__new_setrlimit): Do not use CHECK_1.
52082         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52083         <bp-checks.h>.
52084         (__old_shmctl): Do not use CHECK_1.
52085         (__new_shmctl): Likewise.
52086         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52087         <bp-checks.h>.
52088         (__xstat): Do not use CHECK_1.
52089         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52090         (__lxstat): Do not use CHECK_1.
52091         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52092         <bp-checks.h>.
52093         (___lxstat64): Do not use CHECK_1.
52094         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52095         (__old_msgctl): Do not use CHECK_1.
52096         (__new_msgctl): Likewise.
52097         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52098         <bp-checks.h>.
52099         (__gettimeofday): Do not use CHECK_1.
52100         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52101         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52102         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52103         <bp-checks.h>.
52104         (__gettimeofday): Do not use CHECK_1.
52105         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52106         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52107         (__new_shmctl): Do not use CHECK_1.
52108         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52109         <bp-checks.h>.
52110         (do_sigtimedwait): Do not use CHECK_1.
52111         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52112         <bp-checks.h>.
52113         (do_sigwaitinfo): Do not use CHECK_1.
52114         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52115         <bp-checks.h>.
52116         (msgctl): Do not use CHECK_1.
52117         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52118         <bp-checks.h>.
52119         (shmctl): Do not use CHECK_1.
52120         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52121         (ustat): Do not use CHECK_1.
52122         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52123         <bp-checks.h>.
52124         (__fxstat): Do not use CHECK_1.
52125         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52126         <bp-checks.h>.
52127         (__fxstatat): Do not use CHECK_1.
52128         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52129         <bp-checks.h>.
52130         (__lxstat): Do not use CHECK_1.
52131         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52132         <bp-checks.h>.
52133         (__xstat): Do not use CHECK_1.
52134         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52135         (__xstat): Do not use CHECK_1.
52136         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52137         (___xstat64): Do not use CHECK_1.
52138
52139         [BZ #13550]
52140         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52141         definitions.
52142         (CHECK_BOUNDS_HIGH): Likewise.
52143         * string/strcpy.c: Do not include <bp-checks.h>.
52144         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52145
52146 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52147
52148         * nscd/nscd-client.h (__nscd_drop_map_ref):
52149         Add __attribute__ ((unused)).
52150         * nis/nss-nisplus.h (niserr2nss): Likewise.
52151
52152         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52153         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52154
52155         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52156         Remove inline keyword.
52157         * include/rounding-mode.h (round_away): Likewise.
52158         * libio/wfileops.c (adjust_wide_data): Likewise.
52159         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52160         (__m128i_strloadu_tolower): Likewise.
52161         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52162         (__m128i_strloadu_tolower): Likewise.
52163         * time/mktime.c (ydhms_diff): Likewise.
52164         * locale/elem-hash.h (elem_hash): Likewise.
52165         * locale/setlocale.c (setdata): Likewise.
52166         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52167         (re_string_wchar_at): Likewise.
52168         (bitset_not, bitset_merge, bitset_mask): Likewise.
52169         [!(__GNUC__ > 3)] (inline): Remove macro.
52170         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52171         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52172         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52173         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52174         * string/memcmp.c (memcmp_bytes): Likewise.
52175         * locale/programs/locarchive.c (compute_hashval): Likewise.
52176         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52177         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52178         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52179         * nss/getent.c (print_rpc, print_protocols): Likewise.
52180         (print_passwd, print_group, print_aliases): Likewise.
52181         * nis/nss-nisplus.h (niserr2nss): Likewise.
52182         * nscd/connections.c (restart_p): Likewise.
52183         Change return type to bool.
52184
52185 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52186
52187         * Makeconfig (all-Depend-files): Add existing
52188         $(sorted-subdirs:=/Depend) files.
52189         (all-subdirs): Remove nss.
52190         * sysdeps/unix/inet/Subdirs: Add it here instead.
52191         * hesiod/Depend: New file.
52192
52193         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52194         instead of calling alloca.
52195
52196         * io/lseek.c (__lseek): Rename to __libc_lseek.
52197         Define __lseek as an alias.
52198
52199         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52200
52201 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52202
52203         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52204         else clause and remove check for non-standard endianness.
52205
52206 2013-02-04  David S. Miller  <davem@davemloft.net>
52207
52208         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52209
52210 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52211
52212         [BZ #13550]
52213         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52214         (__ubp_memchr): Remove prototype.
52215         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52216         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52217         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52218         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52219         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52220         Remove alias.
52221         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52222         (__ubp_memchr): Likewise.
52223         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52224         (__ubp_memchr): Likewise.
52225         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52226         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52227         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52228         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52229         CHECK_STRING.
52230         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52231         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52232         (__getcwd): Do not use CHECK_STRING.
52233         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52234         <bp-checks.h>.
52235         (__real_chown): Do not use CHECK_STRING.
52236         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52237         <bp-checks.h>.
52238         (fchownat): Do not use CHECK_STRING.
52239         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52240         CHECK_STRING.
52241         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52242         <bp-checks.h>.
52243         (__lchown): Do not use CHECK_STRING.
52244         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52245         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52246         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52247         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52249         include <bp-checks.h>.
52250         (truncate64): Do not use CHECK_STRING.
52251         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52252         <bp-checks.h>.
52253         (__real_chown): Do not use CHECK_STRING.
52254         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52255         <bp-checks.h>.
52256         (__lchown): Do not use CHECK_STRING.
52257         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52258         <bp-checks.h>.
52259         (__chown): Do not use CHECK_STRING.
52260         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52261         <bp-checks.h>.
52262         (truncate64): Do not use CHECK_STRING.
52263         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52264         Likewise.
52265         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52266         (__xmknod): Do not use CHECK_STRING.
52267         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52268         <bp-checks.h>.
52269         (__xmknodat): Do not use CHECK_STRING.
52270         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52271         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52272
52273 2013-02-04  Andreas Schwab  <schwab@suse.de>
52274
52275         [BZ #14142]
52276         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52277         * include/netdb.h: Likewise for h_errno.
52278         * elf/tst-stackguard1.c: Include <tls.h>.
52279
52280 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52281
52282         * elf/link.h (struct link_map): Extend the l_addr comment.
52283         * include/link.h (struct link_map): Likewise.
52284
52285 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52286
52287         [BZ #13550]
52288         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52289         (BOUNDED_1): Remove macro.
52290         * debug/backtrace.c: Don't include <bp-checks.h>.
52291         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52292         (__backtrace): Likewise.
52293         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52294         <bp-checks.h>.
52295         (__backtrace): Don't use BOUNDED_1.
52296         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52297         <bp-checks.h>.
52298         (__backtrace): Don't use BOUNDED_1.
52299         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52300         (__backtrace): Don't use BOUNDED_1.
52301         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52302         (shmat): Don't use BOUNDED_N.
52303
52304 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52305
52306         [BZ #13550]
52307         * sysdeps/generic/bp-start.h: Remove file.
52308         * csu/libc-start.c: Don't include <bp-start.h>.
52309         (LIBC_START_MAIN): Set up __environ directly instead of using
52310         INIT_ARGV_and_ENVIRON.
52311         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52312         <bp-start.h>.
52313
52314         [BZ #13550]
52315         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52316         definitions.
52317         (CHECK_FCNTL): Likewise.
52318         (CHECK_N_PAGES): Likewise.
52319
52320         [BZ #13550]
52321         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52322         definitions.
52323         (CHECK_SIGSET_NULL_OK): Likewise.
52324         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52325         <bp-checks.h>.
52326         (sigpending): Don't use CHECK_SIGSET.
52327         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52328         <bp-checks.h>.
52329         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52330         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52331         <bp-checks.h>.
52332         (do_sigsuspend): Don't use CHECK_SIGSET.
52333         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52334         use CHECK_SIGSET.
52335         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52336         (do_sigwait): Don't use CHECK_SIGSET.
52337         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52338         use CHECK_SIGSET.
52339         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52340         include <bp-checks.h>.
52341         (sigpending): Don't use CHECK_SIGSET.
52342         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52343         include <bp-checks.h>.
52344         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52345         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52346         <bp-checks.h>.
52347         (sigpending): Don't use CHECK_SIGSET.
52348         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52349         <bp-checks.h>.
52350         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52351
52352         [BZ #13550]
52353         * sysdeps/generic/bp-semctl.h: Remove file.
52354         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52355         <bp-checks.h> and <bp-semctl.h>.
52356         (__old_semctl): Don't use CHECK_SEMCTL.
52357         (__new_semctl): Likewise.
52358         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52359         and <bp-semctl.h>.
52360         (__old_semctl): Don't use CHECK_SEMCTL.
52361         (__new_semctl): Likewise.
52362         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52363         <bp-checks.h> and <bp-semctl.h>.
52364         (__old_semctl): Don't use CHECK_SEMCTL.
52365         (__new_semctl): Likewise.
52366         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52367         <bp-checks.h> and <bp-semctl.h>.
52368         (semctl): Don't use CHECK_SEMCTL.
52369
52370         [BZ #13550]
52371         * Makerules (elide-bp-thunks): Remove variable.
52372         (elide-routines.oS): Don't use $(elide-bp-thunks).
52373         (elide-routines.os): Likewise.
52374         (elide-routines.o): Likewise.
52375         (elide-routines.op): Likewise.
52376         (elide-routines.og): Likewise.
52377         (objects): Don't use $(bp-thunks).
52378         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52379         include.
52380         (common-generated): Do not add s-proto-bp.d.
52381         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52382         (int): Likewise.
52383         (typ): Likewise.
52384         Do not generate makefile rules for bounded-pointer thunks.
52385         * sysdeps/generic/bp-thunks.h: Remove file.
52386         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52387         * sysdeps/unix/s-proto-bp.S: Likewise.
52388
52389         [BZ #15062]
52390         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52391         parts of result separately when argument is not close to line from
52392         -i to i and one part of argument is small.
52393         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52394         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52395         * math/libm-test.inc (cacos_test): Add more tests.
52396         (casin_test): Likewise.
52397         (casinh_test): Likewise.
52398         * sysdeps/i386/fpu/libm-test-ulps: Update.
52399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52400
52401 2013-01-31  David S. Miller  <davem@davemloft.net>
52402
52403         * po/de.po: Update from translation team.
52404
52405 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52406
52407         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52408
52409 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52410
52411         * configure.in (_AC_PROG_CC_C89): New definition.
52412         * configure: Regenerate.
52413
52414         * configure.in (AC_PROG_CPP): New definition.
52415         * configure: Regenerate.
52416
52417 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52418
52419         * debug/tst-backtrace.h: New file.
52420         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52421         (ret): Remove variable.
52422         (x): Likewise.
52423         (FAIL): Remove macro.
52424         (NO_INLINE): Likewise.
52425         (fn1): Use match function instead of strstr.
52426         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52427         (ret): Remove variable.
52428         (x): Likewise.
52429         (FAIL): Remove macro.
52430         (NO_INLINE): Likewise.
52431         (fn): Use match function instead of strstr.
52432         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52433         (ret): Remove variable.
52434         (x): Likewise.
52435         (FAIL): Remove macro.
52436         (NO_INLINE): Likewise.
52437         (handle_signal): Use match function instead of strstr.
52438         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52439         (ret): Remove variable.
52440         (x): Likewise.
52441         (FAIL): Remove macro.
52442         (NO_INLINE): Likewise.
52443         (handle_signal): Use match function instead of strstr.
52444
52445 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52446
52447         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52448
52449 2013-01-23  David S. Miller  <davem@davemloft.net>
52450
52451         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52452         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52453         argument of CAS if possible.
52454         * sysdeps/sparc/sparc64/bits/atomic.h
52455         (__arch_compare_and_exchange_val_32_acq): Likewise.
52456         (__arch_compare_and_exchange_val_64_acq): Likewise.
52457
52458 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52459
52460         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52461         * sysdeps/posix/ulimit.c: ... this.
52462         Include <limits.h>.
52463         * sysdeps/unix/bsd/ulimit.c: Remove file.
52464
52465 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52466
52467         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52468         (LDFLAGS-tst-array5): Likewise.
52469
52470 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52471
52472         [BZ #15036]
52473         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52474         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52475         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52476         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52477
52478 2013-01-21  David S. Miller  <davem@davemloft.net>
52479
52480         * sysdeps/sparc/backtrace.c: New file.
52481         * sysdeps/sparc/sparc32/backtrace.h: New file.
52482         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52483         * sysdeps/sparc/sparc64/backtrace.h: New file.
52484         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52485         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52486         -funwind-tables.
52487
52488 2013-01-21  Andreas Schwab  <schwab@suse.de>
52489
52490         [BZ #15020]
52491         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52492         closed its stdout.
52493
52494 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52495
52496         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52497         "mpa2.h".
52498         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52499
52500 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52501             Mark Mitchell  <mark@codesourcery.com>
52502             Tom de Vries  <tom@codesourcery.com>
52503             Paul Pluzhnikov  <ppluzhnikov@google.com>
52504
52505         * debug/tst-backtrace2.c: New file.
52506         * debug/tst-backtrace3.c: Likewise.
52507         * debug/tst-backtrace4.c: Likewise.
52508         * debug/tst-backtrace5.c: Likewise.
52509         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52510         (CFLAGS-tst-backtrace3.c): Likewise.
52511         (CFLAGS-tst-backtrace4.c): Likewise.
52512         (CFLAGS-tst-backtrace5.c): Likewise.
52513         (LDFLAGS-tst-backtrace2): Likewise.
52514         (LDFLAGS-tst-backtrace3): Likewise.
52515         (LDFLAGS-tst-backtrace4): Likewise.
52516         (LDFLAGS-tst-backtrace5): Likewise.
52517         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52518         tst-backtrace4 and tst-backtrace5.
52519
52520 2013-01-18  Anton Blanchard  <anton@samba.org>
52521             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52522
52523         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52524         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52525         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52526         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52528         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52529         "+r" and remove output regs list as redundant.  Add explicit inline
52530         asm to specify register of return val to work around compiler codegen
52531         bug.  Remove (int) cast on return value.  Add return type parameter to
52532         use in macro so that this macro does not truncate return value for
52533         64-bit values.
52534         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52535         pass to INTERNAL_VSYSCALL_NCS.
52536         (INLINE_VSYSCALL): Add 'long int' as return type to
52537         INTERNAL_VSYSCALL_NCS macro invocation.
52538         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52539         INTERNAL_VSYSCALL_NCS macro invocation.
52540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52541
52542 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52543
52544         [BZ #14496]
52545         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52546         Fix application of SIMD FP exception mask.
52547
52548         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52549         mp_no from a power of two.
52550         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52551         __mpexp_twomm1.  Use __pow_mp.
52552
52553         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52554         multiplication.
52555
52556 2013-01-17  David S. Miller  <davem@davemloft.net>
52557
52558         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52559
52560 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52561
52562         [BZ #15023]
52563         * include/complex.h: Condition contents on [!_COMPLEX_H].
52564         (__kernel_casinhf): New prototype.
52565         (__kernel_casinh): Likewise.
52566         (__kernel_casinhl): Likewise.
52567         * math/Makefile (libm_calls): Add k_casinh.
52568         * math/k_casinh.c: New file.
52569         * math/k_casinhf.c: Likewise.
52570         * math/k_casinhl.c: Likewise.
52571         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52572         finite nonzero arguments.
52573         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52574         finite nonzero arguments.
52575         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52576         finite nonzero arguments.
52577         * math/s_casinh.c: Do not include <float.h>.
52578         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52579         * math/s_casinhf.c: Do not include <float.h>.
52580         (__casinhf): Move code for finite nonzero arguments to
52581         k_casinhf.c.
52582         * math/s_casinhl.c: Do not include <float.h>.
52583         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52584         redefine.
52585         (__casinhl): Move code for finite nonzero arguments to
52586         k_casinhl.c.
52587         * math/libm-test.inc (cacos_test): Add more tests.
52588         * sysdeps/i386/fpu/libm-test-ulps: Update.
52589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52590
52591 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52592
52593         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52594         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52595         [!HAVE_MREMAP]: Remove [defined linux] case.
52596         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52597
52598 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52599
52600         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52601
52602 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52603
52604         * elf/elf.h (R_386_SIZE32): New relocation.
52605         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52606         R_386_SIZE32.
52607         (elf_machine_rela): Likewise.
52608         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52609         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52610
52611 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52612
52613         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52614         (FP_FAST_FMA): Do not define.
52615         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52616         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52617         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52618         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52619         !_SOFT_FLOAT]: Likewise.
52620         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52621         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52622         value.
52623         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52624         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52625         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52626         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52627         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52628         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52629         file.
52630
52631 2013-01-16  Andreas Schwab  <schwab@suse.de>
52632
52633         [BZ #14327]
52634         * include/stdlib.h (__mktemp): Add declaration.
52635         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52636         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52637
52638 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52639
52640         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52641         definitions.
52642         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52643         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52644         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52645         definitions here.
52646         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52647         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52648         definitions.
52649         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52650         and ONE.
52651         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52652         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52653         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52654         definitions.
52655         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52656         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52657         definitions.
52658         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52659
52660         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52661
52662 2013-01-15  David S. Miller  <davem@davemloft.net>
52663
52664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52665         trunc{,f} to libm-sysdep_routes.
52666         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52668         file.
52669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52671         file.
52672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52673         file.
52674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52676         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52677         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52678         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52679         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52680         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52681         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52682
52683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52684         nearbyint{,f} to libm-sysdep_routes.
52685         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52687         New file.
52688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52689         file.
52690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52691         New file.
52692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52693         file.
52694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52696         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52697         file.
52698         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52699         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52700         file.
52701         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52702         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52703         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52704
52705         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52706         libc_feholdexcept and libc_fesetenv.
52707
52708 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52709
52710         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52711
52712 2013-01-14  David S. Miller  <davem@davemloft.net>
52713
52714         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52715         (SPARC_ASM_VIS2_IFUNC): Likewise.
52716         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52718         use of 'siam' instruction.
52719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52720         Likewise.
52721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52722         Likewise.
52723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52724         Likewise.
52725         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52726         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52727         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52728         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52730         file.
52731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52732         file.
52733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52734         file.
52735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52736         file.
52737         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52738         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52739         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52740         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52742         new VIS2 routines.
52743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52746         Likewise.
52747         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52748         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52749         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52750         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52752         routines to libm-sysdep_routines.
52753         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52754
52755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52756         fdim/fdimf to libm-sysdep_routines.
52757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52758         file.
52759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52761         file.
52762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52765         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52766         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52767         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52768         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52769
52770 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52771
52772         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52773         to optimize copies.
52774
52775         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52776         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52777         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52778
52779         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52780         local variable MPTWO.
52781         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52782         Likewise.
52783
52784 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52785
52786         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52787         GLOB_NOESCAPE.
52788
52789 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52790
52791         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52792
52793 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52794
52795         * manual/pattern.texi (glob_t): Document gl_flags.
52796         (glob64_t): Likewise.
52797
52798 2013-01-11  David S. Miller  <davem@davemloft.net>
52799
52800         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52801         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52802         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52803         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52804         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52805         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52806         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52807         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52808         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52809         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52810         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52811         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52812         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52813
52814         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52815         sparc V9 rather than using V8 code.
52816         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52817         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52818
52819         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52820         Move to...
52821         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52822         Here.
52823
52824 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52825
52826         [BZ #14941]
52827         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52828         not in the main loop.
52829         * configure: Regenerated.
52830
52831 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52832
52833         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52834         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52835         to just #else.
52836         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52837         [!__GLIBC_HAVE_LONG_LONG] case.
52838         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52839         condition to just #else.
52840         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52841         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52842         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52843         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52844         unconditional.
52845         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52846         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52847         #elif condition to just #else.
52848         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52849         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52850         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52851         #elif condition to just #else.
52852
52853 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52854
52855         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52856         (EF_MIPS_ARCH_64): Fix value.
52857         (EF_MIPS_ARCH_32R2): New.
52858         (EF_MIPS_ARCH_64R2): New.
52859
52860 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52861
52862         * Makeconfig (+link-pie-before-libc): New.
52863         (+link-pie-after-libc): Likewise.
52864         (+link-pie-tests): Likewise.
52865         (+link-pie): Rewritten.
52866         (link-before-libc): Remove $(config-LDFLAGS).
52867         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52868         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52869         (config-LDFLAGS): Renamed to ...
52870         (rtld-LDFLAGS): This.
52871         (rtld-tests-LDFLAGS): New macro.
52872         (link-libc-rpath-link): Likewise.
52873         (link-libc-tests-rpath-link): Likewise.
52874         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52875         (link-libc): Prepand $(link-libc-rpath-link).
52876         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52877         (test-program-prefix): New macro.
52878         (test-via-rtld-prefix): Likewise.
52879         (test-program-cmd): Likewise.
52880         (host-test-program-cmd): Likewise.
52881         * Makefile ($(common-objpfx)testrun.sh): Replace
52882         $(run-program-prefix) with $(test-program-prefix).
52883         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52884         $(rtld-LDFLAGS).
52885         ($(common-objpfx)shlib.lds): Likewise.
52886         (build-module-helper): Likewise.
52887         ($(common-objpfx)format.lds): Likewise.
52888         * Rules (binaries-pie-tests): New.
52889         (binaries-pie-notests): Likewise.
52890         (binaries-pie): Rewritten.
52891         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52892         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52893         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52894         (make-test-out): Replace $(host-built-program-cmd) with
52895         $(host-test-program-cmd).
52896         * config.make.in (build-hardcoded-path-in-tests): New variable.
52897         * configure.in (--enable-hardcoded-path-in-tests): New configure
52898         option.
52899         (hardcoded_path_in_tests): New AC_SUBST.
52900         * configure: Regenerated.
52901         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52902         $(built-program-cmd) with $(test-program-cmd).
52903         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52904         (test_program_cmd): This.
52905         * elf/Makefile ($(objpfx)order.out): Run test with
52906         $(test-program-prefix).
52907         ($(objpfx)order2.out): Likewise.
52908         ($(objpfx)tst-initorder.out): Likewise.
52909         ($(objpfx)tst-initorder2.out): Likewise.
52910         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52911         $(test-program-cmd).
52912         ($(objpfx)tst-array1-static.out): Likewise.
52913         ($(objpfx)tst-array2.out): Likewise.
52914         ($(objpfx)tst-array3.out): Likewise.
52915         ($(objpfx)tst-array4.out): Likewise.
52916         ($(objpfx)tst-array5.out): Likewise.
52917         ($(objpfx)tst-array5-static.out): Likewise.
52918         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52919         $(test-program-cmd).
52920         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52921         $(run-program-prefix) with $(test-program-prefix).
52922         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52923         (test_program_prefix): This.
52924         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52925         $(run-program-prefix) with $(test-program-prefix).
52926         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52927         (test_program_prefix): This.
52928         * iconvdata/tst-tables.sh: Likewise.
52929         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52930         $(run-program-prefix) with $(test-program-prefix).
52931         ($(objpfx)tst-translit.out): Likewise.
52932         ($(objpfx)tst-gettext2.out): Likewise.
52933         ($(objpfx)tst-gettext4.out): Likewise.
52934         ($(objpfx)tst-gettext6.out): Likewise.
52935         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52936         (test_program_prefix): This.
52937         * intl/tst-gettext2.sh: Likewise.
52938         * intl/tst-gettext4.sh  Likewise.
52939         * intl/tst-gettext6.sh: Likewise.
52940         * intl/tst-translit.sh: Likewise.
52941         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52942         with $(test-program-cmd).
52943         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52944         $(run-program-prefix) with $(test-program-prefix).
52945         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52946         (test_program_prefix): This.
52947         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52948         $(run-program-prefix) with $(test-program-prefix).
52949         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52950         (test_program_prefix): This.
52951         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52952         * posix/Makefile ($(objpfx)globtest.out): Replace
52953         $(run-via-rtld-prefix) and $(test-wrapper) with
52954         $(test-program-prefix) and $(test-via-rtld-prefix).
52955         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52956         $(test-program-prefix).
52957         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52958         $(host-test-program-cmd).
52959         (tst-spawn-ARGS): Likewise.
52960         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52961         $(test-program-prefix).
52962         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52963         (test_via_rtld_prefix): This.
52964         (test_wrapper): Renamed to ...
52965         (test_program_prefix): This.
52966         (run_program_prefix): Replaced by test_program_prefix.
52967         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52968         (test_program_prefix): This.
52969         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52970         with $(host-test-program-cmd).
52971         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52972         $(run-program-prefix) with $(test-program-prefix).
52973         ($(objpfx)tst-printf.out): Likewise.
52974         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52975         $(test-program-cmd).
52976         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52977         (test_program_prefix): This.
52978         * stdio-common/tst-unbputc.sh: Likewise.
52979         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52980         $(run-program-prefix) with $(test-program-prefix).
52981         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52982         (test_program_prefix): This.
52983         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52984         $(built-program-cmd) with $(test-program-cmd).
52985
52986 2013-01-11  Andreas Jaeger  <aj@suse.de>
52987
52988         [BZ #15003]
52989         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52990         value. Sync with Linux 3.7.
52991
52992 2013-01-10  David S. Miller  <davem@davemloft.net>
52993
52994         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52995         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52996         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52997
52998 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52999
53000         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53001         never set.
53002         * configure: Regenerated.
53003
53004 2013-01-10  David S. Miller  <davem@davemloft.net>
53005
53006         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53007         sparc V9 rather than using V8 code.
53008         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53009         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53010
53011 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53012
53013         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53014         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53015         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53016         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53017         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53018         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53019         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53020         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53021         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53022         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53023         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53024         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53025         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53026         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53027         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53028         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53029         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53030         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53031         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53032         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53033         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53034         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53035         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53036         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53037         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53038         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53039         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53040
53041 2013-01-10  David S. Miller  <davem@davemloft.net>
53042
53043         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53044
53045 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53046
53047         * posix/Makefile (tests-static): New variable.
53048         (tests): Add $(tests-static).
53049         (tst-exec-static-ARGS): New variable.
53050         (tst-spawn-static-ARGS): Likewise.
53051         * posix/tst-exec-static.c: New file.
53052         * posix/tst-spawn-static.c: Likewise.
53053         * posix/tst-exec.c: Support run directly.
53054         * posix/tst-spawn.c: Likewise.
53055
53056 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53057
53058         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53059         long.
53060         * math/bits/mathcalls.h (llrint): Likewise.
53061         (llround): Likewise.
53062         * stdlib/stdlib.h (struct drand48_data): Likewise.
53063         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53064         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53065         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53066         Likewise.
53067         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53068         Likewise.
53069         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53070         (elf_greg_t): Likewise.
53071         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53072         (__jmp_buf): Likewise.
53073         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53074         definitions.
53075         (llrint): Likewise, for all definitions.
53076         (llrintl): Likewise.
53077
53078         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53079         Remove [__GNUC__] condition.
53080         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53081         condition to just [__USE_ISOC99].
53082         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53083
53084 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53085
53086         [BZ #14200]
53087         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53088         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53089         defined.
53090         (_POSIX_V6_ILP32_OFF32): Likewise.
53091         (_XBS5_ILP32_OFF32): Likewise.
53092         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53093         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53094
53095 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53096
53097         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53098
53099         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53100         doubles __mpexp_twomm1.  Adjust usage.
53101         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53102         Remove.
53103
53104 2013-01-10  Andreas Schwab  <schwab@suse.de>
53105
53106         [BZ #14964]
53107         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53108         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53109
53110 2013-01-09  David S. Miller  <davem@davemloft.net>
53111
53112         [BZ #15003]
53113         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53114         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53115         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53116         (TCP_FASTOPEN): Define.
53117         (tcp_repair_opt): New structure.
53118         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53119         enum values.
53120         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53121         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53122         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53123         (tcp_cookie_transactions): New structure.
53124
53125 2013-01-09  Anton Blanchard  <anton@samba.org>
53126
53127         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53128         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53129         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53130         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53131
53132 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53133
53134         * include/features.h (__USE_ANSI): Remove.
53135
53136 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53137
53138         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53139
53140         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53141
53142 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53143
53144         * sysdeps/s390/fpu/libm-test-ulps: Update.
53145
53146         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53147
53148         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53149         (__acr): Likewise.
53150         (__cpy): Likewise.
53151         (norm): Likewise.
53152         (denorm): Likewise.
53153         (__mp_dbl): Likewise.
53154         (__dbl_mp): Likewise.
53155         (add_magnitudes): Likewise.
53156         (sub_magnitudes): Likewise.
53157         (__add): Likewise.
53158         (__sub): Likewise.
53159         (__mul): Likewise.
53160         (__inv): Likewise.
53161         (__dvd): Likewise.
53162         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53163         (__acr): Likewise.
53164         (__cpy): Likewise.
53165         (norm): Likewise.
53166         (denorm): Likewise.
53167         (__mp_dbl): Likewise.
53168         (__dbl_mp): Likewise.
53169         (add_magnitudes): Likewise.
53170         (sub_magnitudes): Likewise.
53171         (__add): Likewise.
53172         (__sub): Likewise.
53173         (__mul): Likewise.
53174         (__inv): Likewise.
53175         (__dvd): Likewise.
53176         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53177         (__acr): Likewise.
53178         (__cpy): Likewise.
53179         (norm): Likewise.
53180         (denorm): Likewise.
53181         (__mp_dbl): Likewise.
53182         (__dbl_mp): Likewise.
53183         (add_magnitudes): Likewise.
53184         (sub_magnitudes): Likewise.
53185         (__add): Likewise.
53186         (__sub): Likewise.
53187         (__mul): Likewise.
53188         (__inv): Likewise.
53189         (__dvd): Likewise.
53190
53191 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53192
53193         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53194         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53195         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53196         2 && __USE_EXTERN_INLINES]: Likewise.
53197
53198 2013-01-08  Andreas Jaeger  <aj@suse.de>
53199
53200         [BZ# 14985]
53201         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53202         Remove.
53203         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53204         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53205
53206 2013-01-07  Anton Blanchard  <anton@samba.org>
53207
53208         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53209         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53210         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53211         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53212         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53213         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53214         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53215         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53216         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53217         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53218         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53219         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53220         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53221         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53222         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53223         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53224         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53225         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53226         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53227         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53228         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53229         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53230         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53231         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53232         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53233         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53234         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53235         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53236         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53237         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53238         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53239         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53240         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53241         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53242         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53243         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53244         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53245         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53246         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53247         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53248         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53249         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53250         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53251
53252 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53253
53254         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53255         (__MALLOC_PMT): Likewise.
53256         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53257         [__GNUC__], only on [_LIBC].
53258         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53259         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53260         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53261         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53262         forward declaration.
53263         (realloc_hook_ini): Likewise.
53264         (memalign_hook_ini): Likewise.
53265         (__libc_memalign): Do not use __MALLOC_PMT in variable
53266         declaration.
53267         (__libc_valloc): Likewise.
53268         (__libc_pvalloc): Likewise.
53269         (__libc_calloc): Likewise.
53270         (__posix_memalign): Likewise.
53271
53272         [BZ #14996]
53273         * math/s_casinh.c: Include <float.h>.
53274         (__casinh): Do not do computation with squaring and square root
53275         for large arguments.
53276         * math/s_casinhf.c: Include <float.h>.
53277         (__casinhf): Do not do computation with squaring and square root
53278         for large arguments.
53279         * math/s_casinhl.c: Include <float.h>.
53280         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53281         (__casinhl): Do not do computation with squaring and square root
53282         for large arguments.
53283         * math/libm-test.inc (casin_test): Add more tests.
53284         (casinh_test): Likewise.
53285         * sysdeps/i386/fpu/libm-test-ulps: Update.
53286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53287
53288 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53289
53290         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53291         (__x86_64_raw_data_cache_size): Likewise.
53292         (__x86_64_data_cache_size_half): Likewise.
53293         (__x86_64_raw_data_cache_size_half): Likewise.
53294         (__x86_64_shared_cache_size): Likewise.
53295         (__x86_64_raw_shared_cache_size): Likewise.
53296         (__x86_64_shared_cache_size_half): Likewise.
53297         (__x86_64_raw_shared_cache_size_half): Likewise.
53298         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53299         to ...
53300         (__x86_data_cache_size): This.
53301         (__x86_64_raw_data_cache_size): Renamed to ...
53302         (__x86_raw_data_cache_size): This.
53303         (__x86_64_data_cache_size_half): Renamed to ...
53304         (__x86_data_cache_size_half): This.
53305         (__x86_64_raw_data_cache_size_half): Renamed to ...
53306         (__x86_raw_data_cache_size_half): This.
53307         (__x86_64_shared_cache_size): Renamed to ...
53308         (__x86_shared_cache_size): This.
53309         (__x86_64_raw_shared_cache_size): Renamed to ...
53310         (__x86_raw_shared_cache_size): This.
53311         (__x86_64_shared_cache_size_half): Renamed to ...
53312         (__x86_shared_cache_size_half): This.
53313         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53314         (__x86_raw_shared_cache_size_half): This.
53315         * sysdeps/x86_64/memcpy.S: Updated.
53316         * sysdeps/x86_64/memset.S: Likewise.
53317         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53318         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53319         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53320
53321 2013-01-04  David S. Miller  <davem@davemloft.net>
53322
53323         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53324
53325 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53326
53327         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53328         1 to avoid redefinition warning.
53329         (__USE_GNU): Don't define.
53330         (init_signaling_nan): Protoize.
53331
53332         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53333
53334 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53335
53336         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53337         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53338         (__cpymn): Likewise.
53339         (norm): Remove commented code.
53340         (denorm): Likewise.
53341         (__mp_dbl): Likewise.
53342         (__inv): Likewise.
53343         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53344         (__cpymn): Likewise.
53345         (norm): Remove commented code.
53346         (denorm): Likewise.
53347         (__mp_dbl): Likewise.
53348         (__inv): Likewise.
53349
53350         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53351         mp_no value for 1.0 and 2.0.
53352         (norm): Use RADIXI instead of radixi.d.
53353         (denorm): Likewise.
53354         (__mul): Use 0.0 instead of zero.d.
53355         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53356         mp_no value for 1.0 and 2.0.
53357         (norm): Use RADIXI instead of radixi.d.
53358         (denorm): Likewise.
53359         (__mul): Use 0.0 instead of zero.d.
53360
53361 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53362
53363         [BZ #14994]
53364         * math/s_casinh.c (__casinh): Reduce finite argument to first
53365         quadrant then set signs of results at the end.
53366         * math/s_casinhf.c (__casinhf): Likewise.
53367         * math/s_casinhl.c (__casinhl): Likewise.
53368         * math/libm-test.inc (casin_test): Add more tests.
53369         (casinh_test): Likewise.
53370         * sysdeps/i386/fpu/libm-test-ulps: Update.
53371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53372
53373 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53374
53375         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53376
53377         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53378
53379         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53380         declarations.
53381         (denorm): Likewise.
53382         (__mp_dbl): Likewise.
53383         (__inv): Likewise.
53384
53385         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53386         and adjust the header comment.
53387
53388         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53389         variable name from declaration.
53390
53391 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53392
53393         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53394         Initialize COMMON_CPUID_INDEX_7 element.
53395         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53396         (CPUID_RTM): Likewise.
53397         (HAS_RTM): Likewise.
53398         (COMMON_CPUID_INDEX_7): New enum.
53399
53400 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53401
53402         [BZ #14981]
53403         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53404         size is zero, record memory as freed.
53405
53406 2013-01-03  Andreas Jaeger  <aj@suse.de>
53407
53408         * po/ia.po: Add new Interlingua translation.
53409
53410 2012-01-03  Allan McRae  <allan@archlinux.org>
53411
53412         * locale/programs/localedef.c: Fix description of '--posix' flag.
53413
53414 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53415
53416         * NEWS: Update dates in second copyright notice.
53417         * README: Update copyright dates in example.
53418         * manual/libc.texinfo: Update copyright dates.
53419         * scripts/test-installation.pl: Update copyright date in --version
53420         output.
53421
53422         * hurd/ctty-input.c: Fix copyright notice formatting.
53423         * hurd/ctty-output.c: Likewise.
53424         * hurd/dtable.c: Likewise.
53425         * hurd/hurd-raise.c: Likewise.
53426         * hurd/hurdprio.c: Likewise.
53427         * hurd/msgportdemux.c: Likewise.
53428         * misc/sys/file.h: Likewise.
53429         * misc/sys/ioctl.h: Likewise.
53430         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53431         * sysdeps/mach/hurd/chdir.c: Likewise.
53432         * sysdeps/mach/hurd/fchdir.c: Likewise.
53433         * sysdeps/mach/hurd/rename.c: Likewise.
53434         * sysdeps/mach/hurd/rmdir.c: Likewise.
53435         * sysdeps/mach/hurd/seekdir.c: Likewise.
53436         * sysdeps/mach/hurd/setsid.c: Likewise.
53437         * sysdeps/posix/wait3.c: Likewise.
53438
53439         * All files with FSF copyright notices: Update copyright dates
53440         using scripts/update-copyrights.
53441         * intl/plural.c: Regenerated.
53442         * locale/programs/charmap-kw.h: Likewise.
53443         * locale/programs/locfile-kw.h: Likewise.
53444
53445 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53446
53447         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53448         four values.
53449
53450         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53451         calculation loop and add branch prediction.
53452
53453         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53454         check access beyond bounds of m1np.
53455
53456         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53457         MPTWO.
53458         (__inv): Remove local variable MPTWO to use the global
53459         constant.
53460         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53461         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53462         variable MPTWO.
53463         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53464         MP3HALFS static const.
53465
53466 2013-01-01  David S. Miller  <davem@davemloft.net>
53467
53468         * po/ca.po: Update from translation team.
53469
53470 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53471
53472         * scripts/update-copyrights: New file.
53473         * Makeconfig: Reformat copyright notice.
53474         * ctype/ctype.h: Likewise.
53475         * debug/swprintf_chk.c: Likewise.
53476         * elf/dl-cache.c: Likewise.
53477         * elf/dl-debug.c: Likewise.
53478         * elf/dl-object.c: Likewise.
53479         * grp/initgroups.c: Likewise.
53480         * hurd/Makefile: Likewise.
53481         * hurd/hurd/signal.h: Likewise.
53482         * hurd/hurdfault.c: Likewise.
53483         * hurd/hurdioctl.c: Likewise.
53484         * hurd/hurdlookup.c: Likewise.
53485         * hurd/intr-msg.c: Likewise.
53486         * iconv/gconv_open.c: Likewise.
53487         * libio/swprintf.c: Likewise.
53488         * locale/lc-ctype.c: Likewise.
53489         * locale/nl_langinfo.c: Likewise.
53490         * mach/Machrules: Likewise.
53491         * mach/Makefile: Likewise.
53492         * malloc/obstack.h: Likewise.
53493         * manual/Makefile: Likewise.
53494         * manual/tsort.awk: Likewise.
53495         * misc/bits/stab.def: Likewise.
53496         * nis/nis_print_group_entry.c: Likewise.
53497         * nis/nis_table.c: Likewise.
53498         * nis/nss_compat/compat-pwd.c: Likewise.
53499         * nis/nss_compat/compat-spwd.c: Likewise.
53500         * po/Makefile: Likewise.
53501         * posix/fnmatch.c: Likewise.
53502         * posix/regex.h: Likewise.
53503         * resolv/Makefile: Likewise.
53504         * resolv/nss_dns/dns-network.c: Likewise.
53505         * resolv/res_hconf.c: Likewise.
53506         * scripts/gen-sorted.awk: Likewise.
53507         * soft-fp/soft-fp.h: Likewise.
53508         * stdio-common/printf.h: Likewise.
53509         * stdlib/monetary.h: Likewise.
53510         * stdlib/random.c: Likewise.
53511         * stdlib/random_r.c: Likewise.
53512         * sysdeps/generic/Makefile: Likewise.
53513         * sysdeps/gnu/Makefile: Likewise.
53514         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53515         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53516         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53517         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53518         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53519         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53520         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53521         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53522         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53523         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53524         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53525         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53526         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53527         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53528         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53529         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53530         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53531         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53532         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53533         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53534         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53535         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53536         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53537         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53538         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53539         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53540         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53541         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53542         * sysdeps/mach/hurd/errnos.awk: Likewise.
53543         * sysdeps/mach/hurd/fork.c: Likewise.
53544         * sysdeps/mach/hurd/getcwd.c: Likewise.
53545         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53546         * sysdeps/mach/hurd/mmap.c: Likewise.
53547         * sysdeps/mach/hurd/utimes.c: Likewise.
53548         * sysdeps/mach/hurd/xmknod.c: Likewise.
53549         * sysdeps/posix/profil.c: Likewise.
53550         * sysdeps/posix/readdir_r.c: Likewise.
53551         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53552         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53553         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53554         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53556         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53557         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53558         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53559         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53560         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53561         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53562         * sysdeps/pthread/lio_listio.c: Likewise.
53563         * sysdeps/sparc/dl-procinfo.h: Likewise.
53564         * sysdeps/unix/i386/sysdep.S: Likewise.
53565         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53566         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53567         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53568         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53570         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53571         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53572         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53573         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53574         * sysdeps/wordsize-32/divdi3.c: Likewise.
53575         * time/sys/time.h: Likewise.
53576         * wcsmbs/Makefile: Likewise.
53577
53578 2013-01-01  David S. Miller  <davem@davemloft.net>
53579
53580         * po/fr.po: Update from translation team.
53581
53582         * catgets/gencat.c: Update copyright year.
53583         * csu/version.c: Likewise.
53584         * debug/catchsegv.sh: Likewise.
53585         * debug/pcprofiledump.c: Likewise.
53586         * debug/xtrace.sh: Likewise.
53587         * elf/ldconfig.c: Likewise.
53588         * elf/ldd.bash.in: Likewise.
53589         * elf/pldd.c: Likewise.
53590         * elf/sotruss.ksh: Likewise.
53591         * elf/sprof.c: Likewise.
53592         * iconv/iconv_prog.c: Likewise.
53593         * iconv/iconvconfig.c: Likewise.
53594         * locale/programs/locale.c: Likewise.
53595         * locale/programs/localedef.c: Likewise.
53596         * login/programs/pt_chown.c: Likewise.
53597         * malloc/memusage.sh: Likewise.
53598         * malloc/memusagestat.c: Likewise.
53599         * malloc/mtrace.pl: Likewise.
53600         * nscd/nscd.c: Likewise.
53601         * nss/getent.c: Likewise.
53602         * nss/makedb.c: Likewise.
53603         * posix/getconf.c: Likewise.
53604
53605 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53606
53607         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53608         numbers.
53609
53610 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53611
53612         * math/bits/mathcalls.h (modf): Use __nonnull.
53613
53614 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53615
53616         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53617         (split): Use macro CN instead of the bare value.
53618         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53619         could be used.
53620         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53621         instead of the bare value.
53622         (power1): Likewise.
53623
53624 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53625
53626         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53627         __ATAN_TWOM.
53628         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53629
53630         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53631         their values.
53632         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53633         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53634         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53635         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53636
53637 2012-12-28  Andreas Jaeger  <aj@suse.de>
53638
53639         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53640         values are from Linux 3.7.
53641
53642         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53643         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53644
53645 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53646
53647         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53648         TRUE case.
53649
53650         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53651         (norm): Likewise.
53652         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53653         variables with preprocessor constants.
53654         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53655         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53656         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53657
53658 2012-12-27  Bruno Haible  <bruno@clisp.org>
53659
53660         [BZ #14317]
53661         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53662         only if needed.
53663
53664 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53665
53666         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53667         and use variable directly.
53668         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53669
53670         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53671         MPONE.
53672         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53673         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53674         variable MPONE.
53675         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53676         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53677         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53678         include directive.  Remove local variable MPONE.
53679         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53680         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53681         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53682
53683 2012-12-25  David S. Miller  <davem@davemloft.net>
53684
53685         * version.h (RELEASE): Set to "development".
53686         (VERSION): Set to "2.17.90".
53687         * NEWS: Add 2.18 section.
53688
53689 2012-12-21  David S. Miller  <davem@davemloft.net>
53690
53691         * po/hr.po: Update from translation team.
53692
53693 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53694
53695         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53696
53697 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53698
53699         * NEWS:  Mention new memcpy for MIPS.
53700
53701 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53702
53703         * manual/contrib.texi (Contributors): Spelling correction.
53704
53705 2012-12-15  David S. Miller  <davem@davemloft.net>
53706
53707         * po/ru.po: Update from translation team.
53708
53709 2012-12-13  David S. Miller  <davem@davemloft.net>
53710
53711         * NEWS: Mention IFUNC testsuite enhancements.
53712
53713         * po/pl.po: Update from translation team.
53714         * po/bg.po: Likewise.
53715
53716         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53717         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53718
53719 2012-12-11  David S. Miller  <davem@davemloft.net>
53720
53721         * po/sv.po: Update from translation team.
53722
53723         * po/vi.po: Update from translation team.
53724
53725         * po/cs.po: Update from translation team.
53726
53727         * po/de.po: Update from translation team.
53728         * po/eo.po: Likewise.
53729         * po/nl.po: Likewise.
53730
53731 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53732
53733         [BZ #14246]
53734         * manual/argp.texi (Argp Helper Functions): Move node to follow
53735         Argp Parsing State.
53736
53737         [BZ #14872]
53738         * manual/conf.texi (Limits on File System Capacity): Mention if
53739         terminating null is included in the max size.
53740
53741 2012-12-10  Andreas Jaeger  <aj@suse.de>
53742
53743         * po/cs.po: Update from translation team.
53744
53745 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53746
53747         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53748         void pointer and cast to uintptr_t.
53749         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53750         path.
53751         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53752         * sysdeps/s390/s390-64/memset.S: Likewise.
53753
53754 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53755
53756         [BZ #14833]
53757         * menual/message.texi (Message Translation): Fix typos.
53758         (Helper programs for gettext): Likewise.
53759
53760 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53761
53762         [BZ #14898]
53763         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53764         Change to -1.
53765
53766 2012-12-07  David S. Miller  <davem@davemloft.net>
53767
53768         * po/libc.pot: Update.
53769
53770 2012-12-07  Richard Henderson  <rth@redhat.com>
53771
53772         [BZ #10114]
53773         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53774         normal/normal case to before the switch.
53775         (_FP_DIV): Likewise.
53776
53777 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53778             Mike Frysinger  <vapier@gentoo.org>
53779
53780         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53781         check for __NR_fadvise64_64.
53782
53783 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53784
53785         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53786         0, not just to plain "0" as a statement.
53787         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53788         with cw.
53789
53790 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53791
53792         * NEWS: Use sourceware.org in Bugzilla URL.
53793
53794 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53795
53796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53797         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53798
53799         * stdio-common/tst-put-error.c (do_test): Add newline to the
53800         padded test to ensure flush.
53801
53802 2012-12-05  Jeff Law  <law@redhat.com>
53803
53804         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53805
53806 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53807
53808         * README: Don't refer to ports add-on as distributed separately.
53809         Mention AArch64 in list of systems supported in the ports add-on.
53810
53811         * LICENSES: Add more non-FSF copyright and license notices.
53812
53813         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53814         ((unused)).
53815
53816         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53817
53818         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53819         10000 as width of padded output.
53820
53821 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53822
53823         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53824
53825         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53826         variable LX with __attribute__ ((unused)).
53827         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53828         Likewise.
53829         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53830         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53831         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53832         with __attribute__ ((unused)).
53833
53834 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53835
53836         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53837
53838 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53839
53840         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53841         (CFLAGS-nldbl-acos.c): New variable.
53842         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53843         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53844         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53845         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53846         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53847         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53848         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53849         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53850         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53851         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53852         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53853         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53854         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53855         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53856         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53857         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53858         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53859         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53860         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53861         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53862         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53863         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53864         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53865         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53866         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53867         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53868         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53869         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53870         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53871         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53872         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53873         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53874         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53875         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53876         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53877         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53878         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53879         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53880         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53881         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53882         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53883         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53884         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53885         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53886         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53887         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53888         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53889         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53890         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53891         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53892         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53893         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53894         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53895         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53896         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53897         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53898         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53899         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53900         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53901         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53902         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53903         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53904         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53905         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53906         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53907         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53908         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53909         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53910         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53911         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53912         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53913         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53914         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53915         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53916         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53917         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53918         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53919         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53920         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53921         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53922         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53923         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53924         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53925         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53926         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53927         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53928         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53929         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53930         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53931         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53932         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53933         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53934         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53935         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53936         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53937         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53938         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53939
53940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53941         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53942
53943         [BZ #14914]
53944         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53945         whole low double instead of just low 47 bits when splitting values
53946         into two parts.
53947
53948 2012-12-03  Allan McRae  <allan@archlinux.org>
53949
53950         * manual/stdio.texi (Predefined Printf Handlers): Remove
53951         @hsep and @vsep usage.
53952
53953 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53954
53955         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53956         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53957
53958 2012-12-03  Jeff Law  <law@redhat.com>
53959
53960         * time/sys/time.h (settimeofday): Do not mark TV argument
53961         as __nonnull.
53962
53963 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53964
53965         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53966         when currently writing and seek to current position when not.
53967         * libio/Makefile (tests): Remove bug-fclose1.
53968         * libio/bug-fclose1.c: Delete.
53969
53970 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53971
53972         * manual/arith.texi (feenableexcept): Fix typo.
53973         (fedisableexcept): Likewise.
53974
53975 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53976
53977         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53978         second, differently-typed declaration, rather than a cast.
53979
53980 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53981
53982         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53983         * include/rpc/svc.h: ... here.
53984
53985 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53986
53987         [BZ #13013]
53988         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53989         depending n and resplen2 to catch cases where answer
53990         equals answerp2.
53991
53992 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53993
53994         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53995         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53996
53997 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53998
53999         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54000
54001 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54002
54003         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54004
54005 2012-11-28  Jeff Law  <law@redhat.com>
54006
54007         [BZ #13761]
54008         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54009         dataset_temporary.  Track alloca usage into alloca_used.
54010         If dataset is large allocate and release it via malloc/free.
54011
54012 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54013
54014         [BZ #14197]
54015         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54016
54017 2012-11-28  David S. Miller  <davem@davemloft.net>
54018
54019         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54020
54021 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54022
54023         [BZ #14803]
54024         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54025         of pi/2 rounded to nearest to 64 bits.
54026         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54027         nearest to 64 bits.
54028         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54029         bits.
54030
54031 2012-11-28  Jeff Law <law@redhat.com>
54032             Martin Osvald <mosvald@redhat.com>
54033
54034         [BZ #14889]
54035         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54036         * sunrpc/svc.c: Include time.h.
54037         (__svc_accept_failed): New function.
54038         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54039         any reason other than EINTR, call __svc_accept_failed.
54040         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54041         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54042
54043 2012-11-28  Andreas Schwab  <schwab@suse.de>
54044
54045         * scripts/abilist.awk: Also handle indirect functions in .opd
54046         section.
54047
54048 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54049
54050         [BZ #13881]
54051         * sysdeps/x86/fpu/powl_helper.c: New file.
54052         * sysdeps/x86/fpu/Makefile: Likewise.
54053         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54054         (p3): New object.
54055         (__ieee754_powl): Use __powl_helper for finite arguments except
54056         integer exponents below 8.
54057         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54058         (p3): New object.
54059         (__ieee754_powl): Use __powl_helper for finite arguments except
54060         integer exponents below 8.
54061         * math/libm-test.inc (pow_test): Add more tests and enable some
54062         previously disabled tests.
54063         * sysdeps/i386/fpu/libm-test-ulps: Update.
54064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54065
54066 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54067             Carlos O'Donell  <carlos_odonell@mentor.com>
54068
54069         * nss/makedb.c (is_prime): Assert that input is odd and greater
54070         than 4.  Note that fact in a comment too.
54071         (next_prime): Add 4 to input.
54072
54073 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54074
54075         [BZ #11741]
54076         * libio/Makefile (tests): Add test case tst-fwrite-error.
54077         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54078         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54079         * libio/tst-fwrite-error.c: New test case.
54080
54081 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54082
54083         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54084         before casting to void *.
54085         * include/libc-internal.h (__pointer_type): New macro.
54086         (__integer_if_pointer_type_sub): Likewise.
54087         (__integer_if_pointer_type): Likewise.
54088         (cast_to_integer): Likewise.
54089         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54090         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54091         before casting to atomic64_t.
54092         (atomic_exchange_acq): Likewise.
54093         (__arch_exchange_and_add_body): Likewise.
54094         (__arch_add_body): Likewise.
54095         (atomic_add_negative): Likewise.
54096         (atomic_add_zero): Likewise.
54097
54098 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54099
54100         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54101         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54102         (add_fdes): Likewise.
54103         (linear_search_fdes): Likewise.
54104         (binary_search_unencoded_fdes): Likewise.
54105
54106 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54107
54108         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54109
54110 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54111
54112         * configure.in: Autodetect C++ header directories.
54113         * configure: Regenerated.
54114
54115 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54116
54117         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54118
54119 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54120
54121         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54122
54123 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54124
54125         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54126         LDBL_MANT_DIG == 106]: Disable some tests.
54127         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54128         Likewise.
54129         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54130         Likewise.
54131
54132         [BZ #14871]
54133         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54134         input for small inputs.  Return +/- pi/2 for large inputs.
54135         * math/libm-test.inc (atan_test): Add more tests.
54136
54137         * sysdeps/generic/unwind-dw2-fde-glibc.c
54138         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54139         __attribute__ ((unused)).
54140
54141         [BZ #14645]
54142         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54143         x * y if x and y are nonzero and z is zero.
54144
54145         [BZ #14811]
54146         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54147         nonzero exponents with absolute value below 0x1p-117 to +/-
54148         0x1p-117.
54149
54150         [BZ #14869]
54151         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54152         up arguments below 2**-450, not just those below 2**-500.
54153         * math/libm-test.inc (hypot_test): Add another test.
54154
54155         [BZ #14868]
54156         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54157         Return a+b for ratio over 2**120, not 2**60.
54158         * math/libm-test.inc (hypot_test): Add another test.
54159
54160         * math/libm-test.inc (clog_test): Use
54161         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54162         (clog10_test): Likewise.
54163
54164         [BZ #6778]
54165         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54166
54167 2012-11-22  Andreas Schwab  <schwab@suse.de>
54168
54169         * sysdeps/i386/fpu/libm-test-ulps: Update.
54170
54171 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54172
54173         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54174         printf output with newline.
54175
54176 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54177
54178         [BZ #14865]
54179         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54180         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54181         -z nodlopen, -z initfirst and -z execstack support.
54182         * configure: Regenerated.
54183
54184         * elf/elf.h (DF_1_NODIRECT): New macro.
54185         (DF_1_IGNMULDEF): Likewise.
54186         (DF_1_NOKSYMS): Likewise.
54187         (DF_1_NOHDR): Likewise.
54188         (DF_1_EDITED): Likewise.
54189         (DF_1_NORELOC): Likewise.
54190         (DF_1_SYMINTPOSE): Likewise.
54191         (DF_1_GLOBAUDIT): Likewise.
54192         (DF_1_SINGLETON): Likewise.
54193         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54194         DT_1_SUPPORTED_MASK bits.
54195         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54196
54197 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54198
54199         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54200
54201 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54202
54203         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54204         macro.
54205
54206         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54207         (sendmmsg): Move declarations...
54208         * socket/sys/socket.h: ... here.
54209         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54210         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54211         include it from...
54212         * socket/recvmmsg.c: ... this new file.
54213         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54214         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54215         definition of __sendmmsg hidden.
54216         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54217         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54218         Move ENOSYS stub into and include it from...
54219         * socket/sendmmsg.c: ... this new file.
54220         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54221         (sysdep_routines): Move recvmmsg and sendmmsg...
54222         * socket/Makefile (routines): ... here.
54223         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54224         (GLIBC_PRIVATE): Add __sendmmsg.
54225         * include/sys/socket.h (__sendmmsg): Add declarations.
54226         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54227         sendmmsg.
54228
54229 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54230
54231         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54232         variable I1 with __attribute__ ((unused)).
54233         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54234
54235 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54236
54237         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54238         DUMMY variables with __attribute__ ((unused)).
54239
54240         * bits/byteswap.h: Include <bits/types.h>.
54241         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54242
54243 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54244
54245         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54246         string_t.  Do not manually set errno.
54247         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54248         length with __strnlen.  Make sure to both set errno and return it on
54249         failure.
54250
54251 2012-11-19  David S. Miller  <davem@davemloft.net>
54252
54253         With help from Joseph Myers.
54254         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54255         very large arguments properly.
54256         * math/libm-test.inc (atan_test): New tests.
54257         (atan2_test): New tests.
54258         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54259         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54260
54261 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54262
54263         [BZ #14856]
54264         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54265         Define to 3.
54266
54267         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54268         [POSIX] (EADDRNOTAVAIL): Likewise.
54269         [POSIX] (EAFNOSUPPORT): Likewise.
54270         [POSIX] (EALREADY): Likewise.
54271         [POSIX] (ECONNABORTED): Likewise.
54272         [POSIX] (ECONNREFUSED): Likewise.
54273         [POSIX] (ECONNRESET): Likewise.
54274         [POSIX] (EDESTADDRREQ): Likewise.
54275         [POSIX] (EDQUOT): Likewise.
54276         [POSIX] (EHOSTUNREACH): Likewise.
54277         [POSIX] (EIDRM): Likewise.
54278         [POSIX] (EISCONN): Likewise.
54279         [POSIX] (ELOOP): Likewise.
54280         [POSIX] (EMULTIHOP): Likewise.
54281         [POSIX] (ENETDOWN): Likewise.
54282         [POSIX] (ENETUNREACH): Likewise.
54283         [POSIX] (ENOBUFS): Likewise.
54284         [POSIX] (ENODATA): Likewise.
54285         [POSIX] (ENOLINK): Likewise.
54286         [POSIX] (ENOMSG): Likewise.
54287         [POSIX] (ENOPROTOOPT): Likewise.
54288         [POSIX] (ENOSR): Likewise.
54289         [POSIX] (ENOSTR): Likewise.
54290         [POSIX] (ENOTCONN): Likewise.
54291         [POSIX] (ENOTSOCK): Likewise.
54292         [POSIX] (EOPNOTSUPP): Likewise.
54293         [POSIX] (EOVERFLOW): Likewise.
54294         [POSIX] (EPROTO): Likewise.
54295         [POSIX] (EPROTONOSUPPORT): Likewise.
54296         [POSIX] (EPROTOTYPE): Likewise.
54297         [POSIX] (ESTALE): Likewise.
54298         [POSIX] (ETIME): Likewise.
54299         [POSIX] (ETXTBSY): Likewise.
54300         [POSIX] (EWOULDBLOCK): Likewise.
54301         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54302         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54303         [POSIX] (SEEK_CUR): Likewise.
54304         [POSIX] (SEEK_END): Likewise.
54305         [POSIX || UNIX98] (mode_t): Do not require.
54306         [POSIX] (off_t): Likewise.
54307         [POSIX] (pid_t): Likewise.
54308         [POSIX] (sys/stat.h): Do not allow header.
54309         [POSIX] (unistd.h): Likewise.
54310         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54311         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54312         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54313         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54314         require.
54315         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54316         sigevent): Specify elements.
54317         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54318         entry.
54319         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54320         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54321
54322         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54323         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54324         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54325         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54326         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54327         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54328         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54329         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54330         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54331         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54332         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54333         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54334         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54335         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54336         Likewise.
54337         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54338         Likewise.
54339         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54340         Likewise.
54341         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54342         Likewise.
54343         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54344         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54345         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54346         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54347         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54348         Specify lower bound on value.
54349         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54350         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54351         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54352         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54353         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54354         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54355         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54356         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54357         value.
54358         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54359         as optional.
54360         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54361         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54362         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54363         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54364         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54365         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54366         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54367         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54368         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54369         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54370         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54371         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54372         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54373         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54374         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54375         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54376         entry.
54377         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54378         optional.
54379         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54380         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54381         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54382         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54383         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54384         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54385         Likewise.
54386         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54387         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54388         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54389         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54390         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54391         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54392         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54393         as optional.
54394         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54395         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54396         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54397         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54398         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54399         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54400         specify as optional.
54401         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54402         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54403         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54404         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54405         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54406         [XPG3] (NL_LANGMAX): Likewise.
54407         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54408         [POSIX || XPG3] (NL_NMAX): Likewise.
54409         [POSIX || XPG3] (NL_SETMAX): Likewise.
54410         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54411         [XPG3] (NZERO): Likewise.
54412         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54413         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54414         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54415         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54416         (REG_ERANGE): Expect.
54417         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54418         optional-constant.
54419         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54420         Use (void) in prototype.
54421         [POSIX] (*_t): Allow.
54422         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54423         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54424         (WRDE_BADVAL): Expect.
54425
54426         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54427         expect.
54428         [XPG3 || XPG4] (O_RSYNC): Likewise.
54429         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54430         Likewise.
54431         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54432         [XPG3 || XPG4] (sigqueue): Likewise.
54433         [XPG3 || XPG4] (sigtimedwait): Likewise.
54434         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54435         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54436         [XPG3 || XPG4] (vsnprintf): Likewise.
54437         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54438         Likewise.
54439         [XPG3 || XPG4] (blksize_t): Likewise.
54440         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54441         Likewise.
54442         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54443         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54444         [XPG3 || XPG4] (struct itimerspec): Likewise.
54445         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54446         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54447         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54448         [XPG3 || XPG4] (clockid_t): Likewise.
54449         [XPG3 || XPG4] (timer_t): Likewise.
54450         [XPG3 || XPG4] (clock_getres): Likewise.
54451         [XPG3 || XPG4] (clock_gettime): Likewise.
54452         [XPG3 || XPG4] (clock_settime): Likewise.
54453         [XPG3 || XPG4] (nanosleep): Likewise.
54454         [XPG3 || XPG4] (timer_create): Likewise.
54455         [XPG3 || XPG4] (timer_delete): Likewise.
54456         [XPG3 || XPG4] (timer_gettime): Likewise.
54457         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54458         [XPG3 || XPG4] (timer_settime): Likewise.
54459         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54460         [XPG3 || XPG4] (getlogin_r): Likewise.
54461         [XPG3 || XPG4] (pread): Likewise.
54462         [XPG3 || XPG4] (pthread_atfork): Likewise.
54463         [XPG3 || XPG4] (pwrite): Likewise.
54464
54465         [BZ #14835]
54466         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54467         <bits/siginfo.h>.
54468
54469 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54470
54471         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54472         finalizing MALLSTREAM.
54473
54474         * sysdeps/mach/hurd/syncfs.c: New file.
54475
54476 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54477
54478         [BZ #14719]
54479         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54480         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54481         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54482         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54483         (_nss_dns_gethostbyname4_r): Likewise.
54484         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54485         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54486
54487 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54488
54489         [BZ #13763]
54490         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54491
54492 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54493
54494         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54495         * elf/cache.c (print_entry): Print ",AArch64" for
54496         FLAG_AARCH64_LIB64
54497
54498         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54499         * elf/cache.c (print_entry): Print ",hard-float" for
54500         FLAG_ARM_LIBHF.
54501
54502 2012-11-18  David S. Miller  <davem@davemloft.net>
54503
54504         With help from Joseph Myers.
54505         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54506         cutoff to 2**-13.
54507         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54508         cutoff to 2**-25.
54509         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54510         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54511         small.
54512         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54513         * math/libm-test.inc (y0_test): New tests.
54514         (y1_test): New tests.
54515         * sysdeps/i386/fpu/libm-test-ulps: Update.
54516         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54517         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54518
54519 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54520
54521         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54522         64-bit targets.
54523         * configure: Regenerated.
54524
54525 2012-11-17  David S. Miller  <davem@davemloft.net>
54526
54527         [BZ #14811]
54528         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54529         nonzero exponents with absolute value below 0x1p-128 to +/-
54530         0x1p-128.
54531
54532 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54533
54534         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54535
54536         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54537
54538         * posix/getconf-speclist.c: New file.
54539         * posix/posix-envs.def: Likewise.
54540         * posix/confstr.c (START_ENV_GROUP): New macro.
54541         (END_ENV_GROUP): Likewise.
54542         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54543         (KNOWN_PRESENT_ENV_STRING): Likewise.
54544         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54545         (UNKNOWN_ENVIRONMENT): Likewise.
54546         (confstr): Include posix-envs.def instead of handling
54547         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54548         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54549         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54550         (END_ENV_GROUP): Likewise.
54551         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54552         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54553         (UNKNOWN_ENVIRONMENT): Likewise.
54554         (__sysconf): Include posix-envs.def instead of handling associated
54555         cases directly here.
54556         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54557         preprocessing getconf-speclist.c rather than running getconf or
54558         generating empty file.
54559
54560 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54561
54562         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54563
54564 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54565
54566         [BZ #14672]
54567         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54568
54569 2012-11-16  David S. Miller  <davem@davemloft.net>
54570
54571         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54572         smaller than LDBL_EPSILON/2.0L, just return xm1.
54573
54574 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54575
54576         * elf/tst-array1.c (init): Set constructor priority to 1000.
54577         (fini): Set destructor priority to 1000.
54578         * elf/tst-array2dep.c: Likewise.
54579
54580 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54581
54582         [BZ #11741]
54583         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54584         (_IO_new_file_xsputn): Also return EOF if none of the input
54585         data was written when overflow failed.
54586         * libio/iopadn.c (_IO_padn): Likewise.
54587         * libio/iowpadn.c (_IO_wpadn): Likewise.
54588         * stdio-common/tst-put-error.c: Add copyright notice.
54589         (do_test): Add case for printing padded string.
54590         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54591         _IO_padn returned error.
54592         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54593         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54594         return EOF.
54595
54596 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54597
54598         * libio/libioP.h: Add comment note that the references to C++
54599         bits are now obsolete.
54600
54601 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54602
54603         * math/libm-test.inc (check_complex): Use asprintf.
54604
54605 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54606
54607         * debug/pcprofiledump.c (print_version): Update copyright year.
54608         * malloc/memusagestat.c (print_version): Likewise.
54609
54610 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54611
54612         [BZ #14831]
54613         * elf/Makefile (tests): Add tst-audit8.
54614         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54615         ($(objpfx)tst-audit8.out): New target.
54616         (tst-audit8-ENV): New variable.
54617         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54618         audit if l_reloc_result is NULL.
54619         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54620         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54621         * elf/tst-audit8.c: New file.
54622
54623 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54624
54625         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54626         * misc/Makefile (CFLAGS-select.c): Define.
54627         * posix/Makefile (CFLAGS-pause.c): Define.
54628
54629 2012-11-13  David S. Miller  <davem@davemloft.net>
54630
54631         * crypt/Makefile: Move test targets after toplevel Rules
54632         inclusion.  Grab any necessary sysdep routines when linking.
54633         * crypt/md5.c (md5_process_block): Remove define, we will always
54634         name it __md5_process_block.
54635         (md5_finish_ctx): Update md5_process_block call.
54636         (md5_stream): Likewise.
54637         (md5_process_bytes): Likewise.
54638         (md5_process_block): Rename to __md5_process_block and move to ...
54639         * crypt/md5-block.c: ... here.
54640         * crypt/sha256.c (sha256_process_block): Move to ...
54641         * crypt/sha256-block.c: ... here.
54642         * crypt/sha512.c (sha512_process_block): Move to ...
54643         * crypt/sha512-block.c: ... here.
54644         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54645         path.
54646         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54647         * sysdeps/sparc/sparc64/multiarch/Makefile
54648         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54649         crypt subdir.
54650         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54651         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54652         multiarch changes.
54653         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54654         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54655         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54656         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54657         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54658         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54659         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54660         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54661         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54662         file.
54663         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54664         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54665         file.
54666         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54667
54668 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54669
54670         * timezone/tzselect.ksh: Update from tzcode git revision
54671         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54672         * timezone/zdump.c: Likewise.
54673         * timezone/zic.c: Likewise.
54674         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54675         in TZVERSION setting, not $(PKGVERSION).
54676         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54677         REPORT_BUGS_TO settings.
54678
54679         [BZ #14838]
54680         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54681         macro.
54682
54683 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54684
54685         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54686         detection to immediately after _FP_ROUND().
54687         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54688         bits are 0.
54689
54690 2012-11-11  David S. Miller  <davem@davemloft.net>
54691
54692         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54693         inttypes.h
54694         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54695         __close rather than their public counterparts.
54696
54697 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54698
54699         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54700         file.
54701         [UNIX98] (sem_timedwait): Do not expect.
54702         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54703         [XPG4 || UNIX98] (sockatmark): Do not expect.
54704         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54705         (clock_getcpuclockid): Do not expect.
54706         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54707         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54708         Do not expect.
54709         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54710         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54711         [UNIX98] (vwscanf): Likewise.
54712         [UNIX98] (vswscanf): Likewise.
54713
54714 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54715
54716         * timezone/version.h: Remove file.
54717         * timezone/README: Do not refer to version.h.
54718         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54719         $(objpfx)version.h.
54720         ($(objpfx)zdump.o): Likewise.
54721         ($(objpfx)version.h): New target.
54722
54723         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54724         2012i.
54725         * timezone/README: Don't mention modification to tzselect.ksh.
54726         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54727         work on unmodified tzselect.ksh.  Substitute version numbers in
54728         tzselect.ksh.
54729
54730         * Makefile (format-me): Remove.
54731         (INSTALL): Adjust indentation.  Use commands directly instead of
54732         using $(format-me).
54733
54734         * aclocal.m4 (ACX_PKGVERSION): New macro.
54735         (ACX_BUGURL): Likewise.
54736         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54737         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54738         (REPORT_BUGS_TO): Likewise.
54739         * configure: Regenerated.
54740         * config.h.in (PKGVERSION): New macro.
54741         (REPORT_BUGS_TO): Likewise.
54742         * config.make.in (PKGVERSION): New variable.
54743         (PKGVERSION_TEXI): Likewise.
54744         (REPORT_BUGS_TO): Likewise.
54745         (REPORT_BUGS_TEXI): Likewise.
54746         * Makefile (format-me): Use -I$(common-objpfx)manual.
54747         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54748         ($(common-objpfx)manual/%): New target.
54749         (manual/%): Remove target.
54750         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54751         (print_version): Use PKGVERSION.
54752         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54753         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54754         and REPORT_BUGS_TO.
54755         ($(objpfx)xtrace): Likewise.
54756         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54757         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54758         (print_version): Use PKGVERSION.
54759         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54760         (do_version): Use PKGVERSION.
54761         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54762         REPORT_BUGS_TO.
54763         (common-ldd-rewrite): Likewise.
54764         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54765         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54766         (print_version): Use PKGVERSION.
54767         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54768         * elf/pldd.c (argp_program_bug_address): Remove variable.
54769         (more_help): New function.
54770         (argp): Use more_help.
54771         (print_version): Use PKGVERSION.
54772         * elf/sln.c (main): Use PKGVERSION.
54773         (usage): Use REPORT_BUGS_TO.
54774         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54775         (top level): Use PKGVERSION.
54776         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54777         (print_version): Use PKGVERSION.
54778         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54779         (print_version): Use PKGVERSION.
54780         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54781         (print_version): Use PKGVERSION.
54782         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54783         (print_version): Use PKGVERSION.
54784         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54785         (print_version): Use PKGVERSION.
54786         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54787         (print_version): Use PKGVERSION.
54788         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54789         and BUGURL.
54790         ($(objpfx)memusage): Likewise.
54791         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54792         (do_version): Use PKGVERSION.
54793         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54794         (print_version): Use PKGVERSION.
54795         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54796         ($PKGVERSION): New variable.
54797         ($REPORT_BUGS_TO): Likewise.
54798         (usage): Use $REPORT_BUGS_TO.
54799         (top level): Use $PKGVERSION.
54800         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54801         ($(objpfx)pkgvers.texi): New rule.
54802         ($(objpfx)stamp-pkgvers): Likewise.
54803         * manual/install.texi: Include pkgvers.texi.
54804         (--with-pkgversion): Document new configure option.
54805         (--with-bugurl): Likewise.
54806         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54807         than necessarily for this particular distribution.  Use
54808         REPORT_BUGS_TO for where to report bugs.
54809         * INSTALL: Regenerated.
54810         * manual/libc.texinfo: Include pkgvers.texi.
54811         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54812         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54813         (print_version): Use PKGVERSION.
54814         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54815         (print_version): Use PKGVERSION.
54816         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54817         (print_version): Use PKGVERSION.
54818         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54819         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54820         macro.
54821         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54822         (print_version): Use PKGVERSION.
54823         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54824         (print_version): Use PKGVERSION.
54825         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54826         and PKGVERSION.
54827
54828         * timezone/checktab.awk: Update from tzcode 2012i.
54829         * timezone/ialloc.c: Likewise.
54830         * timezone/private.h: Likewise.
54831         * timezone/scheck.c: Likewise.
54832         * timezone/tzfile.h: Likewise.
54833         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54834         (TZVERSION): Hardcode tzcode version number.
54835         * timezone/zdump.c: Update from tzcode 2012i.
54836         * timezone/zic.c: Likewise.
54837         * timezone/version.h: New file.
54838         * timezone/README: Describe version.h.  Update upstream location.
54839
54840         [BZ #14824]
54841         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54842         (mktemp): Enable declaration.
54843         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54844         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54845         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54846         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54847         Likewise.
54848         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54849         Likewise.
54850         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54851         Likewise.
54852         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54853         Likewise.
54854         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54855         Likewise.
54856         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54857         Likewise.
54858
54859         [BZ #14821]
54860         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54861         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54862         for copies of such integer values.
54863         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54864         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54865
54866 2012-11-09  Andreas Jaeger  <aj@suse.de>
54867
54868         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54869         definitions and declarations that are provided by
54870         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54871
54872 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54873
54874         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54875         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54876         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54877         definition.
54878
54879 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54880
54881         * elf/elf.h: Update comment before AArch64 relocations.
54882
54883 2012-11-07  David S. Miller  <davem@davemloft.net>
54884
54885         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54886         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54887         (__start_context): Declare.
54888         (__makecontext_ret): Delete.
54889         (__makecontext): Hook up __start_context instead of
54890         __makecontext_ret.
54891         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54892         (sysdep_routines): Add __start_context when in stdlib.
54893
54894 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54895
54896         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54897         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54898         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54899         hardcoded "nm".
54900         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54901         (READELF): New variable.  Use it instead of hardcoded "readelf".
54902
54903 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54904
54905         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54906         * sysdeps/x86/Makefile: Here.
54907         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54908         * sysdeps/x86/tst-xmmymm.sh: This.
54909
54910 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54911
54912         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54913         expectations.
54914         [UNIX98] (pthread_barrier_t): Do not expect.
54915         [UNIX98] (pthread_barrierattr_t): Likewise.
54916         [UNIX98] (pthread_spinlock_t): Likewise.
54917         [UNIX98] (pthread_barrier_destroy): Likewise.
54918         [UNIX98] (pthread_barrier_init): Likewise.
54919         [UNIX98] (pthread_barrier_wait): Likewise.
54920         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54921         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54922         [UNIX98] (pthread_barrierattr_init): Likewise.
54923         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54924         [UNIX98] (pthread_getcpuclockid): Likewise.
54925         [UNIX98] (pthread_mutex_timedlock): Likewise.
54926         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54927         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54928         [UNIX98] (pthread_sigmask): Likewise.
54929         [UNIX98] (pthread_spin_destroy): Likewise.
54930         [UNIX98] (pthread_spin_init): Likewise.
54931         [UNIX98] (pthread_spin_lock): Likewise.
54932         [UNIX98] (pthread_spin_trylock): Likewise.
54933         [UNIX98] (pthread_spin_unlock): Likewise.
54934         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54935         Do not expect.
54936         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54937         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54938         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54939         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54940         [XPG3 || XPG4] (pthread_key_t): Likewise.
54941         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54942         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54943         [XPG3 || XPG4] (pthread_once_t): Likewise.
54944         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54945         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54946         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54947         [XPG3 || XPG4] (pthread_t): Likewise.
54948
54949         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54950         not expect.
54951         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54952
54953         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54954         Change function return type to int.
54955
54956         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54957         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54958         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54959         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54960         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54961         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54962         [!POSIX] (posix_madvise): Likewise.
54963         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54964         && !UNIX98].
54965         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54966         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54967         (mode_t): Likewise.
54968         (posix_mem_offset): Likewise.
54969         (posix_typed_mem_get_info): Likewise.
54970         (posix_typed_mem_open): Likewise.
54971
54972         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54973         Change condition to [XOPEN2K8].
54974
54975         * conform/conformtest.pl: Preprocess allow-header data with -x c
54976         instead of from stdin.
54977         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54978         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54979         [C99-based standards] (cerfc): Likewise.
54980         [C99-based standards] (cexp2): Likewise.
54981         [C99-based standards] (cexpm1): Likewise.
54982         [C99-based standards] (clog10): Likewise.
54983         [C99-based standards] (clog1p): Likewise.
54984         [C99-based standards] (clog2): Likewise.
54985         [C99-based standards] (clgamma): Likewise.
54986         [C99-based standards] (ctgamma): Likewise.
54987         [C99-based standards] (cerff): Likewise.
54988         [C99-based standards] (cerfcf): Likewise.
54989         [C99-based standards] (cexp2f): Likewise.
54990         [C99-based standards] (cexpm1f): Likewise.
54991         [C99-based standards] (clog10f): Likewise.
54992         [C99-based standards] (clog1pf): Likewise.
54993         [C99-based standards] (clog2f): Likewise.
54994         [C99-based standards] (clgammaf): Likewise.
54995         [C99-based standards] (ctgammaf): Likewise.
54996         [C99-based standards] (cerfl): Likewise.
54997         [C99-based standards] (cerfcl): Likewise.
54998         [C99-based standards] (cexp2l): Likewise.
54999         [C99-based standards] (cexpm1l): Likewise.
55000         [C99-based standards] (clog10l): Likewise.
55001         [C99-based standards] (clog1pl): Likewise.
55002         [C99-based standards] (clog2l): Likewise.
55003         [C99-based standards] (clgammal): Likewise.
55004         [C99-based standards] (ctgammal): Likewise.
55005         * conform/data/inttypes.h-data [C99-based standards]: Include
55006         stdint.h-data.  Remove all expectations for stdint.h contents.
55007         [C99-based standards] (PRI*): Do not allow.
55008         [C99-based standards] (SCN*): Likewise.
55009         [C99-based standards] (*_t): Likewise.
55010         [C99-based-standards] (PRId8): Expect macro.
55011         [C99-based-standards] (PRIi8): Likewise.
55012         [C99-based-standards] (PRIo8): Likewise.
55013         [C99-based-standards] (PRIu8): Likewise.
55014         [C99-based-standards] (PRIx8): Likewise.
55015         [C99-based-standards] (PRIX8): Likewise.
55016         [C99-based-standards] (SCNd8): Likewise.
55017         [C99-based-standards] (SCNi8): Likewise.
55018         [C99-based-standards] (SCNo8): Likewise.
55019         [C99-based-standards] (SCNu8): Likewise.
55020         [C99-based-standards] (SCNx8): Likewise.
55021         [C99-based-standards] (PRIdLEAST8): Likewise.
55022         [C99-based-standards] (PRIiLEAST8): Likewise.
55023         [C99-based-standards] (PRIoLEAST8): Likewise.
55024         [C99-based-standards] (PRIuLEAST8): Likewise.
55025         [C99-based-standards] (PRIxLEAST8): Likewise.
55026         [C99-based-standards] (PRIXLEAST8): Likewise.
55027         [C99-based-standards] (SCNdLEAST8): Likewise.
55028         [C99-based-standards] (SCNiLEAST8): Likewise.
55029         [C99-based-standards] (SCNoLEAST8): Likewise.
55030         [C99-based-standards] (SCNuLEAST8): Likewise.
55031         [C99-based-standards] (SCNxLEAST8): Likewise.
55032         [C99-based-standards] (PRIdFAST8): Likewise.
55033         [C99-based-standards] (PRIiFAST8): Likewise.
55034         [C99-based-standards] (PRIoFAST8): Likewise.
55035         [C99-based-standards] (PRIuFAST8): Likewise.
55036         [C99-based-standards] (PRIxFAST8): Likewise.
55037         [C99-based-standards] (PRIXFAST8): Likewise.
55038         [C99-based-standards] (SCNdFAST8): Likewise.
55039         [C99-based-standards] (SCNiFAST8): Likewise.
55040         [C99-based-standards] (SCNoFAST8): Likewise.
55041         [C99-based-standards] (SCNuFAST8): Likewise.
55042         [C99-based-standards] (SCNxFAST8): Likewise.
55043         [C99-based-standards] (PRId16): Likewise.
55044         [C99-based-standards] (PRIi16): Likewise.
55045         [C99-based-standards] (PRIo16): Likewise.
55046         [C99-based-standards] (PRIu16): Likewise.
55047         [C99-based-standards] (PRIx16): Likewise.
55048         [C99-based-standards] (PRIX16): Likewise.
55049         [C99-based-standards] (SCNd16): Likewise.
55050         [C99-based-standards] (SCNi16): Likewise.
55051         [C99-based-standards] (SCNo16): Likewise.
55052         [C99-based-standards] (SCNu16): Likewise.
55053         [C99-based-standards] (SCNx16): Likewise.
55054         [C99-based-standards] (PRIdLEAST16): Likewise.
55055         [C99-based-standards] (PRIiLEAST16): Likewise.
55056         [C99-based-standards] (PRIoLEAST16): Likewise.
55057         [C99-based-standards] (PRIuLEAST16): Likewise.
55058         [C99-based-standards] (PRIxLEAST16): Likewise.
55059         [C99-based-standards] (PRIXLEAST16): Likewise.
55060         [C99-based-standards] (SCNdLEAST16): Likewise.
55061         [C99-based-standards] (SCNiLEAST16): Likewise.
55062         [C99-based-standards] (SCNoLEAST16): Likewise.
55063         [C99-based-standards] (SCNuLEAST16): Likewise.
55064         [C99-based-standards] (SCNxLEAST16): Likewise.
55065         [C99-based-standards] (PRIdFAST16): Likewise.
55066         [C99-based-standards] (PRIiFAST16): Likewise.
55067         [C99-based-standards] (PRIoFAST16): Likewise.
55068         [C99-based-standards] (PRIuFAST16): Likewise.
55069         [C99-based-standards] (PRIxFAST16): Likewise.
55070         [C99-based-standards] (PRIXFAST16): Likewise.
55071         [C99-based-standards] (SCNdFAST16): Likewise.
55072         [C99-based-standards] (SCNiFAST16): Likewise.
55073         [C99-based-standards] (SCNoFAST16): Likewise.
55074         [C99-based-standards] (SCNuFAST16): Likewise.
55075         [C99-based-standards] (SCNxFAST16): Likewise.
55076         [C99-based-standards] (PRId32): Likewise.
55077         [C99-based-standards] (PRIi32): Likewise.
55078         [C99-based-standards] (PRIo32): Likewise.
55079         [C99-based-standards] (PRIu32): Likewise.
55080         [C99-based-standards] (PRIx32): Likewise.
55081         [C99-based-standards] (PRIX32): Likewise.
55082         [C99-based-standards] (SCNd32): Likewise.
55083         [C99-based-standards] (SCNi32): Likewise.
55084         [C99-based-standards] (SCNo32): Likewise.
55085         [C99-based-standards] (SCNu32): Likewise.
55086         [C99-based-standards] (SCNx32): Likewise.
55087         [C99-based-standards] (PRIdLEAST32): Likewise.
55088         [C99-based-standards] (PRIiLEAST32): Likewise.
55089         [C99-based-standards] (PRIoLEAST32): Likewise.
55090         [C99-based-standards] (PRIuLEAST32): Likewise.
55091         [C99-based-standards] (PRIxLEAST32): Likewise.
55092         [C99-based-standards] (PRIXLEAST32): Likewise.
55093         [C99-based-standards] (SCNdLEAST32): Likewise.
55094         [C99-based-standards] (SCNiLEAST32): Likewise.
55095         [C99-based-standards] (SCNoLEAST32): Likewise.
55096         [C99-based-standards] (SCNuLEAST32): Likewise.
55097         [C99-based-standards] (SCNxLEAST32): Likewise.
55098         [C99-based-standards] (PRIdFAST32): Likewise.
55099         [C99-based-standards] (PRIiFAST32): Likewise.
55100         [C99-based-standards] (PRIoFAST32): Likewise.
55101         [C99-based-standards] (PRIuFAST32): Likewise.
55102         [C99-based-standards] (PRIxFAST32): Likewise.
55103         [C99-based-standards] (PRIXFAST32): Likewise.
55104         [C99-based-standards] (SCNdFAST32): Likewise.
55105         [C99-based-standards] (SCNiFAST32): Likewise.
55106         [C99-based-standards] (SCNoFAST32): Likewise.
55107         [C99-based-standards] (SCNuFAST32): Likewise.
55108         [C99-based-standards] (SCNxFAST32): Likewise.
55109         [C99-based-standards] (PRId64): Likewise.
55110         [C99-based-standards] (PRIi64): Likewise.
55111         [C99-based-standards] (PRIo64): Likewise.
55112         [C99-based-standards] (PRIu64): Likewise.
55113         [C99-based-standards] (PRIx64): Likewise.
55114         [C99-based-standards] (PRIX64): Likewise.
55115         [C99-based-standards] (SCNd64): Likewise.
55116         [C99-based-standards] (SCNi64): Likewise.
55117         [C99-based-standards] (SCNo64): Likewise.
55118         [C99-based-standards] (SCNu64): Likewise.
55119         [C99-based-standards] (SCNx64): Likewise.
55120         [C99-based-standards] (PRIdLEAST64): Likewise.
55121         [C99-based-standards] (PRIiLEAST64): Likewise.
55122         [C99-based-standards] (PRIoLEAST64): Likewise.
55123         [C99-based-standards] (PRIuLEAST64): Likewise.
55124         [C99-based-standards] (PRIxLEAST64): Likewise.
55125         [C99-based-standards] (PRIXLEAST64): Likewise.
55126         [C99-based-standards] (SCNdLEAST64): Likewise.
55127         [C99-based-standards] (SCNiLEAST64): Likewise.
55128         [C99-based-standards] (SCNoLEAST64): Likewise.
55129         [C99-based-standards] (SCNuLEAST64): Likewise.
55130         [C99-based-standards] (SCNxLEAST64): Likewise.
55131         [C99-based-standards] (PRIdFAST64): Likewise.
55132         [C99-based-standards] (PRIiFAST64): Likewise.
55133         [C99-based-standards] (PRIoFAST64): Likewise.
55134         [C99-based-standards] (PRIuFAST64): Likewise.
55135         [C99-based-standards] (PRIxFAST64): Likewise.
55136         [C99-based-standards] (PRIXFAST64): Likewise.
55137         [C99-based-standards] (SCNdFAST64): Likewise.
55138         [C99-based-standards] (SCNiFAST64): Likewise.
55139         [C99-based-standards] (SCNoFAST64): Likewise.
55140         [C99-based-standards] (SCNuFAST64): Likewise.
55141         [C99-based-standards] (SCNxFAST64): Likewise.
55142         [C99-based-standards] (PRIdMAX): Likewise.
55143         [C99-based-standards] (PRIiMAX): Likewise.
55144         [C99-based-standards] (PRIoMAX): Likewise.
55145         [C99-based-standards] (PRIuMAX): Likewise.
55146         [C99-based-standards] (PRIxMAX): Likewise.
55147         [C99-based-standards] (PRIXMAX): Likewise.
55148         [C99-based-standards] (SCNdMAX): Likewise.
55149         [C99-based-standards] (SCNiMAX): Likewise.
55150         [C99-based-standards] (SCNoMAX): Likewise.
55151         [C99-based-standards] (SCNuMAX): Likewise.
55152         [C99-based-standards] (SCNxMAX): Likewise.
55153         [C99-based-standards] (PRIdPTR): Likewise.
55154         [C99-based-standards] (PRIiPTR): Likewise.
55155         [C99-based-standards] (PRIoPTR): Likewise.
55156         [C99-based-standards] (PRIuPTR): Likewise.
55157         [C99-based-standards] (PRIxPTR): Likewise.
55158         [C99-based-standards] (PRIXPTR): Likewise.
55159         [C99-based-standards] (SCNdPTR): Likewise.
55160         [C99-based-standards] (SCNiPTR): Likewise.
55161         [C99-based-standards] (SCNoPTR): Likewise.
55162         [C99-based-standards] (SCNuPTR): Likewise.
55163         [C99-based-standards] (SCNxPTR): Likewise.
55164         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55165         allow.
55166         * conform/data/stdint.h-data: Update comments to clarify
55167         requirements.
55168         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55169         type.
55170         [C99-based standards] (INT8_MAX): Likewise.
55171         [C99-based standards] (INT16_MIN): Likewise.
55172         [C99-based standards] (INT16_MAX): Likewise.
55173         [C99-based standards] (INT32_MIN): Likewise.
55174         [C99-based standards] (INT32_MAX): Likewise.
55175         [C99-based standards] (INT64_MIN): Likewise.
55176         [C99-based standards] (INT64_MAX): Likewise.
55177         [C99-based standards] (UINT8_MAX): Likewise.
55178         [C99-based standards] (UINT16_MAX): Likewise.
55179         [C99-based standards] (UINT32_MAX): Likewise.
55180         [C99-based standards] (UINT64_MAX): Likewise.
55181         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55182         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55183         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55184         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55185         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55186         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55187         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55188         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55189         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55190         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55191         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55192         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55193         [C99-based standards] (INT_FAST8_MIN): Likewise.
55194         [C99-based standards] (INT_FAST8_MAX): Likewise.
55195         [C99-based standards] (INT_FAST16_MIN): Likewise.
55196         [C99-based standards] (INT_FAST16_MAX): Likewise.
55197         [C99-based standards] (INT_FAST32_MIN): Likewise.
55198         [C99-based standards] (INT_FAST32_MAX): Likewise.
55199         [C99-based standards] (INT_FAST64_MIN): Likewise.
55200         [C99-based standards] (INT_FAST64_MAX): Likewise.
55201         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55202         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55203         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55204         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55205         [C99-based standards] (INTPTR_MIN): Likewise.
55206         [C99-based standards] (INTPTR_MAX): Likewise.
55207         [C99-based standards] (UINTPTR_MAX): Likewise.
55208         [C99-based standards] (INTMAX_MIN): Likewise.
55209         [C99-based standards] (INTMAX_MAX): Likewise.
55210         [C99-based standards] (UINTMAX_MAX): Likewise.
55211         [C99-based standards] (PTRDIFF_MIN): Likewise.
55212         [C99-based standards] (PTRDIFF_MAX): Likewise.
55213         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55214         [C99-based standards] (SIZE_MAX): Likewise.
55215         [C99-based standards] (WCHAR_MAX): Likewise.
55216         [C99-based standards] (WINT_MAX): Likewise.
55217         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55218         constraint on value.
55219         [C99-based standards] (WCHAR_MIN): Likewise.
55220         [C99-based standards] (WINT_MIN): Likewise.
55221         [C99-based standards] (*_t): Allow.
55222         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55223         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55224         Include math.h-data and complex.h-data.  Remove all expectations
55225         of math.h and complex.h contents.
55226         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55227         at end of line.
55228         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55229         (struct tm): Expect tag.
55230         [C99-based-standards] (wcstof): Expect function.
55231         [C99-based-standards] (wcstold): Likewise.
55232         [C99-based-standards] (wcstoll): Likewise.
55233         [C99-based-standards] (wcstoull): Likewise.
55234         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55235         macro-int-constant.  Specify type.
55236         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55237         constraint on value.
55238         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55239         Specify type.
55240         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55241         Specify value.
55242         [ISO C standards]: Do not allow headers.
55243         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55244         wcs[abcdefghijklmnopqrstuvwxyz]*.
55245         [ISO C standards] (*_t): Do not allow.
55246         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55247         Expect function.
55248         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55249         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55250         Specify type.
55251         [ISO C standards]: Do not allow headers.
55252         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55253         is[abcdefghijklmnopqrstuvwxyz]*.
55254         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55255         to[abcdefghijklmnopqrstuvwxyz]*.
55256         [ISO C standards] (*_t): Do not allow.
55257         * conform/data/stdalign.h-data: New file.
55258         * conform/data/stdbool.h-data: Likewise.
55259         * conform/data/stdnoreturn.h-data: Likewise.
55260
55261 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55262
55263         [BZ #14815]
55264         * manual/filesys.texi (Directory Entries): Typo fix.
55265         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55266
55267 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55268
55269         * elf/elf.h (EM_AARCH64): New macro.
55270         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55271         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55272         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55273         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55274         (R_AARCH64_TLSDESC): Likewise.
55275         (NT_ARM_TLS): Likewise.
55276         (NT_ARM_HW_BREAK): Likewise.
55277         (NT_ARM_HW_WATCH): Likewise.
55278
55279 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55280
55281         [BZ #14811]
55282         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55283         (__ieee754_powl): Saturate nonzero exponents with absolute value
55284         below 0x1p-79 to +/- 0x1p-79.
55285         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55286         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55287         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55288         nonzero exponents with absolute value below 0x1p-32 to +/-
55289         0x1p-32.
55290         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55291         (__ieee754_powl): Saturate nonzero exponents with absolute value
55292         below 0x1p-79 to +/- 0x1p-79.
55293         * math/libm-test.inc (pow_test): Add more tests.
55294
55295 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55296
55297         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55298         _dl_s390_cap_flags with kernel. Increase string length.
55299         (_dl_s390_platforms): Add z196 and zEC12.
55300
55301 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55302
55303         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55304         Change XOPEN21K to XOPEN2K.
55305
55306 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55307
55308         * string/memmove.c: Use memcpy when possible.
55309
55310 2012-11-06  Andreas Jaeger  <aj@suse.de>
55311
55312         * po/eo.po: Update from translation team.
55313
55314 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55315
55316         [BZ #14793]
55317         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55318         exponent and small x and y exponents, scale x or y up.  Increase
55319         by 2 the exponent used in scaling up.
55320         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55321         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55322         * math/libm-test.inc (fma_test): Add more tests.
55323         (fma_test_towardzero): Likewise.
55324         (fma_test_downward): Likewise.
55325         (fma_test_upward): Likewise.
55326
55327 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55328
55329         [BZ #14805]
55330         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55331         fenv_t *.
55332
55333         [BZ #14801]
55334         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55335         namespace for names of struct fields.
55336         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55337         fenv_t fields.
55338         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55339         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55340
55341 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55342
55343         [BZ #3665]
55344         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55345
55346 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55347
55348         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55349         PTR_DEMANGLE.
55350
55351         [BZ #5246]
55352         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55353         PTR_DEMANGLE.
55354
55355 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55356
55357         [BZ #14797]
55358         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55359         definitely overflow as x * y not x * y + z.
55360         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55361         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55362         * math/libm-test.inc (fma_test): Add more tests.
55363         (fma_test_towardzero): Likewise.
55364         (fma_test_downward): Likewise.
55365         (fma_test_upward): Likewise.
55366
55367 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55368
55369         [BZ #157]
55370
55371         * include/stub-tag.h: Remove file.
55372         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55373         '#include' of it.
55374         * manual/maint.texi (Porting): Don't reference it.
55375         * Makerules ($(objpfx)stubs): Likewise.
55376         * dirent/closedir.c: Don't include <stub-tag.h>.
55377         * dirent/dirfd.c: Likewise.
55378         * dirent/fdopendir.c: Likewise.
55379         * dirent/getdents.c: Likewise.
55380         * dirent/getdents64.c: Likewise.
55381         * dirent/opendir.c: Likewise.
55382         * dirent/readdir.c: Likewise.
55383         * dirent/readdir64.c: Likewise.
55384         * dirent/readdir64_r.c: Likewise.
55385         * dirent/readdir_r.c: Likewise.
55386         * dirent/rewinddir.c: Likewise.
55387         * dirent/seekdir.c: Likewise.
55388         * dirent/telldir.c: Likewise.
55389         * gmon/profil.c: Likewise.
55390         * grp/setgroups.c: Likewise.
55391         * inet/if_index.c: Likewise.
55392         * io/access.c: Likewise.
55393         * io/chdir.c: Likewise.
55394         * io/chmod.c: Likewise.
55395         * io/chown.c: Likewise.
55396         * io/close.c: Likewise.
55397         * io/dup.c: Likewise.
55398         * io/dup2.c: Likewise.
55399         * io/dup3.c: Likewise.
55400         * io/euidaccess.c: Likewise.
55401         * io/faccessat.c: Likewise.
55402         * io/fchdir.c: Likewise.
55403         * io/fchmod.c: Likewise.
55404         * io/fchmodat.c: Likewise.
55405         * io/fchown.c: Likewise.
55406         * io/fchownat.c: Likewise.
55407         * io/fcntl.c: Likewise.
55408         * io/flock.c: Likewise.
55409         * io/fstatfs.c: Likewise.
55410         * io/fstatfs64.c: Likewise.
55411         * io/fstatvfs.c: Likewise.
55412         * io/fstatvfs64.c: Likewise.
55413         * io/futimens.c: Likewise.
55414         * io/fxstat.c: Likewise.
55415         * io/fxstat64.c: Likewise.
55416         * io/fxstatat.c: Likewise.
55417         * io/fxstatat64.c: Likewise.
55418         * io/getcwd.c: Likewise.
55419         * io/isatty.c: Likewise.
55420         * io/lchmod.c: Likewise.
55421         * io/lchown.c: Likewise.
55422         * io/link.c: Likewise.
55423         * io/linkat.c: Likewise.
55424         * io/lseek.c: Likewise.
55425         * io/lseek64.c: Likewise.
55426         * io/lxstat64.c: Likewise.
55427         * io/mkdir.c: Likewise.
55428         * io/mkdirat.c: Likewise.
55429         * io/mkfifo.c: Likewise.
55430         * io/mkfifoat.c: Likewise.
55431         * io/open.c: Likewise.
55432         * io/open64.c: Likewise.
55433         * io/openat.c: Likewise.
55434         * io/openat64.c: Likewise.
55435         * io/pipe.c: Likewise.
55436         * io/pipe2.c: Likewise.
55437         * io/poll.c: Likewise.
55438         * io/posix_fadvise.c: Likewise.
55439         * io/posix_fadvise64.c: Likewise.
55440         * io/posix_fallocate.c: Likewise.
55441         * io/posix_fallocate64.c: Likewise.
55442         * io/read.c: Likewise.
55443         * io/readlink.c: Likewise.
55444         * io/readlinkat.c: Likewise.
55445         * io/rmdir.c: Likewise.
55446         * io/sendfile.c: Likewise.
55447         * io/sendfile64.c: Likewise.
55448         * io/statfs.c: Likewise.
55449         * io/statfs64.c: Likewise.
55450         * io/statvfs.c: Likewise.
55451         * io/statvfs64.c: Likewise.
55452         * io/symlink.c: Likewise.
55453         * io/symlinkat.c: Likewise.
55454         * io/ttyname.c: Likewise.
55455         * io/ttyname_r.c: Likewise.
55456         * io/umask.c: Likewise.
55457         * io/unlink.c: Likewise.
55458         * io/unlinkat.c: Likewise.
55459         * io/utime.c: Likewise.
55460         * io/utimensat.c: Likewise.
55461         * io/write.c: Likewise.
55462         * io/xmknod.c: Likewise.
55463         * io/xmknodat.c: Likewise.
55464         * io/xstat.c: Likewise.
55465         * io/xstat64.c: Likewise.
55466         * login/getpt.c: Likewise.
55467         * login/grantpt.c: Likewise.
55468         * login/unlockpt.c: Likewise.
55469         * math/e_acoshl.c: Likewise.
55470         * math/e_acosl.c: Likewise.
55471         * math/e_asinl.c: Likewise.
55472         * math/e_atan2l.c: Likewise.
55473         * math/e_atanhl.c: Likewise.
55474         * math/e_coshl.c: Likewise.
55475         * math/e_expl.c: Likewise.
55476         * math/e_fmodl.c: Likewise.
55477         * math/e_gammal_r.c: Likewise.
55478         * math/e_hypotl.c: Likewise.
55479         * math/e_j0l.c: Likewise.
55480         * math/e_j1l.c: Likewise.
55481         * math/e_jnl.c: Likewise.
55482         * math/e_lgammal_r.c: Likewise.
55483         * math/e_log10l.c: Likewise.
55484         * math/e_log2l.c: Likewise.
55485         * math/e_logl.c: Likewise.
55486         * math/e_powl.c: Likewise.
55487         * math/e_rem_pio2l.c: Likewise.
55488         * math/e_sinhl.c: Likewise.
55489         * math/e_sqrtl.c: Likewise.
55490         * math/fclrexcpt.c: Likewise.
55491         * math/fedisblxcpt.c: Likewise.
55492         * math/feenablxcpt.c: Likewise.
55493         * math/fegetenv.c: Likewise.
55494         * math/fegetexcept.c: Likewise.
55495         * math/fegetround.c: Likewise.
55496         * math/feholdexcpt.c: Likewise.
55497         * math/fesetenv.c: Likewise.
55498         * math/fesetround.c: Likewise.
55499         * math/feupdateenv.c: Likewise.
55500         * math/fgetexcptflg.c: Likewise.
55501         * math/fraiseexcpt.c: Likewise.
55502         * math/fsetexcptflg.c: Likewise.
55503         * math/ftestexcept.c: Likewise.
55504         * math/k_cosl.c: Likewise.
55505         * math/k_rem_pio2l.c: Likewise.
55506         * math/k_sinl.c: Likewise.
55507         * math/k_tanl.c: Likewise.
55508         * math/s_asinhl.c: Likewise.
55509         * math/s_atanl.c: Likewise.
55510         * math/s_cbrtl.c: Likewise.
55511         * math/s_erfl.c: Likewise.
55512         * math/s_expm1l.c: Likewise.
55513         * math/s_log1pl.c: Likewise.
55514         * math/s_tanhl.c: Likewise.
55515         * misc/acct.c: Likewise.
55516         * misc/brk.c: Likewise.
55517         * misc/chflags.c: Likewise.
55518         * misc/chroot.c: Likewise.
55519         * misc/fchflags.c: Likewise.
55520         * misc/fgetxattr.c: Likewise.
55521         * misc/flistxattr.c: Likewise.
55522         * misc/fremovexattr.c: Likewise.
55523         * misc/fsetxattr.c: Likewise.
55524         * misc/fsync.c: Likewise.
55525         * misc/ftruncate.c: Likewise.
55526         * misc/futimes.c: Likewise.
55527         * misc/futimesat.c: Likewise.
55528         * misc/getdomain.c: Likewise.
55529         * misc/getdtsz.c: Likewise.
55530         * misc/gethostid.c: Likewise.
55531         * misc/gethostname.c: Likewise.
55532         * misc/getloadavg.c: Likewise.
55533         * misc/getpagesize.c: Likewise.
55534         * misc/getsysstats.c: Likewise.
55535         * misc/getxattr.c: Likewise.
55536         * misc/gtty.c: Likewise.
55537         * misc/ioctl.c: Likewise.
55538         * misc/lgetxattr.c: Likewise.
55539         * misc/listxattr.c: Likewise.
55540         * misc/llistxattr.c: Likewise.
55541         * misc/lremovexattr.c: Likewise.
55542         * misc/lsetxattr.c: Likewise.
55543         * misc/lutimes.c: Likewise.
55544         * misc/madvise.c: Likewise.
55545         * misc/mincore.c: Likewise.
55546         * misc/mlock.c: Likewise.
55547         * misc/mlockall.c: Likewise.
55548         * misc/mmap.c: Likewise.
55549         * misc/mprotect.c: Likewise.
55550         * misc/msync.c: Likewise.
55551         * misc/munlock.c: Likewise.
55552         * misc/munlockall.c: Likewise.
55553         * misc/munmap.c: Likewise.
55554         * misc/preadv.c: Likewise.
55555         * misc/preadv64.c: Likewise.
55556         * misc/ptrace.c: Likewise.
55557         * misc/pwritev.c: Likewise.
55558         * misc/pwritev64.c: Likewise.
55559         * misc/readv.c: Likewise.
55560         * misc/reboot.c: Likewise.
55561         * misc/remap_file_pages.c: Likewise.
55562         * misc/removexattr.c: Likewise.
55563         * misc/revoke.c: Likewise.
55564         * misc/select.c: Likewise.
55565         * misc/setdomain.c: Likewise.
55566         * misc/setegid.c: Likewise.
55567         * misc/seteuid.c: Likewise.
55568         * misc/sethostid.c: Likewise.
55569         * misc/sethostname.c: Likewise.
55570         * misc/setregid.c: Likewise.
55571         * misc/setreuid.c: Likewise.
55572         * misc/setxattr.c: Likewise.
55573         * misc/sstk.c: Likewise.
55574         * misc/stty.c: Likewise.
55575         * misc/swapoff.c: Likewise.
55576         * misc/swapon.c: Likewise.
55577         * misc/sync.c: Likewise.
55578         * misc/syncfs.c: Likewise.
55579         * misc/syscall.c: Likewise.
55580         * misc/truncate.c: Likewise.
55581         * misc/ualarm.c: Likewise.
55582         * misc/usleep.c: Likewise.
55583         * misc/ustat.c: Likewise.
55584         * misc/utimes.c: Likewise.
55585         * misc/vhangup.c: Likewise.
55586         * misc/writev.c: Likewise.
55587         * posix/_exit.c: Likewise.
55588         * posix/alarm.c: Likewise.
55589         * posix/execve.c: Likewise.
55590         * posix/fexecve.c: Likewise.
55591         * posix/fork.c: Likewise.
55592         * posix/fpathconf.c: Likewise.
55593         * posix/getaddrinfo.c: Likewise.
55594         * posix/getegid.c: Likewise.
55595         * posix/geteuid.c: Likewise.
55596         * posix/getgid.c: Likewise.
55597         * posix/getgroups.c: Likewise.
55598         * posix/getlogin.c: Likewise.
55599         * posix/getlogin_r.c: Likewise.
55600         * posix/getpgid.c: Likewise.
55601         * posix/getpid.c: Likewise.
55602         * posix/getppid.c: Likewise.
55603         * posix/getresgid.c: Likewise.
55604         * posix/getresuid.c: Likewise.
55605         * posix/getsid.c: Likewise.
55606         * posix/getuid.c: Likewise.
55607         * posix/glob64.c: Likewise.
55608         * posix/nanosleep.c: Likewise.
55609         * posix/pathconf.c: Likewise.
55610         * posix/pause.c: Likewise.
55611         * posix/posix_madvise.c: Likewise.
55612         * posix/pread.c: Likewise.
55613         * posix/pread64.c: Likewise.
55614         * posix/pwrite.c: Likewise.
55615         * posix/pwrite64.c: Likewise.
55616         * posix/sched_getaffinity.c: Likewise.
55617         * posix/sched_getp.c: Likewise.
55618         * posix/sched_gets.c: Likewise.
55619         * posix/sched_primax.c: Likewise.
55620         * posix/sched_primin.c: Likewise.
55621         * posix/sched_rr_gi.c: Likewise.
55622         * posix/sched_setaffinity.c: Likewise.
55623         * posix/sched_setp.c: Likewise.
55624         * posix/sched_sets.c: Likewise.
55625         * posix/sched_yield.c: Likewise.
55626         * posix/setgid.c: Likewise.
55627         * posix/setlogin.c: Likewise.
55628         * posix/setpgid.c: Likewise.
55629         * posix/setresgid.c: Likewise.
55630         * posix/setresuid.c: Likewise.
55631         * posix/setsid.c: Likewise.
55632         * posix/setuid.c: Likewise.
55633         * posix/sleep.c: Likewise.
55634         * posix/spawni.c: Likewise.
55635         * posix/sysconf.c: Likewise.
55636         * posix/times.c: Likewise.
55637         * posix/wait.c: Likewise.
55638         * posix/wait3.c: Likewise.
55639         * posix/wait4.c: Likewise.
55640         * posix/waitpid.c: Likewise.
55641         * resolv/gai_sigqueue.c: Likewise.
55642         * resource/getpriority.c: Likewise.
55643         * resource/getrlimit.c: Likewise.
55644         * resource/getrusage.c: Likewise.
55645         * resource/nice.c: Likewise.
55646         * resource/setpriority.c: Likewise.
55647         * resource/setrlimit.c: Likewise.
55648         * resource/ulimit.c: Likewise.
55649         * rt/aio_cancel.c: Likewise.
55650         * rt/aio_fsync.c: Likewise.
55651         * rt/aio_read.c: Likewise.
55652         * rt/aio_sigqueue.c: Likewise.
55653         * rt/aio_suspend.c: Likewise.
55654         * rt/aio_write.c: Likewise.
55655         * rt/clock_getres.c: Likewise.
55656         * rt/clock_gettime.c: Likewise.
55657         * rt/clock_nanosleep.c: Likewise.
55658         * rt/clock_settime.c: Likewise.
55659         * rt/lio_listio.c: Likewise.
55660         * rt/mq_close.c: Likewise.
55661         * rt/mq_getattr.c: Likewise.
55662         * rt/mq_notify.c: Likewise.
55663         * rt/mq_open.c: Likewise.
55664         * rt/mq_receive.c: Likewise.
55665         * rt/mq_send.c: Likewise.
55666         * rt/mq_setattr.c: Likewise.
55667         * rt/mq_timedreceive.c: Likewise.
55668         * rt/mq_timedsend.c: Likewise.
55669         * rt/mq_unlink.c: Likewise.
55670         * rt/shm_open.c: Likewise.
55671         * rt/shm_unlink.c: Likewise.
55672         * rt/timer_create.c: Likewise.
55673         * rt/timer_delete.c: Likewise.
55674         * rt/timer_getoverr.c: Likewise.
55675         * rt/timer_gettime.c: Likewise.
55676         * rt/timer_settime.c: Likewise.
55677         * setjmp/__longjmp.c: Likewise.
55678         * setjmp/setjmp.c: Likewise.
55679         * signal/kill.c: Likewise.
55680         * signal/killpg.c: Likewise.
55681         * signal/raise.c: Likewise.
55682         * signal/sigaction.c: Likewise.
55683         * signal/sigaltstack.c: Likewise.
55684         * signal/sigblock.c: Likewise.
55685         * signal/sigignore.c: Likewise.
55686         * signal/sigintr.c: Likewise.
55687         * signal/signal.c: Likewise.
55688         * signal/sigpause.c: Likewise.
55689         * signal/sigpending.c: Likewise.
55690         * signal/sigqueue.c: Likewise.
55691         * signal/sigreturn.c: Likewise.
55692         * signal/sigset.c: Likewise.
55693         * signal/sigsetmask.c: Likewise.
55694         * signal/sigstack.c: Likewise.
55695         * signal/sigsuspend.c: Likewise.
55696         * signal/sigtimedwait.c: Likewise.
55697         * signal/sigvec.c: Likewise.
55698         * signal/sigwait.c: Likewise.
55699         * signal/sigwaitinfo.c: Likewise.
55700         * signal/sysv_signal.c: Likewise.
55701         * socket/accept.c: Likewise.
55702         * socket/accept4.c: Likewise.
55703         * socket/bind.c: Likewise.
55704         * socket/connect.c: Likewise.
55705         * socket/getpeername.c: Likewise.
55706         * socket/getsockname.c: Likewise.
55707         * socket/getsockopt.c: Likewise.
55708         * socket/isfdtype.c: Likewise.
55709         * socket/listen.c: Likewise.
55710         * socket/recv.c: Likewise.
55711         * socket/recvfrom.c: Likewise.
55712         * socket/recvmsg.c: Likewise.
55713         * socket/send.c: Likewise.
55714         * socket/sendmsg.c: Likewise.
55715         * socket/sendto.c: Likewise.
55716         * socket/setsockopt.c: Likewise.
55717         * socket/shutdown.c: Likewise.
55718         * socket/sockatmark.c: Likewise.
55719         * socket/socket.c: Likewise.
55720         * socket/socketpair.c: Likewise.
55721         * stdio-common/ctermid.c: Likewise.
55722         * stdio-common/cuserid.c: Likewise.
55723         * stdio-common/remove.c: Likewise.
55724         * stdio-common/rename.c: Likewise.
55725         * stdio-common/renameat.c: Likewise.
55726         * stdio-common/tempname.c: Likewise.
55727         * stdlib/getcontext.c: Likewise.
55728         * stdlib/makecontext.c: Likewise.
55729         * stdlib/setcontext.c: Likewise.
55730         * stdlib/swapcontext.c: Likewise.
55731         * stdlib/system.c: Likewise.
55732         * streams/fattach.c: Likewise.
55733         * streams/fdetach.c: Likewise.
55734         * streams/getmsg.c: Likewise.
55735         * streams/getpmsg.c: Likewise.
55736         * streams/putmsg.c: Likewise.
55737         * streams/putpmsg.c: Likewise.
55738         * sysdeps/unix/bsd/getpt.c: Likewise.
55739         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55740         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55741         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55743         Likewise.
55744         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55745         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55746         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55747         * sysvipc/msgctl.c: Likewise.
55748         * sysvipc/msgget.c: Likewise.
55749         * sysvipc/msgrcv.c: Likewise.
55750         * sysvipc/msgsnd.c: Likewise.
55751         * sysvipc/semctl.c: Likewise.
55752         * sysvipc/semget.c: Likewise.
55753         * sysvipc/semop.c: Likewise.
55754         * sysvipc/semtimedop.c: Likewise.
55755         * sysvipc/shmat.c: Likewise.
55756         * sysvipc/shmctl.c: Likewise.
55757         * sysvipc/shmdt.c: Likewise.
55758         * sysvipc/shmget.c: Likewise.
55759         * termios/tcdrain.c: Likewise.
55760         * termios/tcflow.c: Likewise.
55761         * termios/tcflush.c: Likewise.
55762         * termios/tcgetattr.c: Likewise.
55763         * termios/tcgetpgrp.c: Likewise.
55764         * termios/tcsendbrk.c: Likewise.
55765         * termios/tcsetattr.c: Likewise.
55766         * termios/tcsetpgrp.c: Likewise.
55767         * time/adjtime.c: Likewise.
55768         * time/clock.c: Likewise.
55769         * time/getitimer.c: Likewise.
55770         * time/gettimeofday.c: Likewise.
55771         * time/setitimer.c: Likewise.
55772         * time/settimeofday.c: Likewise.
55773         * time/stime.c: Likewise.
55774         * time/time.c: Likewise.
55775
55776 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55777
55778         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55779         /usr/old/bin.
55780
55781         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55782         instead of spaces.
55783         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55784
55785 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55786
55787         [BZ #14796]
55788         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55789         FE_TONEAREST before applying Dekker multiplication and Knuth
55790         addition.  Clear inexact exceptions and check for exact zero
55791         results afterwards.
55792         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55793         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55794         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55795         * math/libm-test.inc (fma_test): Add more tests.
55796         (fma_test_towardzero): Likewise.
55797         (fma_test_downward): Likewise.
55798         (fma_test_upward): Likewise.
55799         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55800         function.
55801         (libc_fesetround): New macro.
55802         (libc_fesetroundf): Likewise.
55803         (libc_fesetroundl): Likewise.
55804         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55805         function.
55806         (libc_fesetround_387): Likewise.
55807         (libc_fesetroundf): New macro.
55808         (libc_fesetround): Likewise.
55809         (libc_fesetroundl): Likewise.
55810         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55811         function.
55812         (libc_fesetroundf): New macro.
55813         (libc_fesetround): Likewise.
55814         (libc_fesetroundl): Likewise.
55815         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55816         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55817         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55818         libm_hidden_ver.
55819         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55820         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55821         libm_hidden_def.
55822         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55823         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55824         libm_hidden_ver.
55825         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55826         libm_hidden_def.
55827
55828         [BZ #3439]
55829         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55830         integer constant usable in #if and use that to give value to enum
55831         constant.
55832         (FE_DIVBYZERO): Likewise.
55833         (FE_UNDERFLOW): Likewise.
55834         (FE_OVERFLOW): Likewise.
55835         (FE_INVALID): Likewise.
55836         (FE_INVALID_SNAN): Likewise.
55837         (FE_INVALID_ISI): Likewise.
55838         (FE_INVALID_IDI): Likewise.
55839         (FE_INVALID_ZDZ): Likewise.
55840         (FE_INVALID_IMZ): Likewise.
55841         (FE_INVALID_COMPARE): Likewise.
55842         (FE_INVALID_SOFTWARE): Likewise.
55843         (FE_INVALID_SQRT): Likewise.
55844         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55845         (FE_TONEAREST): Likewise.
55846         (FE_TOWARDZERO): Likewise.
55847         (FE_UPWARD): Likewise.
55848         (FE_DOWNWARD): Likewise.
55849         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55850         (FE_DIVBYZERO): Likewise.
55851         (FE_OVERFLOW): Likewise.
55852         (FE_UNDERFLOW): Likewise.
55853         (FE_INEXACT): Likewise.
55854         (FE_TONEAREST): Likewise.
55855         (FE_DOWNWARD): Likewise.
55856         (FE_UPWARD): Likewise.
55857         (FE_TOWARDZERO): Likewise.
55858         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55859         (FE_UNDERFLOW): Likewise.
55860         (FE_OVERFLOW): Likewise.
55861         (FE_DIVBYZERO): Likewise.
55862         (FE_INVALID): Likewise.
55863         (FE_TONEAREST): Likewise.
55864         (FE_TOWARDZERO): Likewise.
55865         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55866         (FE_OVERFLOW): Likewise.
55867         (FE_UNDERFLOW): Likewise.
55868         (FE_DIVBYZERO): Likewise.
55869         (FE_INEXACT): Likewise.
55870         (FE_TONEAREST): Likewise.
55871         (FE_TOWARDZERO): Likewise.
55872         (FE_UPWARD): Likewise.
55873         (FE_DOWNWARD): Likewise.
55874         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55875         (FE_DIVBYZERO): Likewise.
55876         (FE_OVERFLOW): Likewise.
55877         (FE_UNDERFLOW): Likewise.
55878         (FE_INEXACT): Likewise.
55879         (FE_TONEAREST): Likewise.
55880         (FE_DOWNWARD): Likewise.
55881         (FE_UPWARD): Likewise.
55882         (FE_TOWARDZERO): Likewise.
55883
55884 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55885
55886         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55887
55888 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55889
55890         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55891         commands.  Quote $PWD.
55892         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55893         -x" by "export".
55894         (remove_newlines): Remove.
55895
55896 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55897
55898         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55899         * stdlib/stdlib.h (atof): Moved to ...
55900         * include/bits/stdlib-float.h: Here.  New file.
55901         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55902         * stdlib/bits/stdlib-float.h: New file.
55903         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55904         -mno-sse -mno-mmx.
55905         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55906         <xmmintrin.h>.
55907
55908 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55909
55910         * conform/conformtest.pl (@headers): Add fenv.h.
55911         * conform/data/fenv.h-data: New file.
55912         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55913         include of <math/fenv.h>.
55914
55915         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55916         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55917         && !UNIX98].  Enables tests for XOPEN2K8.
55918         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55919         POSIX2008]: Likewise.
55920
55921         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55922         (struct rusage): Do not expect type or its members.
55923
55924         [BZ #3439]
55925         * math/math.h (FP_NAN): Define macro to integer constant usable in
55926         #if and use that to give value to enum constant.
55927         (FP_INFINITE): Likewise.
55928         (FP_ZERO): Likewise.
55929         (FP_SUBNORMAL): Likewise.
55930         (FP_NORMAL): Likewise.
55931
55932 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55933
55934         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55935         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55936         arguments.
55937
55938 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55939
55940         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55941         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55942         autoconf-time if not.
55943         * configure.in: Remove AC_PREREQ.
55944
55945 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55946
55947         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55948         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55949         of the internal implementation.
55950
55951 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55952
55953         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55954         except include of <misc/sys/syslog.h>.
55955
55956 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55957
55958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55959         function returns with a NULL context exit with zero.
55960
55961 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55962
55963         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55964
55965 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55966
55967         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55968         (run_program_cmd): This.
55969         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55970         (tst_langinfo): New variable.  Use it.
55971
55972 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55973
55974         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55975         floating point opcodes.
55976
55977 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55978
55979         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55980         variable.
55981
55982         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55983
55984         * sysdeps/mach/hurd/powerpc: Remove directory.
55985         * sysdeps/mach/powerpc: Likewise.
55986
55987 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55988
55989         * scripts/check-local-headers.sh: Ignore c++ headers.
55990
55991 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55992
55993         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55994         __libc_cleanup_region_start argument.
55995
55996 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55997
55998         [BZ #14784]
55999         [BZ #14785]
56000         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56001         x * y using scaling, not as x * y + z.
56002         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56003         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56004         * math/libm-test.inc (fma_test): Add more tests.
56005         (fma_test_towardzero): Likewise.
56006         (fma_test_downward): Likewise.
56007         (fma_test_upward): Likewise.
56008
56009 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56010
56011         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56012
56013 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56014
56015         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56016         New variable.
56017
56018 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56019
56020         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56021
56022 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56023
56024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56025         Fix sort order.
56026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56027         Likewise.
56028
56029 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56030
56031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56032         Fix the order of the list for glibc 2.17.
56033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56034         Likewise.
56035
56036 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56037
56038         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56039
56040 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56041
56042         [BZ #14610]
56043         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56044         for low part of x being zero before using __atanl (y).
56045         * math/libm-test.inc (atan2_test): Add another test.
56046
56047         * manual/install.texi (Configuring and compiling): Document
56048         general use of test-wrapper and test-wrapper-env.
56049         * INSTALL: Regenerated.
56050
56051         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56052         (__fma): Do not extract and scale down low bits on after-rounding
56053         systems when result rounded to normal precision would have normal
56054         exponent.
56055         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56056         (__fmal): Do not extract and scale down low bits on after-rounding
56057         systems when result rounded to normal precision would have normal
56058         exponent.
56059         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56060         (__fmal): Do not extract and scale down low bits on after-rounding
56061         systems when result rounded to normal precision would have normal
56062         exponent.
56063         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56064         macro.
56065         (fma_test): Add more tests.
56066         (fma_test_towardzero): Likewise.
56067         (fma_test_downward): Likewise.
56068         (fma_test_upward): Likewise.
56069
56070 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56071
56072         * sysdeps/i386/tininess.h: Renamed to ...
56073         * sysdeps/x86/tininess.h: This.
56074         * sysdeps/x86_64/tininess.h: Removed.
56075
56076 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56077
56078         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56079         input.  Use $(build-program-cmd).
56080         ($(objpfx)tst-array1-static.out): Likewise.
56081         ($(objpfx)tst-array2.out): Likewise.
56082         ($(objpfx)tst-array3.out): Likewise.
56083         ($(objpfx)tst-array4.out): Likewise.
56084         ($(objpfx)tst-array5.out): Likewise.
56085         ($(objpfx)tst-array5-static.out): Likewise.
56086
56087 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56088
56089         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56090         if defined.
56091
56092         * nss/nsswitch.h (nss_interface_function): Provide new
56093         macro for use with NSS functions.
56094         * grp/initgroups.c: Use new macro.
56095         * nss/getXXbyYY.c: Likewise.
56096         * nss/getXXbyYY_r.c: Likewise.
56097         * nss/getXXent.c: Likewise.
56098         * nss/getXXent_r.c: Likewise.
56099         * sysdeps/posix/getaddrinfo.c: Likewise.
56100
56101 2012-10-30  Andreas Jaeger  <aj@suse.de>
56102
56103         * po/ru.po: Update Russion translation from translation project.
56104
56105 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56106
56107         [BZ #14152]
56108         [BZ #14783]
56109         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56110         result and shift together with sticky bit instead of replicating
56111         round-to-nearest rounding.
56112         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56113         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56114         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56115         missing underflow exceptions.
56116         (fma_test_towardzero): Add more tests.
56117         (fma_test_downward): Likewise.
56118         (fma_test_upward): Likewise.
56119
56120         [BZ #14047]
56121         * sysdeps/generic/tininess.h: New file.
56122         * sysdeps/i386/tininess.h: Likewise.
56123         * sysdeps/sh/tininess.h: Likewise.
56124         * sysdeps/x86_64/tininess.h: Likewise.
56125         * stdlib/tst-strtod-underflow.c: Likewise.
56126         * stdlib/tst-tininess.c: Likewise.
56127         * stdlib/strtod_l.c: Include <tininess.h>.
56128         (round_and_return): Do not set errno for exact underflow cases.
56129         Force an underflow exception when setting errno for underflow.
56130         Determine underflow based on rounding to normal precision if
56131         TININESS_AFTER_ROUNDING.
56132         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56133         ERANGE for exact underflow cases.
56134         * stdlib/Makefile (tests): Add tst-tininess and
56135         tst-strtod-underflow.
56136         ($(objpfx)tst-tininess): Use $(link-libm).
56137         ($(objpfx)tst-strtod-underflow): Likewise.
56138
56139 2012-10-30  Andreas Jaeger  <aj@suse.de>
56140
56141         [BZ#14767]
56142         * elf/Makefile (tests): Remove conditional for have-initfini-array
56143         since this is now always required and the variable does not exist
56144         anymore.
56145         (tests-static): Likewise.
56146         (modules-names): Likewise.
56147
56148         * po/eo.po: Add Esperanto translation from translation project.
56149
56150         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56151         merged with constructor/destructor.
56152         (init_array): Likewise.
56153         * elf/tst-array2dep.c (fini_array): Likewise.
56154         (init_array): Likewise.
56155
56156 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56157
56158         * manual/message.texi: Delete @cartouche tags.
56159
56160 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56161
56162         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56163         EOPNOTSUPP.
56164         * sysdeps/mach/hurd/fsync.c: Likewise.
56165
56166         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56167         [_POSIX_REALTIME_SIGNALS]: Change condition to
56168         [_POSIX_REALTIME_SIGNALS > 0].
56169
56170 2012-10-27  Andreas Jaeger  <aj@suse.de>
56171
56172         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56173         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56174         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56175         [__WORDSIZE != 64]: Likewise.
56176
56177 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56178
56179         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56180         *  iconvdata/tst-tables.sh: Likewise.
56181
56182 2012-10-25  David S. Miller  <davem@davemloft.net>
56183
56184         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56185         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56186         of strtoull.
56187
56188         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56189         ifunc-impl-list.c
56190         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56191         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56192         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56193         file.
56194
56195 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56196
56197         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56198         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56199         __getdirentries.
56200
56201 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56202             Jim Blandy  <jimb@codesourcery.com>
56203
56204         * scripts/cross-test-ssh.sh: New file.
56205         * manual/install.texi (Configuring and compiling): Document use of
56206         cross-test-ssh.sh.
56207         * INSTALL: Regenerated.
56208
56209 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56210
56211         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56212         EOPNOTSUPP.
56213
56214 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56215
56216         * Makeconfig (run-program-prefix): Fix comment.
56217
56218 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56219             Jim Blandy  <jimb@codesourcery.com>
56220
56221         * Makeconfig (test-wrapper): New variable,
56222         (test-wrapper-env): Likewise.
56223         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56224         (run-built-tests): Define to yes.
56225         (run-program-prefix): Use $(test-wrapper).
56226         (built-program-cmd): Likewise.
56227         * Rules (make-test-out): Use $(test-wrapper-env) and
56228         $(host-built-program-cmd).
56229         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56230         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56231         tst-pathopt.sh.
56232         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56233         $(test-wrapper-env) to tst-rtld-load-self.sh.
56234         ($(objpfx)order2.out): Use $(test-wrapper).
56235         ($(objpfx)tst-initorder.out): Likewise.
56236         ($(objpfx)tst-initorder2.out): Likewise.
56237         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56238         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56239         (test_wrapper_env): New variable.  Use it to run ld.so.
56240         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56241         Use it to run ld.so.
56242         (test_wrapper_env): Likewise.
56243         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56244         $(test-wrapper) to run-iconv-test.sh.
56245         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56246         (ICONV): Use $test_wrapper.
56247         * posix/Makefile ($(objpfx)globtest.out): Pass
56248         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56249         globtest.sh, not $(run-program-prefix).
56250         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56251         (test_wrapper): Likewise.
56252         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56253         set together with run_via_rtld_prefix.
56254         (run_program_prefix): Define in terms of test_wrapper and
56255         run_via_rtld_prefix.
56256
56257 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56258
56259         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56260         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56261         Targets removed.
56262
56263         [BZ #14743]
56264         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56265         Declare __clock_getres, __clock_gettime, __clock_settime,
56266         __clock_nanosleep, and __clock_getcpuclockid.
56267         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56268         Remove librt_hidden_def (clock_gettime).
56269         * sysdeps/unix/clock_gettime.c: Likewise.
56270         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56271         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56272         * rt/clock_getres.c: Define __clock_getres as an alias.
56273         * sysdeps/posix/clock_getres.c: Likewise.
56274         * rt/clock_settime.c: Define __clock_settime as an alias.
56275         * sysdeps/unix/clock_settime.c: Likewise.
56276         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56277         * sysdeps/unix/clock_nanosleep.c: Likewise.
56278         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56279         * rt/clock-compat.c: New file.
56280         * rt/Makefile (librt-routines): Add clock-compat and move
56281         $(clock-routines) to ...
56282         (routines): ... here, new variable.
56283         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56284         Don't add get_clockfreq here.
56285         * rt/Versions (libc: GLIBC_2.17): New version set.
56286         Add clock_* symbols here.
56287         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56288         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56289         (GLIBC_2.17): Add clock_* symbols.
56290         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56291         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56292         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56294         Likewise.
56295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56296         Likewise.
56297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56300         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56301         * NEWS: Mention the move.
56302
56303         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56304         Use __open, __read, __close rather than their public counterparts.
56305         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56306         (__get_clockfreq_via_cpuinfo): Likewise.
56307         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56308         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56309
56310         * config.h.in (HAVE_IFUNC): New #undef.
56311         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56312         was successful.
56313         * configure: Regenerated.
56314
56315 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56316
56317         * configure.in: Move READELF check to start of file.
56318         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56319         libc_cv_asm_gnu_indirect_function in the process.
56320         * configure: Regenerated.
56321
56322 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56323
56324         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56325         send the output to /dev/null.
56326         (libc_cv_cc_with_libunwind): Likewise.
56327         (libc_cv_as_noexecstack): Likewise.
56328         * configure: Regenerate.
56329
56330 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56331
56332         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56333
56334         * posix/globtest.sh (TMPDIR): Do not set.
56335         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56336         (testout): Likewise.
56337
56338 2012-10-24  Andreas Jaeger  <aj@suse.de>
56339
56340         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56341         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56342         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56343         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56344         posix_fadvise64, posix_fallocate64.
56345
56346         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56347         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56348         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56349         Likewise.
56350         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56351         Likewise.
56352         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56353
56354         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56355         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56356         <bits/fcntl-linux.h>.
56357         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56358
56359         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56360         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56361         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56362         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56363         [__WORDSIZE != 64]: Likewise.
56364
56365 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56366
56367         * Makeconfig (run-built-tests): New variable.
56368         * Rules [$(cross-compiling) = yes]: Change condition to
56369         [$(run-built-tests) = no].
56370         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56371         to [$(run-built-tests) = yes].
56372         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56373         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56374         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56375         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56376         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56377         * io/Makefile [$(cross-compiling) = no]: Likewise.
56378         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56379         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56380         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56381         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56382         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56383         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56384         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56385         * string/Makefile [$(cross-compiling) = no]: Likewise.
56386
56387         * posix/Makefile ($(objpfx)globtest.out): Pass
56388         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56389         $(rtld-installed-name).
56390         * posix/globtest.sh (elf_objpfx): Remove variable.
56391         (rtld_installed_name): Likewise.
56392         (library_path): Likewise.
56393         (run_program_prefix): New variable.  Use for running globtest
56394         binary.
56395
56396 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56397             Joseph Myers  <joseph@codesourcery.com>
56398
56399         * Makeconfig (host-built-program-cmd): New variable.
56400         * elf/Makefile (tst-stackguard1-ARGS): Use
56401         $(host-built-program-cmd).
56402         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56403         (tst-spawn-ARGS): Likewise.
56404         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56405
56406 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56407             Jim Blandy  <jimb@codesourcery.com>
56408
56409         * Makeconfig (run-via-rtld-prefix): New variable.
56410         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56411         (built-program-cmd): Likewise.
56412
56413 2012-10-22  Andreas Jaeger  <aj@suse.de>
56414
56415         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56416         __O_RSYNC if it exists, otherwise to O_SYNC.
56417
56418 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56419             Joseph Myers  <joseph@codesourcery.com>
56420
56421         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56422         /dev/null.
56423         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56424         from /dev/null
56425         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56426         /dev/null.
56427
56428 2012-10-22  Andreas Jaeger  <aj@suse.de>
56429
56430         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56431         Define always.
56432         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56433
56434         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56435         bits/fcntl-linux.h.
56436
56437         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56438         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56439
56440         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56441         to __O_LARGEFILE.
56442         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56443         to __O_LARGEFILE.
56444
56445 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56446             Joseph Myers  <joseph@codesourcery.com>
56447
56448         * config.make.in (NM): New variable.
56449
56450 2012-10-21  Andreas Jaeger  <aj@suse.de>
56451
56452         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56453         definitions and declarations that are provided by
56454         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56455
56456 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56457
56458         [BZ #14683]
56459         * elf/Makefile (tests-static): Add tst-leaks1-static.
56460         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56461         ($(objpfx)tst-leaks1-static): New rule.
56462         ($(objpfx)tst-leaks1-static-mem): Likewise.
56463         (tst-leaks1-static-ENV): New macro.
56464         * elf/dl-open.c (dl_open_worker): Check the main application
56465         only if SHARED is defined.
56466         * elf/tst-leaks1-static.c: New file.
56467
56468 2012-10-20  Andreas Jaeger  <aj@suse.de>
56469
56470         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56471         generic values for Linux.
56472         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56473         and declarations that are provided by <bits/fcntl-linux.h> and
56474         include <bits/fcntl-linux.h>.
56475         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56476         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56477
56478 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56479
56480         * io/fcntl.h: Move include of <bits/types.h> to the top and
56481         include it unconditionally.
56482
56483 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56484
56485         * wcsmbs/Makefile (tests-ifunc): New variable.
56486         (tests): Add $(tests-ifunc).
56487         * wcsmbs/test-wcschr-ifunc.c: New file.
56488         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56489         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56490         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56491         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56492         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56493
56494         * string/Makefile (tests-ifunc): New variable.
56495         (tests): Add $(tests-ifunc).
56496         * string/test-memccpy.c (TEST_NAME): New macro.
56497         * string/test-memchr.c (TEST_NAME): Likewise.
56498         * string/test-memcmp.c (TEST_NAME): Likewise.
56499         * string/test-memcpy.c (TEST_NAME): Likewise.
56500         * string/test-memmem.c (TEST_NAME): Likewise.
56501         * string/test-memmove.c (TEST_NAME): Likewise.
56502         * string/test-memset.c (TEST_NAME): Likewise.
56503         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56504         * string/test-stpcpy.c (TEST_NAME): Likewise.
56505         * string/test-stpncpy.c (TEST_NAME): Likewise.
56506         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56507         * string/test-strcasestr.c (TEST_NAME): Likewise.
56508         * string/test-strcat.c (TEST_NAME): Likewise.
56509         * string/test-strchr.c (TEST_NAME): Likewise.
56510         * string/test-strcmp.c(TEST_NAME): Likewise.
56511         * string/test-strcpy.c (TEST_NAME): Likewise.
56512         * string/test-strcspn.c (TEST_NAME): Likewise.
56513         * string/test-strlen.c (TEST_NAME): Likewise.
56514         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56515         * string/test-strncmp.c (TEST_NAME): Likewise.
56516         * string/test-strncpy.c (TEST_NAME): Likewise.
56517         * string/test-strnlen.c (TEST_NAME): Likewise.
56518         * string/test-strpbrk.c (TEST_NAME): Likewise.
56519         * string/test-strrchr.c (TEST_NAME): Likewise.
56520         * string/test-strspn.c (TEST_NAME): Likewise.
56521         * string/test-strstr.c (TEST_NAME): Likewise.
56522         * string/test-bcopy-ifunc.c: New file.
56523         * string/test-bzero-ifunc.c: Likewise.
56524         * string/test-memccpy-ifunc.c: Likewise.
56525         * string/test-memchr-ifunc.c: Likewise.
56526         * string/test-memcmp-ifunc.c: Likewise.
56527         * string/test-memcpy-ifunc.c: Likewise.
56528         * string/test-memmem-ifunc.c: Likewise.
56529         * string/test-memmove-ifunc.c: Likewise.
56530         * string/test-mempcpy-ifunc.c: Likewise.
56531         * string/test-memset-ifunc.c: Likewise.
56532         * string/test-rawmemchr-ifunc.c: Likewise.
56533         * string/test-stpcpy-ifunc.c: Likewise.
56534         * string/test-stpncpy-ifunc.c: Likewise.
56535         * string/test-strcasecmp-ifunc.c: Likewise.
56536         * string/test-strcasestr-ifunc.c: Likewise.
56537         * string/test-strcat-ifunc.c: Likewise.
56538         * string/test-strchr-ifunc.c: Likewise.
56539         * string/test-strchrnul-ifunc.c: Likewise.
56540         * string/test-strcmp-ifunc.c: Likewise.
56541         * string/test-strcpy-ifunc.c: Likewise.
56542         * string/test-strcspn-ifunc.c: Likewise.
56543         * string/test-strlen-ifunc.c: Likewise.
56544         * string/test-strncasecmp-ifunc.c: Likewise.
56545         * string/test-strncat-ifunc.c: Likewise.
56546         * string/test-strncmp-ifunc.c: Likewise.
56547         * string/test-strncpy-ifunc.c: Likewise.
56548         * string/test-strnlen-ifunc.c: Likewise.
56549         * string/test-strpbrk-ifunc.c: Likewise.
56550         * string/test-strrchr-ifunc.c: Likewise.
56551         * string/test-strspn-ifunc.c: Likewise.
56552         * string/test-strstr-ifunc.c: Likewise.
56553
56554         * debug/Makefile (tests-ifunc): New variable.
56555         (tests): Add $(tests-ifunc).
56556         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56557         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56558         * debug/test-stpcpy_chk-ifunc.c: New file.
56559         * debug/test-strcpy_chk-ifunc.c: Likewise.
56560
56561 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56562
56563         [BZ #13601]
56564         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56565         header is not read in.
56566
56567 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56568
56569         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56570         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56571         directly.  Pass built executable to script as
56572         $(built-program-cmd).
56573         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56574         $testprogram without using LD_LIBRARY_PATH and $ldso.
56575
56576         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56577         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56578         $(rtld-installed-name).
56579         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56580         (rtld_installed_name): Likewise.
56581         (library_path): Likewise.
56582         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56583         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56584         $(run-program-prefix) to tst-tables.sh.
56585         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56586         it to run tst-table-from and tst-table-to.
56587         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56588         Pass it to tst-table.sh.
56589         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56590         $(run-program-prefix) to tst-gettext.sh.
56591         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56592         tst-translit.sh.
56593         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56594         tst-gettext2.sh.
56595         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56596         to run tst-gettext.
56597         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56598         to run tst-gettext2.
56599         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56600         to run tst-translit.
56601         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56602         $(run-program-prefix) to tst-mtrace.sh.
56603         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56604         to run tst-mtrace.
56605         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56606         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56607         $(rtld-installed-name).
56608         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56609         (rtld_installed_name): Likewise.
56610         (run_program_prefix): New variable.  Use it to run wordexp-test.
56611
56612         * Makeconfig (ARCH): Remove all definitions.
56613         (machine): Likewise.
56614         [ARCH]: Remove conditional code.
56615         [!objdir]: Give error.
56616         [!objdir] (objpfx): Remove.
56617         [!objdir] (common-objpfx): Likewise.
56618         [!objdir] (common-objdir): Likewise.
56619         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56620         AC_CONFIG_FILES call.
56621         * configure: Regenerated.
56622
56623         [BZ #13888]
56624         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56625         or TMPDIR.
56626         (testout): Likewise.
56627
56628         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56629         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56630         $(rtld-installed-name).
56631         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56632         (rtld_installed_name): Likwise.
56633         (runit): Remove function.
56634         (run_getconf): New variable,  Use it for running getconf binary.
56635
56636 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56637
56638         [BZ #14716]
56639         * string/test-memmem.c (check_result): New function.
56640         (do_one_test): Use it.
56641         (check1): New function.
56642         (test_main): Use it.
56643
56644 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56645
56646         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56647
56648 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56649
56650         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56651         (_G_LSEEK64): Likewise.
56652         (_G_MMAP64): Likewise.
56653         (_G_FSTAT64): Likewise.
56654         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56655         (_G_LSEEK64): Likewise.
56656         (_G_MMAP64): Likewise.
56657         (_G_FSTAT64): Likewise.
56658         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56659         unconditional.  Call __mmap64 directly.
56660         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56661         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56662         __lseek64 directly.
56663         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56664         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56665         __mmap64 directly.
56666         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56667         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56668         __lseek64 directly.
56669         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56670         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56671         __lseek64 directly.
56672         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56673         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56674         __lseek64 directly.
56675         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56676         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56677         __fxstat64 directly.
56678         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56679         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56680         unconditional.
56681         (freopen64) [!_G_OPEN64]: Remove conditional code.
56682         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56683         unconditional.
56684         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56685         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56686         unconditional.
56687         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56688         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56689         unconditional.
56690         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56691         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56692         unconditional.
56693         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56694         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56695         unconditional.
56696         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56697         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56698         unconditional.
56699         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56700         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56701         unconditional.
56702         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56703
56704 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56705
56706         [BZ #12140]
56707         * manual/memory.texi (Malloc Tunable Parameters): Add note
56708         about free list pointers overwriting some perturb bytes.
56709         Wording suggested by Roland McGrath.
56710
56711 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56712
56713         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56714         (lgamma_test): Likewise.
56715         (tgamma_test): Likewise.
56716
56717 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56718
56719         [BZ #14700]
56720         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56721         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56722
56723 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56724
56725         * NEWS: Mention BZ #14716.
56726         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56727         when removing AVAILABLE1_USES_J macro.
56728
56729 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56730
56731         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56732         (__bswap_64): __uint64_t for unsigned 64-bit int.
56733
56734 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56735
56736         * include/string.h (memmem): Declare libc hidden alias.
56737         * string/memmem.c (memmem): Define libc hidden alias.
56738         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56739         __read, __close instead of open, read, close.
56740
56741 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56742
56743         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56744         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56745         global and hidden.
56746         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56747         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56748         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56749         Likewise.
56750         (__rawmemchr_sse2): Likewise.
56751         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56752         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56753         (__strchr_sse2): Likewise.
56754         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56755         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56756         (__strcasecmp_sse2): Likewise.
56757         (__strncasecmp_sse2): Likewise.
56758         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56759         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56760         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56761         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56762         (__strrchr_sse2): Likewise.
56763         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56764         ifunc-impl-list.c.
56765         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56766         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56767         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56768         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56769         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56770         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56771         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56772         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56773         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56774         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56775         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56776         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56777         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56778         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56779         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56780         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56781         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56782         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56783         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56784         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56785         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56786         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56787         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56788         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56789         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56790         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56791         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56792         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56793         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56794         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56795
56796         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56797         global and hidden.
56798         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56799         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56800         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56801         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56802         Likewise.
56803         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56804         Likewise.
56805         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56806         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56807         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56808         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56809         ifunc-impl-list.c.
56810         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56811         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56812         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56813         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56814         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56815         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56816         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56817         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56818         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56819         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56820         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56821         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56822         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56823         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56824         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56825         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56826         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56827         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56828         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56829         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56830         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56831         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56832         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56833         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56834         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56835         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56836         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56837         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56838         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56839         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56840         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56841         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56842         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56843         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56844         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56845         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56846         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56847         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56848         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56849         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56850         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56851
56852         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56853         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56854         * include/ifunc-impl-list.h: New file.
56855         * misc/ifunc-impl-list.c: Likewise.
56856         * misc/Makefile (routines): Add ifunc-impl-list.
56857         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56858         * string/test-string.h: Include <ifunc-impl-list.h>.
56859         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56860         TEST_NAME]: New variables.
56861         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56862         are defined.
56863         (test_init): Call __libc_ifunc_impl_list to initialize
56864         func_list if TEST_IFUNC and TEST_NAME are defined.
56865
56866         * string/Makefile (strop-tests): Add bcopy and bzero.
56867         * string/test-bcopy.c: New file.
56868         * string/test-bzero.c: Likewise.
56869         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56870         defined.
56871         * string/test-memset.c: Support bzero test if TEST_BZERO is
56872         defined.
56873         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56874         __libc_memmove.
56875         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56876         __libc_memset.
56877         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56878         of memset.
56879
56880 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56881
56882         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56883         * configure: Regenerated.
56884
56885         * Makeconfig (+link-static-before-libc): Don't include
56886         $(link-static-libc).
56887
56888         * libio/libio.h (_IO_pos_t): Remove.
56889
56890 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56891
56892         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56893         McGrath.
56894
56895 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56896
56897         * crypt/crypt-entry.c: Include fips-private.h.
56898         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56899         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56900         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56901         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56902
56903 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56904
56905         * crypt/crypt-private.h: Include stdbool.h.
56906         (_ufc_setup_salt_r): Return bool.
56907         * crypt/crypt-entry.c: Include errno.h.
56908         (__crypt_r): Return NULL with EINVAL for bad salt.
56909         * crypt/crypt_util.c (bad_for_salt): New.
56910         (_ufc_setup_salt_r): Check that salt is long enough and within
56911         the specified alphabet.
56912         * crypt/badsalttest.c: New file.
56913         * crypt/Makefile (tests): Add it.
56914         ($(objpfx)badsalttest): New.
56915
56916 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56917
56918         * NEWS: Add entry for BZ #14602.
56919
56920 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56921
56922         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56923         type-generic.
56924         * math/libm-test.inc: Update comment listing what functions and
56925         macros are tested.
56926         (isgreater_test): New function.
56927         (isgreaterequal_test): Likewise.
56928         (isless_test): Likewise.
56929         (islessequal_test): Likewise.
56930         (islessgreater_test): Likewise.
56931         (isunordered_test): Likewise.
56932         (main): Call the new functions.
56933
56934 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56935
56936         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56937         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56938         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56939         * sysdeps/i386/configure: Regenerated.
56940         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56941         * sysdeps/mach/configure: Regenerated.
56942         * sysdeps/mach/hurd/configure: Regenerated.
56943         * sysdeps/powerpc/configure: Regenerated.
56944         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56945         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56946         * sysdeps/s390/s390-32/configure: Regenerated.
56947         * sysdeps/s390/s390-64/configure: Regenerated.
56948         * sysdeps/sh/configure: Regenerated.
56949         * sysdeps/sparc/configure: Regenerated.
56950         * sysdeps/unix/sysv/linux/configure: Regenerated.
56951         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56952         * sysdeps/x86_64/configure: Regenerated.
56953
56954         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56955         defined.  Don't check if MAP is NULL.
56956
56957 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56958
56959         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56960         (_G_stat64): Likewise.
56961         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56962         (_G_stat64): Likewise.
56963         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56964         instead of struct _G_stat64.
56965         * libio/fileops.c (mmap_remap_check): Likewise.
56966         (decide_maybe_mmap): Likewise.
56967         (_IO_new_file_seekoff): Likewise.
56968         (_IO_file_stat): Likewise.
56969         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56970         _G_off64_t.
56971         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56972         instead of struct _G_stat64.
56973         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56974
56975 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56976
56977         [BZ #14602]
56978         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56979         Replace with ...
56980         (CHECK_EOL): New macro.
56981         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56982         CHECK_EOL.
56983         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56984         Replace with CHECK_EOL.
56985         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56986         Replace with CHECK_EOL.
56987
56988 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56989
56990         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56991         type-generic.
56992         * math/libm-test.inc: Update comment listing what functions and
56993         macros are tested.
56994         (finite_test): New function.
56995         (isinf_test): Likewise.
56996         (isnan_test): Likewise.
56997         (fpclassify_test): Test subnormal input.
56998         (isfinite_test): Likewise.
56999         (isnormal_test): Likewise.
57000         (main): Call the new functions.
57001
57002 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57003
57004         [BZ #14660]
57005         * Makerules (%.dynsym): Force C locale when running
57006         $(OBJDUMP) --dynamic-syms.
57007
57008 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57009
57010         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57011         <stdint.h>.
57012
57013 2012-10-06  David S. Miller  <davem@davemloft.net>
57014
57015         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57016         upper 32-bits of the length value in %o2 since we use branch-on-register
57017         tests which consider the entire 64-bit register.
57018
57019 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57020
57021         * string/test-strstr.c (check2): Add a test for page boundary.
57022
57023 2012-10-05  David S. Miller  <davem@davemloft.net>
57024
57025         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57026         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57027         file.
57028         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57029         sysdep_routines.
57030         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57031         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57032         and bzero when HWCAP_SPARC_CRYPTO is present.
57033
57034 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57035
57036         [BZ #14602]
57037         * string/test-strstr.c (check2): New function.
57038         (test_main): Call check2.
57039
57040         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57041         and bug-strchr1.
57042         * string/bug-strcasestr1.c (do_test): Moved to ...
57043         * string/test-strcasestr.c (check1): Here.  New function.
57044         (do_one_test): Break out result checking code into ...
57045         (check_result): This.  New function.
57046         (do_one_test): Call check_result.
57047         (test_main): Call check1.
57048         * string/bug-strchr1.c (do_test): Moved to ...
57049         * string/test-strchr.c (check1): Here.  New function.
57050         (do_one_test): Break out result checking code into ...
57051         (check_result): This.  New function.
57052         (do_one_test): Call check_result.
57053         (test_main): Call check1.
57054         * string/bug-strstr1.c (main): Moved to ...
57055         * string/test-strstr.c (check1): Here.  New function.
57056         (do_one_test): Break out result checking code into ...
57057         (check_result): This.  New function.
57058         (do_one_test): Call check_result.
57059         (test_main): Call check1.
57060         * string/bug-strcasestr1.c: Removed.
57061         * string/bug-strchr1.c: Likewise.
57062         * string/bug-strstr1.c: Likewise.
57063
57064         * elf/Makefile (dl-routines): Add hwcaps.
57065         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57066         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57067         (_dl_important_hwcaps): Moved to ...
57068         * elf/dl-hwcaps.c: Here.  New file.
57069         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57070
57071         [BZ #14557]
57072         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57073         if IS_IN_rtld isn't defined.
57074
57075         * elf/dl-support.c (_dl_sysinfo_map): New.
57076         Include "get-dynamic-info.h" and "setup-vdso.h".
57077         (_dl_non_dynamic_init): Call setup_vdso.
57078         * elf/dynamic-link.h: Don't include <assert.h>.
57079         (elf_get_dynamic_info): Moved to ...
57080         * elf/get-dynamic-info.h: Here.  New file.
57081         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57082         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57083         * elf/setup-vdso.h: Here.  New file.
57084         * elf/rtld.c: Include "setup-vdso.h".
57085         (dl_main): Call setup_vdso.
57086
57087 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57088
57089         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57090         creal in comment listing functions tested.  List finite, isinf,
57091         isnan, isless, islessequal, isgreater, isgreaterequal,
57092         islessgreater, isunordered, lgamma_r and pow10 as functions and
57093         macros not tested.  Mention which functions not tested are aliases
57094         for other functions.  Fix typo.  Note that signs of NaNs are not
57095         tested.
57096
57097         * scripts/config.guess: Update from config.git.
57098         * scripts/config.sub: Likewise.
57099
57100 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57101
57102         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57103         * misc/madvise.c (madvise): Renamed to __madvise.
57104         Make madvise a weak alias.
57105         * include/sys/mman.h: Declare __madvise.
57106         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57107         * sysdeps/unix/syscalls.list
57108         (madvise): Make __madvise the strong name, and madvise a weak alias.
57109         * sysdeps/unix/sysv/linux/syscalls.list
57110         (madvise, mmap): Remove redundant entries.
57111         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57112         * malloc/malloc.c (mtrim): Likewise.
57113         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57114
57115 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57116
57117         * sysdeps/mach/hurd/dl-cache.c: File removed.
57118         * config.h.in (USE_LDCONFIG): New #undef.
57119         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57120         * configure: Regenerated.
57121         * elf/Makefile (dl-routines): Add dl-cache only under
57122         [$(use-ldconfig) = yes].
57123         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57124         cache on [USE_LDCONFIG].
57125         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57126         [USE_LDCONFIG].
57127         * elf/rtld.c (dl_main): Likewise.
57128
57129 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57130
57131         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57132         _SC_LEVEL4_CACHE_LINESIZE.
57133
57134 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57135
57136         * sysdeps/unix/bsd/confstr.h: File removed.
57137
57138 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57139
57140         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57141         sys/sdt-config.h.
57142
57143 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57144
57145         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57146         Make 'mapoff' field ElfW(Off) rather than off_t.
57147
57148 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57149
57150         * nscd/Makefile: Remove nscd-cflags and all its users.
57151         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57152         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57153
57154         [BZ #10631]
57155         * malloc.c (malloc_printerr): Clarify error message.
57156
57157 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57158
57159         [BZ #14648]
57160         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57161         Set bit_FMA_Usable if FMA is supported.
57162         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57163         macro.
57164         (bit_FMA4_Usable): Updated.
57165         (index_FMA_Usable): New macro.
57166         (CPUID_FMA): Likewise.
57167         (HAS_FMA): Defined with bit_FMA_Usable.
57168
57169 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57170
57171         * bits/types.h (__swblk_t): Type removed.
57172         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57173         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57174         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57175         (__SWBLK_T_TYPE): Likewise.
57176         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57177         (__SWBLK_T_TYPE): Likewise.
57178         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57179         (__SWBLK_T_TYPE): Likewise.
57180         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57181         (__SWBLK_T_TYPE): Likewise.
57182
57183 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57184             Honza Horak <hhorak@redhat.com>
57185
57186         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57187         (xdr_mapname): Use YPMAXMAP as maxsize.
57188         (xdr_peername): Use YPMAXPEER as maxsize.
57189         (xdr_keydat): Use YPAXRECORD as maxsize.
57190         (xdr_valdat): Use YPMAXRECORD as maxsize.
57191
57192 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57193
57194         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57195
57196         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57197         * csu/init-first.c: ... here.
57198         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57199         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57200         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57201         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57202         * sysdeps/i386/init-first.c: File removed.
57203         * sysdeps/sh/init-first.c: File removed.
57204
57205 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57206
57207         [BZ #14645]
57208         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57209         if x * y might underflow to zero and z is zero.
57210         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57211         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57212         * math/libm-test.inc (min_subnorm_value): New variable.
57213         (fma_test): Add more tests.
57214         (fma_test_towardzero): Likewise.
57215         (fma_test_downward): Likewise.
57216         (fma_test_upward): Likewise.
57217         (initialize): Set min_subnorm_value.
57218
57219 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57220
57221         [BZ #14638]
57222         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57223         0 + 0.
57224         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57225         mode for addition resulting in exact zero.
57226         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57227         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57228         exact 0 + 0.
57229         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57230         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57231         * math/libm-test.inc (fma_test): Add more tests.
57232         (fma_test_towardzero): New function.
57233         (fma_test_downward): Likewise.
57234         (fma_test_upward): Likewise.
57235         (main): Call the new functions.
57236
57237 2012-09-28  David S. Miller  <davem@davemloft.net>
57238
57239         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57240
57241 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57242
57243         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57244         instead of SIGALRM.
57245
57246         * sysdeps/gnu/_G_config.h: Moved to ...
57247         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57248         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57249         * sysdeps/generic/_G_config.h: ... here.
57250
57251         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57252
57253         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57254
57255         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57256         Conditionalize target on [libnss_test1.so-version].
57257
57258         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57259
57260         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57261         (elfobjdir): Move out of conditionals.
57262
57263         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57264         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57265         (__nss_lookup_function): Conditionalize label remove_from_tree on
57266         [!DO_STATIC_NSS || SHARED], matching its only use.
57267
57268 2012-09-28  David S. Miller  <davem@davemloft.net>
57269
57270         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57271         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57272         file.
57273         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57274         sysdep_routines.
57275         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57276         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57277         when HWCAP_SPARC_CRYPTO is present.
57278
57279 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57280
57281         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57282
57283 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57284
57285         [BZ #6530]
57286         * stdio-common/vfprintf.c (process_string_arg): Revert
57287         2000-07-22 change.
57288
57289 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57290
57291         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57292         for testcase.
57293         * stdio-common/tst-sprintf.c: Include <locale.h>
57294         (main): Test sprintf's handling of incomplete multibyte
57295         characters.
57296
57297 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57298
57299         * elf/dl-runtime.c (VERSYMIDX): Removed.
57300         * elf/dl-version.c (VERSYMIDX): Likewise.
57301         * elf/do-rel.h (VERSYMIDX): Likewise.
57302         (VALIDX): Likewise.
57303         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57304         * elf/rtld.c (VALIDX): Likewise.
57305         (ADDRIDX): Likewise.
57306         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57307         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57308         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57309         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57310         (VALIDX): Likewise.
57311         (ADDRIDX): Likewise.
57312
57313 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57314
57315         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57316
57317 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57318
57319         [BZ #11438]
57320         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57321         to global scope.
57322         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57323         addresses are in the same scope as 192.0.2/24.
57324         * posix/gai.conf: Document new scope table defaults.
57325
57326 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57327
57328         [BZ #5298]
57329         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57330         for ftell.  Compute offsets from write pointers instead.
57331         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57332
57333 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57334
57335         [BZ #14543]
57336         * libio/Makefile (tests): New test case tst-fseek.
57337         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57338         combination works in wide mode.
57339         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57340         state when the external buffer state changes.
57341
57342 2012-09-27  David S. Miller  <davem@davemloft.net>
57343
57344         [BZ #14376]
57345         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57346         pass reloc->r_addend in as the 'high' argument to
57347         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57348
57349         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57350
57351 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57352
57353         * rt/tst-aio2.c: Include <pthread.h>.
57354         * rt/tst-aio3.c: Likewise.
57355
57356 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57357
57358         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57359
57360 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57361
57362         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57363         contents on [SHARED].
57364
57365 2012-09-26  Marek Polacek  <polacek@redhat.com>
57366
57367         [BZ #14530]
57368         [BZ #13741]
57369         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57370         for C++ and GCC <4.3 as well as for non GCC compilers.
57371
57372 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57373
57374         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57375
57376 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57377
57378         * Makefile.in (all, install): Declare with .PHONY.
57379         Reported by Michael Hope <michael.hope@linaro.org>.
57380
57381 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57382
57383         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57384         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57385         system header.
57386         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57387         Likewise.
57388         (sydep_routines): Add the new and the internal functions.
57389         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57390         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57392         (GLIBC_2.17): Add the new function.
57393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57394         (GLIBC_2.17): Likewise.
57395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57396         (GLIBC_2.17): Likewise.
57397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57398         (GLIBC_2.17): Likewise.
57399         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57400
57401 2012-09-25  Alan Modra  <amodra@gmail.com>
57402
57403         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57404         Add release barrier before setting once_control to say
57405         initialisation is done.  Add hints on lwarx.  Use macro in
57406         place of isync.
57407         (clear_once_control): Add release barrier.
57408
57409 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57410
57411         [BZ #13629]
57412         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57413         specially.
57414         * math/s_clog10.c (__clog10): Likewise.
57415         * math/s_clog10f.c (__clog10f): Likewise.
57416         * math/s_clog10l.c (__clog10l): Likewise.
57417         * math/s_clogf.c (__clogf): Likewise.
57418         * math/s_clogl.c (__clogl): Likewise.
57419         * math/Makefile (libm-calls): Add x2y2m1.
57420         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57421         (__x2y2m1): Likewise.
57422         (__x2y2m1l): Likewise.
57423         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57424         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57425         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57426         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57427         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57428         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57429         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57430         * sysdeps/i386/fpu/libm-test-ulps: Update.
57431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57432
57433         [BZ #14621]
57434         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57435         int as type of variable DEPTH.
57436         (glob): Use size_t instead of int as type of variables NEWCOUNT
57437         and OLD_PATHC.
57438
57439 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57440
57441         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57442         Add s_sincosf-sse2.
57443         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57444         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57445         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57446         macros for using routine as __sincosf_ia32.
57447         Use macro for function declaration and weak_alias.
57448         * sysdeps/i386/fpu/libm-test-ulps: Update.
57449
57450         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57451         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57452
57453         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57454         subnormal argument.
57455         * math/s_cexpf.c (__cexpf): Likewise.
57456         * math/s_csinf.c (__csinf): Likewise.
57457         * math/s_csinhf.c (__csinhf): Likewise.
57458         * math/s_ctanf.c (__ctanf): Likewise.
57459         * math/s_ctanhf.c (__ctanhf): Likewise.
57460         * math/s_ccosh.c (__ccoshf): Likewise.
57461         * math/s_cexp.c (__cexpl): Likewise.
57462         * math/s_csin.c (__csin): Likewise.
57463         * math/s_csinh.c (__csinh): Likewise.
57464         * math/s_ctan.c (__ctan): Likewise.
57465         * math/s_ctanh.c (ctanh): Likewise.
57466         * math/s_ccoshl.c (__ccoshl): Likewise.
57467         * math/s_cexpl.c (__cexpl): Likewise.
57468         * math/s_csinl.c (__csinl): Likewise.
57469         * math/s_csinhl.c (__csinhl): Likewise.
57470         * math/s_ctanl.c (__ctanl): Likewise.
57471         * math/s_ctanhl.c (__ctanhl): Likewise.
57472
57473 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57474
57475         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57476         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57477         (_IO_off_t): Define to __off_t, not _G_off_t.
57478         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57479         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57480         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57481         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57482         type of __dummy and __dummy2 fields.
57483         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57484         (_G_ssize_t): Likewise.
57485         (_G_off_t): Likewise.
57486         (_G_pid_t): Likewise.
57487         (_G_uid_t): Likewise.
57488         (_G_wchar_t): Likewise.
57489         (_G_wint_t): Likewise.
57490         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57491         (_G_ssize_t): Likewise.
57492         (_G_off_t): Likewise.
57493         (_G_pid_t): Likewise.
57494         (_G_uid_t): Likewise.
57495         (_G_wchar_t): Likewise.
57496         (_G_wint_t): Likewise.
57497         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57498         (_G_ssize_t): Likewise.
57499         (_G_off_t): Likewise.
57500         (_G_pid_t): Likewise.
57501         (_G_uid_t): Likewise.
57502         (_G_wchar_t): Likewise.
57503         (_G_wint_t): Likewise.
57504
57505 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57506
57507         * malloc/arena.c: Include malloc-sysdep.h.
57508         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57509         is sufficient to shrink the heap or an unmap is needed.
57510         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57511         new function check_may_shrink_heap.
57512         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57513         new function check_may_shrink_heap.
57514
57515 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57516
57517         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57518         comments.
57519
57520 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57521
57522         * catgets/test-gencat.sh: Add "set -e".
57523         * elf/tst-pathopt.sh: Likewise.
57524         * grp/tst_fgetgrent.sh: Likewise.
57525         * iconvdata/run-iconv-test.sh: Likewise.
57526         * intl/tst-gettext.sh: Likewise.
57527         * intl/tst-gettext2.sh: Likewise.
57528         * intl/tst-gettext4.sh: Likewise.
57529         * intl/tst-gettext6.sh: Likewise.
57530         * intl/tst-translit.sh: Likewise.
57531         * io/ftwtest-sh: Likewise.
57532         * libio/test-freopen.sh: Likewise.
57533         * malloc/tst-mtrace.sh: Likewise.
57534         * posix/globtest.sh: Likewise.
57535         * posix/tst-getconf.sh: Likewise.
57536         * posix/wordexp-tst.sh: Likewise.
57537         * stdio-common/tst-printf.sh: Likewise.
57538         * stdio-common/tst-unbputc.sh: Likewise.
57539         * stdlib/tst-fmtmsg.sh: Likewise.
57540         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57541         * catgets/Makefile: Do not specify -e option when running
57542         testsuite shell scripts.
57543         * elf/Makefile: Likewise.
57544         * grp/Makefile: Likewise.
57545         * iconvdata/Makefile: Likewise.
57546         * intl/Makefile: Likewise.
57547         * io/Makefile: Likewise.
57548         * libio/Makefile: Likewise.
57549         * malloc/Makefile: Likewise.
57550         * posix/Makefile: Likewise.
57551         * stdio-common/Makefile: Likewise.
57552         * stdlib/Makefile: Likewise.
57553         * sysdeps/x86_64/Makefile: Likewise.
57554
57555         * io/ftwtest-sh: Add copyright header.
57556         * posix/globtest.sh: Likewise.
57557         * posix/tst-getconf.sh: Likewise.
57558         * posix/wordexp-tst.sh: Likewise.
57559         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57560
57561 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57562
57563         [BZ #13679]
57564         * Makeconfig (+link): Defined as $(+link-static) if
57565         $(build-shared) isn't yes.
57566         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57567         isn't yes.
57568         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57569
57570         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57571
57572         [BZ #14562]
57573         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57574         new chunk size with MALLOC_ALIGN_MASK.
57575
57576 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57577
57578         [BZ #5044]
57579         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57580         <rounding-mode.h>.
57581         (__printf_fphex): Determine rounding using get_rounding_mode and
57582         round_away.
57583         * stdio-common/tst-printf-round.c (struct hex_test): New
57584         structure.
57585         (hex_tests): New variable.
57586         (test_hex_in_one_mode): New function.
57587         (do_test): Also run tests for hex float output.
57588
57589 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57590
57591         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57592         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57593         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57594         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57595         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57596         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57597         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57598         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57599
57600 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57601
57602         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57603         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57604         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57605         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57606
57607 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57608
57609         [BZ #14579]
57610         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57611         mode only.
57612         * elf/tst-rtld-load-self.sh: New test.
57613         * elf/Makefile: Run it.
57614
57615 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57616
57617         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57618         (tst-writev-ENV): Remove.
57619         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57620
57621 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57622
57623         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57624
57625 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57626
57627         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57628         unconditional.
57629         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57630         Likewise.
57631         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57632         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57633         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57634         Likewise.
57635
57636 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57637
57638         [BZ #14587]
57639         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57640         * config.make.in (have-cpp-asm-debuginfo): Removed.
57641         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57642         * configure: Regenerated.
57643
57644 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57645
57646         [BZ #5044]
57647         * stdio-common/printf_fp.c: Include <stdbool.h> and
57648         <rounding-mode.h>.
57649         (___printf_fp): Determine rounding using get_rounding_mode and
57650         round_away.
57651         * stdio-common/tst-printf-round.c: New file.
57652         * stdio-common/Makefile (tests): Add tst-printf-round.
57653         (link-libm): New variable.
57654         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57655
57656 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57657
57658         [BZ #14576]
57659         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57660         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57661         Likewise.
57662         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57663         Likewise.
57664
57665 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57666
57667         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57668         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57669         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57670         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57671
57672 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57673
57674         [BZ #14518]
57675         * include/rounding-mode.h: New file.
57676         * sysdeps/generic/get-rounding-mode.h: Likewise.
57677         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57678         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57679         (MAX_VALUE): New macro.
57680         (MIN_VALUE): Likewise.
57681         (overflow_value): New function.
57682         (underflow_value): Likewise.
57683         (round_and_return): Use overflow_value and underflow_value to
57684         determine return values in overflow and underflow cases.  Use
57685         round_away to determine rounding depending on rounding mode.
57686         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57687         determine return values in overflow and underflow cases.
57688         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57689         (struct test_results): New structure.
57690         (struct test): Use struct test_results to store expected results
57691         for all rounding modes.
57692         (TEST): Include expected results for all rounding modes.
57693         (test_in_one_mode): New function.
57694         (do_test): Use test_in_one_mode to compute and check results.
57695         Check results for all rounding modes.
57696         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57697         $(link-libm).
57698
57699 2012-12-09  Allan McRae  <allan@archlinux.org>
57700
57701         * sysdeps/i386/fpu/libm-test-ulps: Update
57702
57703 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57704
57705         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57706         (_G_int32_t): Likewise.
57707         (_G_uint16_t): Likewise.
57708         (_G_uint32_t): Likewise.
57709         (_G_HAVE_BOOL): Likewise.
57710         (_G_HAVE_ATEXIT): Likewise.
57711         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57712         (_G_HAVE_IO_FILE_OPEN): Likewise.
57713         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57714         (_G_int32_t): Likewise.
57715         (_G_uint16_t): Likewise.
57716         (_G_uint32_t): Likewise.
57717         (_G_HAVE_BOOL): Likewise.
57718         (_G_HAVE_ATEXIT): Likewise.
57719         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57720         (_G_HAVE_IO_FILE_OPEN): Likewise.
57721         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57722         (_G_int32_t): Likewise.
57723         (_G_uint16_t): Likewise.
57724         (_G_uint32_t): Likewise.
57725         (_G_HAVE_BOOL): Likewise.
57726         (_G_HAVE_ATEXIT): Likewise.
57727         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57728         (_G_HAVE_IO_FILE_OPEN): Likewise.
57729
57730 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57731
57732         * csu/libc-tls.c: Update copyright years.
57733
57734 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57735
57736         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57737         [!_G_USING_THUNKS]: Remove conditional code.
57738         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57739         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57740
57741         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57742         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57743         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57744         (_G_VTABLE_LABEL_PREFIX): Likewise.
57745         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57746         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57747         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57748         (_G_VTABLE_LABEL_PREFIX): Likewise.
57749         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57750         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57751         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57752         (_G_VTABLE_LABEL_PREFIX): Likewise.
57753         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57754
57755 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57756
57757         * libio/Makefile: Include ../Makeconfig before tests.
57758         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57759         only if $(build-shared) is yes.
57760
57761         * iconv/gconv_db.c: Update copyright years.
57762
57763 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57764
57765         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57766         unwind info if defined PIC. Fix special cases description.
57767         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57768
57769         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57770         DP_HI_MASK entry.
57771         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57772
57773 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57774
57775         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57776
57777         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57778         is NULL.
57779
57780         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57781         (LDLIBS-tst-chk4): This.
57782         (LDFLAGS-tst-chk5): Renamed to ...
57783         (LDLIBS-tst-chk5): This.
57784         (LDFLAGS-tst-chk6): Renamed to ...
57785         (LDLIBS-tst-chk6): This.
57786         (LDFLAGS-tst-lfschk4): Renamed to ...
57787         (LDLIBS-tst-lfschk4): This.
57788         (LDFLAGS-tst-lfschk5): Renamed to ...
57789         (LDLIBS-tst-lfschk5): This.
57790         (LDFLAGS-tst-lfschk6): Renamed to ...
57791         (LDLIBS-tst-lfschk6): This.
57792
57793         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57794         on $(common-objpfx)soversions.mk.
57795
57796 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57797
57798         [BZ #10014]
57799         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57800         example host name.
57801
57802 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57803
57804         * malloc/arena.c (arena_get_retry): New function that gets
57805         another arena for the caller to try its request on.
57806         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57807         current arena cannot fulfill the request.
57808         (__libc_memalign): Likewise.
57809         (__libc_memalign): Likewise.
57810         (__libc_pvalloc): Likewise.
57811         (__libc_calloc): Likewise.
57812
57813 2012-09-05  John Tobey  <john.tobey@gmail.com>
57814
57815         [BZ #13542]
57816         * manual/arith.texi (Operations on Complex): Fix description
57817         of carg branch cut.
57818
57819 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57820
57821         [BZ #10014]
57822         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57823         host name.
57824
57825         [BZ #10038]
57826         * manual/memory.texi (Memory): Make order of menu items match
57827         order of sections.
57828
57829 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57830
57831         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57832         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57833         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57834
57835 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57836
57837         * csu/libc-tls.c (static_dtv): Renamed to ...
57838         (_dl_static_dtv): This.  Make it global.
57839         (_dl_initial_dtv): Removed.
57840         (__libc_setup_tls): Updated.
57841         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57842         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57843         DL_INITIAL_DTV.
57844
57845 2012-09-06  Petr Machata  <pmachata@redhat.com>
57846
57847         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57848         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57849         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57850         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57851
57852 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57853
57854         [BZ #14545]
57855         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57856         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57857         freeing dtv[-1].
57858
57859 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57860
57861         [BZ #14544]
57862         * Makeconfig (link-static-before-libc): Replace $(+prector)
57863         with $(+prectorT).
57864         (link-static-after-libc): Replace $(+postctor) with
57865         $(+postctorT).
57866         (link-bounded): Replace $(+prector)/$(+postctor) with
57867         $(+prectorT)/$(+postctorT).
57868         (+prectorT): New macro.
57869         (+postctorT): Likewise.
57870
57871 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57872
57873         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57874         (round_str): Handle values above the maximum for IBM long double
57875         as inexact.
57876         * stdlib/tst-strtod-round.c (tests): Regenerated.
57877
57878 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57879
57880         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57881         assembler flag.
57882         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57883         zarch_nohighgprs around the zarch optimized routines.
57884         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57885         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57886         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57887         for zarch.
57888
57889 2012-09-05  David S. Miller  <davem@davemloft.net>
57890
57891         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57892
57893         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57894         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57895         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57896         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57897         entries.
57898
57899 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57900
57901         * malloc/arena.c: Fold copyright years.
57902         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57903
57904 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57905
57906         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57907
57908 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57909
57910         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57911
57912 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57913
57914         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57915         change internal state upon failure.
57916
57917 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57918
57919         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57920         * malloc/memusage.c (mmap): Likewise.
57921         (mmap64, mremap): Likewise.  Adjust name in comment.
57922
57923 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57924
57925         * libio/fileops.c: Fix typos in comments.
57926         * libio/oldfileops.c: Likewise.
57927         * libio/wfileops.c: Likewise.
57928
57929 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57930
57931         [BZ #1349]
57932         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57933         (tst-malloc-usable-ENV): Set environment for test case.
57934         * malloc/hooks.c (malloc_check_get_size): New function to get
57935         requested size.
57936         * malloc/malloc.c (musable): Use malloc_check_get_size.
57937         * malloc/tst-malloc-usable.c: New test case.
57938
57939 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57940
57941         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57942
57943 2012-09-05  Allan McRae  <allan@archlinux.org>
57944
57945         [BZ #13966]
57946         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57947         determine header location.
57948         * configure: Regenerated.
57949
57950 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57951
57952         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57953         float format.
57954         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57955         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57956         format.
57957         (test): Regenerate.
57958
57959 2012-09-04  David S. Miller  <davem@davemloft.net>
57960
57961         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57962         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57963         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57964
57965 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57966
57967         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57968         failures.
57969
57970         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57971
57972 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57973
57974         [BZ #9914]
57975         * libio/iogetdelim.c: Include <limits.h>.
57976         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57977         + len + 1 would overflow.
57978
57979 2012-09-03  Andreas Jaeger  <aj@suse.de>
57980
57981         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57982         * sysdeps/i386/fpu/libm-test-ulps: Update.
57983
57984 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57985
57986         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57987         Add s_sinf-sse2, s_conf-sse2.
57988
57989         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57990         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57991         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57992         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57993
57994         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57995         for using routine as __sinf_ia32.
57996         Use macro for function declaration and weak_alias.
57997         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57998         for using routine as __cosf_ia32.
57999         Use macro for function declaration and weak_alias.
58000
58001         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58002         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58003
58004         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58005         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58006         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58007
58008         * math/libm-test.inc (cos_test): Add more test cases.
58009         (sin_test): Likewise.
58010         (sincos_test): Likewise.
58011
58012 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58013
58014         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58015         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58016         hidden.
58017         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58018
58019 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58020
58021         [BZ #14538]
58022         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58023         first element of the GOT.
58024         (elf_machine_load_address): Return the difference between
58025         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58026
58027 2012-09-01  Allan McRae  <allan@archlinux.org>
58028
58029         [BZ #13412]
58030         * configure.in (AWK): Require gawk version 3.0 or later.
58031         * configure: Regenerated.
58032
58033 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58034
58035         * sysdeps/unix/sysv/linux/kernel-features.h
58036         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58037         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58038         [__NR_clock_getres]: Make code unconditional.
58039         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58040         (clock_getcpuclockid): Remove code left unreachable by removal of
58041         conditionals.
58042         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58043         code unconditional.
58044         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58045         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58046         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58047         Make code unconditional.
58048         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58049         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58050         * sysdeps/unix/sysv/linux/clock_settime.c
58051         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58052         conditional code.
58053         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58054         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58055
58056 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58057
58058         [BZ #14476]
58059         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58060         scripts/test-installation.pl.
58061
58062         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58063         and $ld_so_version if it is set.
58064
58065 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58066
58067         [BZ #14516]
58068         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58069         failure if reading from procfs failed.
58070         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58071
58072 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58073
58074         * sysdeps/unix/sysv/linux/kernel-features.h
58075         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58076         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58077         Remove conditional code.
58078         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58079         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58080         Remove conditional code.
58081         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58082         * sysdeps/unix/sysv/linux/i386/fxstat.c
58083         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58084         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58085         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58086         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58087         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58088         * sysdeps/unix/sysv/linux/i386/lxstat.c
58089         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58090         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58091         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58092         Remove conditional code.
58093         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58094         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58095         Remove conditional code.
58096         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58097         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58098         <kernel-features.h>.
58099         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58100         Remove.
58101         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58102         Remove conditional code.
58103         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58104         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58105         Remove conditional.
58106
58107 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58108
58109         [BZ #5400]
58110         * NEWS: Add fixed bug number.
58111
58112 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58113
58114         [BZ #14519]
58115         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58116         underflowing exponent in case of negative sign.
58117         * stdlib/tst-strtod-round-data: Add more tests.
58118         * stdlib/tst-strtod-round.c (tests): Regenerated.
58119
58120         [BZ #3479]
58121         * stdlib/strtod_l.c (NDIG): Remove.
58122         (HEXNDIG): Likewise.
58123         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58124         smallest representable value.
58125         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58126         lie within an exact representation of 1/2 ulp of the result.
58127         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58128         unconditionally.
58129         (TENS_P9_IDX): Define unconditionally.
58130         (TENS_P9_SIZE): Likewise.
58131         (TENS_P10_IDX): Likewise.
58132         (TENS_P10_SIZE): Likewise.
58133         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58134         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58135         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58136         entries for 10^2^13 and 10^2^14.
58137         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58138         (TENS_P13_IDX): Define.
58139         (TENS_P13_SIZE): Likewise.
58140         (TENS_P14_IDX): Likewise.
58141         (TENS_P14_SIZE): Likewise.
58142         (_fpioconst_pow10): Change array size to
58143         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58144         unconditional.
58145         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58146         1024]: Add entries for 10^2^13 and 10^2^14.
58147         [LAST_POW10 > _LAST_POW10]: Remove #error.
58148         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58149         (_fpioconst_pow10): Change array size to
58150         FPIOCONST_POW10_ARRAY_SIZE.
58151         * stdlib/gen-fpioconst.c: New file.
58152         * stdlib/gen-tst-strtod-round.c: Likewise.
58153         * stdlib/tst-strtod-round-data: Likewise.
58154         * stdlib/tst-strtod-round.c: Likewise.
58155         * stdlib/Makefile (tests): Add tst-strtod-round.
58156
58157         [BZ #14459]
58158         * stdlib/strtod_l.c: Include <stdint.h>.
58159         (NDEBUG): Do not define.
58160         (round_and_return): Change EXPONENT parameter to type intmax_t.
58161         Rearrange calculations to avoid internal overflow possibilities.
58162         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58163         Rearrange calculations to avoid internal overflow possibilities.
58164         Assert that number fits inside MPNSIZE limbs.
58165         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58166         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58167         calculations and add assertions to avoid internal overflow
58168         possibilities.  Add casts to avoid signed/unsigned operations.
58169         * stdlib/tst-strtod-overflow.c: New file.
58170         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58171
58172 2012-08-25  Marek Polacek  <polacek@redhat.com>
58173
58174         * time/time.h: Fix some typos in comments.
58175
58176 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58177
58178         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58179         * posix/tst-rfc3484-2.c: Likewise.
58180         * posix/tst-rfc3484-3.c: Likewise.
58181
58182 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58183
58184         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58185         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58186
58187 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58188
58189         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58190         #include of fxstatat64.c.
58191
58192 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58193
58194         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58195         * shadow/getspent_r.c: Likewise.
58196         * shadow/getspnam.c: Likewise.
58197         * shadow/getspnam_r.c: Likewise.
58198         * gshadow/getsgent.c: Likewise.
58199         * gshadow/getsgent_r.c: Likewise.
58200         * gshadow/getsgnam.c: Likewise.
58201         * gshadow/getsgnam_r.c: Likewise.
58202         * inet/getnetbyad.c: Likewise.
58203         * inet/getnetbyad_r.c: Likewise.
58204         * inet/getnetbynm.c: Likewise.
58205         * inet/getnetbynm_r.c: Likewise.
58206         * inet/getnetent.c: Likewise.
58207         * inet/getnetent_r.c: Likewise.
58208         * inet/getproto.c: Likewise.
58209         * inet/getproto_r.c: Likewise.
58210         * inet/getprtent.c: Likewise.
58211         * inet/getprtent_r.c: Likewise.
58212         * inet/getprtname.c: Likewise.
58213         * inet/getprtname_r.c: Likewise.
58214         * inet/getrpcbyname.c: Likewise.
58215         * inet/getrpcbyname_r.c: Likewise.
58216         * inet/getrpcbynumber.c: Likewise.
58217         * inet/getrpcbynumber_r.c: Likewise.
58218         * inet/getrpcent.c: Likewise.
58219         * inet/getrpcent_r.c: Likewise.
58220         * inet/getaliasent.c: Likewise.
58221         * inet/getaliasent_r.c: Likewise.
58222         * inet/getaliasname.c: Likewise.
58223         * inet/getaliasname_r.c: Likewise.
58224         * nscd/getgrgid_r.c: Likewise.
58225         * nscd/getgrnam_r.c: Likewise.
58226         * nscd/gethstbyad_r.c: Likewise.
58227         * nscd/gethstbynm3_r.c: Likewise.
58228         * nscd/getpwnam_r.c: Likewise.
58229         * nscd/getpwuid_r.c: Likewise.
58230         * nscd/getsrvbynm_r.c: Likewise.
58231         * nscd/getsrvbypt_r.c: Likewise.
58232         * nscd/gai.c: Likewise.
58233
58234         * configure.in (build_nscd): New substituted variable, set
58235         by --disable-build-nscd and defaults to $use_nscd.
58236         * configure: Regenerated.
58237         * config.make.in (build-nscd): New substituted variable.
58238         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58239         Change conditional to require [$(build-nscd) = yes] as well.
58240         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58241
58242         [BZ# 13696]
58243         * configure.in (use_nscd): New substituted variable, set by
58244         --disable-nscd.  If enabled, define USE_NSCD.
58245         * configure: Regenerated.
58246         * config.h.in: Add USE_NSCD.
58247         * config.make.in (use-nscd): New substituted variable.
58248         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58249         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58250         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58251         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58252         (CFLAGS-getgrnam_r.c): Likewise.
58253         (CFLAGS-initgroups.c): Likewise.
58254         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58255         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58256         Variables removed.
58257         * inet/getnetgrent_r.c
58258         (nscd_setnetgrent): New function, broken out of ...
58259         (setnetgrent): ... here.  Call it.
58260         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58261         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58262         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58263         * nscd/Makefile (routines, aux): Move definitions after include of
58264         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58265         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58266         Conditionalize on [USE_NSCD].
58267         (is_nscd, nscd_init_cb): Likewise.
58268         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58269         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58270         * nss/nss_db/db-init.c: Likewise.
58271         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58272         [USE_NSCD].
58273         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58274         (make_request): Use it.
58275         (cache_valid_p): New function.
58276         (__check_pf): Use it.
58277         * NEWS: Add item for --disable-nscd.
58278
58279 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58280
58281         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58282         to support sed >= 4.2.1-20-ga9bf076.
58283         * configure: Regenerated.
58284
58285 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58286
58287         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58288         Conditionalize whole body on [IREL].
58289
58290 2012-08-22  Jeff Law <law@redhat.com>
58291
58292         [BZ #14505]
58293         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58294         if the family is PF_UNSPEC.
58295
58296 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58297
58298         * Makerules (lib-version): Rename from V.
58299         (install-lib-nosubdir): Change V to lib-version.
58300
58301 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58302
58303         [BZ #14252]
58304         * powerpc32/power6/wcschr.c: New file.
58305         * powerpc32/power6/wcscpy.c: New file.
58306         * powerpc32/power6/wcsrchr.c: New file.
58307         * powerpc64/power6/wcschr.c: New file.
58308         * powerpc64/power6/wcscpy.c: New file.
58309         * powerpc64/power6/wcsrchr.c: New file.
58310
58311 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58312
58313         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58314         (two_way_short_needle): Use it.
58315         * string/strstr.c (AVAILABLE1_USES_J): Define.
58316         * string/strcasestr.c: Likewise.
58317
58318         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58319         array references.
58320         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58321
58322         [BZ #11607]
58323         * NEWS: Add an entry.
58324         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58325         define their defaults.
58326         (two_way_short_needle): Detect end-of-string on-the-fly.
58327         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58328         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58329         * string/bug-strcasestr1.c: New test.
58330         * string/Makefile: Run it.
58331
58332 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58333
58334         [BZ #11607]
58335         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58336         the first character.
58337
58338 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58339
58340         * csu/elf-init.c (__libc_csu_irel): Function removed.
58341         * csu/libc-start.c (apply_irel): New function.
58342         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58343
58344 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58345
58346         * sysdeps/unix/sysv/linux/kernel-features.h
58347         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58348         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58349         <kernel-features.h>.
58350         [__NR_fadvise64_64]: Make code unconditional.
58351         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58352         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58353         !__NR_fadvise64_64)]: Likewise.
58354         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58355         !__NR_fadvise64_64))]: Likewise.
58356         [__NR_fadvise64]: Make code unconditional.
58357         [!__NR_fadvise64]: Remove conditional code.
58358         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58359         <kernel-features.h>.
58360         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58361         unconditional.
58362         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58363         conditional code.
58364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58365         not include <kernel-features.h>.
58366         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58367         unconditional.
58368         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58369         conditional code.
58370         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58371         include <kernel-features.h>.
58372         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58373         unconditional.
58374         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58375         conditional code.
58376
58377 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58378
58379         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58380         slight instruction rearrangements per scrollpipe analysis.
58381         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58382
58383 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58384
58385         * manual/syslog.texi (syslog; vsyslog, closelog):
58386         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58387         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58388
58389         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58390         DSOCAPS to match condition on defining it.
58391
58392 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58393
58394         * sysdeps/unix/sysv/linux/kernel-features.h
58395         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58397         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58398         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58400         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58401         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58403         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58404         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58405
58406         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58407         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58408
58409         * sysdeps/unix/sysv/linux/kernel-features.h
58410         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58411         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58412         unconditional.
58413         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58414         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58415         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58416         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58417         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58418         Make code unconditional.
58419         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58420         (__mmap64) [!__NR_mmap2]: Likewise.
58421         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58422         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58423         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58424         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58425         [__NR_mmap2]: Make code unconditional.
58426         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58427         (__mmap64) [!__NR_mmap2]: Likewise.
58428
58429 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58430
58431         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58432
58433 2012-08-18  Andreas Jaeger  <aj@suse.de>
58434
58435         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58436
58437 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58438
58439         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58440         * include/unistd.h (__have_sock_cloexec): Likewise.
58441         (__have_pipe2): Likewise.
58442         (__have_dup3): Likewise.
58443
58444 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58445
58446         [BZ #9685]
58447         * include/unistd.h (__have_pipe2): Change define into an extern int.
58448         (__have_dup3): Likewise.
58449         * socket/have_sock_cloexec.c: Include fcntl.h.
58450         (__have_pipe2): New variable.
58451         (__have_dup3): Likewise.
58452
58453 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58454
58455         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58456
58457 2012-08-17  Marek Polacek  <polacek@redhat.com>
58458
58459         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58460         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58461
58462 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58463
58464         * configure.in: Add AC_SUBST for sysheaders.
58465         * configure: Regenerated.
58466         * config.make.in (sysheaders): New substituted variable.
58467
58468         * sysdeps/unix/mkfifo.c: Moved ...
58469         * sysdeps/posix/mkfifo.c: ... here.
58470         * sysdeps/unix/mkfifoat.c: Moved ...
58471         * sysdeps/posix/mkfifoat.c: ... here.
58472
58473         * sysdeps/unix/utime.c: Moved ...
58474         * sysdeps/posix/utime.c: ... here.
58475
58476         * sysdeps/unix/time.c: Moved ...
58477         * sysdeps/posix/time.c: ... here.
58478         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58479         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58480
58481         * sysdeps/unix/nice.c: Moved ...
58482         * sysdeps/posix/nice.c: ... here.
58483
58484         * sysdeps/unix/alarm.c: Moved ...
58485         * sysdeps/posix/alarm.c: ... here.
58486
58487         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58488
58489 2012-08-17  Jeff Law <law@redhat.com>
58490
58491         * intl/Makefile (codeset_mo): New variable.
58492         ($(codeset_mo)): New target.
58493         (tst-codeset.out): Depend on that.  Remove explicit rule.
58494         (tst-gettext3.out, tst-gettext5.out): Likewise.
58495         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58496         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58497         * intl/tst-codeset.sh: Remove.
58498         * intl/tst-gettext3.sh: Likewise.
58499         * intl/tst-gettext5.sh: Likewise.
58500
58501 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58502
58503         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58504         * sysdeps/unix/syscalls.list: ... here.
58505
58506         * sysdeps/posix/getaddrinfo.c
58507         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58508         (gaiconf_init, gaiconf_reload): Use them.
58509         [!_STATBUF_ST_NSEC]
58510         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58511         Define using time_t rather than struct timespec.
58512
58513         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58514         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58515         Macros removed.
58516         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58517         [!NO_THREADS].
58518         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58519         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58520         Likewise.
58521
58522         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58523         __libc_cleanup_push argument.
58524
58525         * bits/param.h: New file.
58526         * misc/sys/param.h: New file.
58527         * include/sys/param.h: New file.
58528         * misc/Makefile (headers): Add bits/param.h.
58529         * sysdeps/generic/sys/param.h: File removed.
58530         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58531         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58532         * sysdeps/mach/hurd/bits/param.h: New file.
58533         * sysdeps/mach/hurd/sys/param.h: File removed.
58534
58535         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58536         last change.
58537
58538         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58539         [_IO_MTSAFE_IO].
58540         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58541         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58542         New macros.
58543
58544         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58545         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58546         rather than -D_IO_MTSAFE_IO conditionally.
58547         * stdio-common/Makefile (CPPFLAGS): Likewise.
58548         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58549         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58550         Use $(libio-mtsafe).
58551         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58552         of -D_IO_MTSAFE_IO.
58553         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58554         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58555         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58556         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58557         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58558         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58559         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58560         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58561         (CFLAGS-fread_u_chk.c): Likewise.
58562         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58563         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58564         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58565         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58566         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58567         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58568         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58569         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58570         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58571
58572         * libio/Makefile: Test [$(libc-reentrant) = yes]
58573         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58574
58575         * Makeconfig
58576         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58577         * sysdeps/pthread/configure: File removed.
58578         * sysdeps/pthread/Makeconfig: New file.
58579         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58580         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58581
58582 2012-08-16  Gary Benson  <gbenson@redhat.com>
58583
58584         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58585         unmapping the first object in a namespace.
58586
58587 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58588
58589         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58590         (__internal_setnetgrent): ... this.  Add internal_function to
58591         definition.  Add libc_hidden_def.
58592         (setnetgrent): Update caller.
58593         (internal_endnetgrent): Renamed to ...
58594         (__internal_endnetgrent): ... this.  Add internal_function to
58595         definition.  Add libc_hidden_def.
58596         (endnetgrent): Update caller.
58597         (internal_getnetgrent_r): Renamed to ...
58598         (__internal_getnetgrent_r): ... this.  Add internal_function to
58599         definition.  Add libc_hidden_def.
58600         (__getnetgrent_r): Update caller.
58601         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58602
58603 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58604
58605         * stdlib/longlong.h: Update from GCC.
58606
58607 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58608
58609         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58610         on _QL, which is set by umul_ppmm but never used.
58611         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58612         variables, which are set by GMP macros but never used.
58613         * stdio-common/_itowa.c (_itowa): Likewise.
58614         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58615         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58616
58617 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58618
58619         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58620         struct La_sh_regs is not constant.
58621         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58622         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58623         and struct La_sparc64_regs are not constant.
58624
58625 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58626
58627         * sysdeps/unix/sysv/linux/kernel-features.h
58628         (__ASSUME_POSIX_TIMERS): Remove.
58629         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58630         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58631         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58632         Make code unconditional.
58633         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58634         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58635         Make code unconditional.
58636         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58637         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58638         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58639         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58640         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58641         Make code unconditional.
58642         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58643         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58644         (__libc_missing_posix_timers): Remove.
58645
58646 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58647
58648         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58649         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58650
58651         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58652
58653         * elf/dl-sym.c: Include <stdlib.h>.
58654
58655         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58656         constants, which avoids warnings in 32-bit builds.
58657
58658         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58659         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58660
58661         * misc/lseek.c: File moved to ...
58662         * io/lseek.c: ... here.
58663
58664         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58665
58666         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58667         shifting LEN more than 31 bits at once.
58668
58669 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58670
58671         [BZ #14195]
58672         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58673         segmentation fault for a case of two empty input strings.
58674         * string/test-strncasecmp.c (check1): Renamed to...
58675         (bz12205): ...this.
58676         (bz14195): Add new testcase for two empty input strings and N > 0.
58677         (test_main): Call new testcase, adapt for renamed function.
58678
58679 2012-08-15  Andreas Jaeger  <aj@suse.de>
58680
58681         [BZ #14090]
58682         * crypt/md5test2.c: New test, based on test supplied by Serge
58683         Belyshev <belyshev@depni.sinp.msu.ru>.
58684         * crypt/Makefile (xtests): Add md5test-giant..
58685         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58686
58687 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58688
58689         [BZ #14090]
58690         * crypt/md5.c (md5_process_block): Don't assume the buffer
58691         length is less than 2**32.
58692         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58693         length is less than 2**64.
58694
58695 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58696
58697         * string/str-two-way.h: Include <sys/param.h>.
58698         (MAX): Macro removed.
58699
58700         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58701         Move #define and #undef of memmove to just before and after
58702         including <string.h>.
58703
58704         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58705         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58706         and after including <string.h>.  Move declarations of
58707         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58708         to before #include "string/memmove.c".
58709
58710         * include/dirent.h: Declare __getdirentries.
58711
58712         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58713         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58714
58715 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58716
58717         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58718         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58719         * sysdeps/i386/configure: Regenerated.
58720         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58721         STABS_CURRENT_FILE, and STABS_FUN.
58722         (END): Remove call to STABS_FUN_END.
58723         (STABS_CURRENT_FILE1): Delete.
58724         (STABS_CURRENT_FILE): Likewise.
58725         (STABS_FUN): Likewise.
58726         (STABS_FUN_END): Likewise.
58727         (STABS_FUN2): Likewise.
58728         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58729         * sysdeps/x86_64/configure: Regenerated.
58730
58731 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58732
58733         * elf/dl-open.c: Include <atomic.h>.
58734         * elf/dl-lookup.c: Likewise.
58735
58736 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58737
58738         * sysdeps/unix/sysv/linux/kernel-features.h
58739         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58740         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58741         unconditionally.
58742         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58743         unconditionally.
58744         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58745         condition on __ASSUME_CLONE_THREAD_FLAGS.
58746
58747 2012-08-14  Andreas Jaeger  <aj@suse.de>
58748
58749         * sysdeps/i386/fpu/libm-test-ulps: Update.
58750
58751 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58752
58753         * include/atomic.h (atomic_exchange_and_add): Split into ...
58754         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58755         New atomic macros.
58756
58757 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58758
58759         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58760
58761 2012-08-13  Jeff Law <law@redhat.com>
58762
58763         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58764         null byte in the output string.
58765
58766 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58767
58768         * sysdeps/unix/sysv/linux/kernel-features.h
58769         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58770         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58771         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58772         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58773         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58774         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58775         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58776
58777 2012-08-09  Jeff Law <law@redhat.com>
58778
58779         [BZ #13939]
58780         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58781         When avoid_arena is set, don't retry in the that arena.  Pick the
58782         next one, whatever it might be.
58783         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58784         (arena_lock): Pass in new parameter to arena_get2.
58785         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58786         arena_get2.
58787         (__libc_malloc): Unify retrying after main arena failure with
58788         __libc_memalign version.
58789         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58790
58791 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58792
58793         [BZ #14166]
58794         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58795         to __redirect_strstr.
58796         (__strstr_sse42): Use typeof __redirect_strstr.
58797         (__strstr_ia32): Likewise.
58798         (__libc_strstr): New prototype.
58799         (strstr): Renamed to ...
58800         (__libc_strstr): This.
58801         (strstr): New strong alias of __libc_strstr.
58802         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58803         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58804         __redirect_time.
58805         Include <time.h>.
58806         (__libc_time): New prototype.
58807         (time_ifunc): Replace time with __libc_time.
58808         (time): New strong alias and hidden definition of __libc_time.
58809         (__GI_time): Remove strong alias.
58810         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58811         Include <stddef.h>.
58812         (memmove): Redefined to __redirect_memmove.
58813         (__memmove_sse2): Use typeof __redirect_memmove.
58814         (__memmove_ssse3): Likewise.
58815         (__memmove_ssse3_back): Likewise.
58816         (__libc_memmove): New prototype.
58817         (memmove): Renamed to ...
58818         (__libc_memmove): This.
58819         (memmove): New strong alias of __libc_memmove.
58820
58821 2012-08-08  Mark Salter  <msalter@redhat.com>
58822
58823         * elf/elf.h
58824         (R_MN10300_TLS_GD): Define.
58825         (R_MN10300_TLS_LD): Likewise.
58826         (R_MN10300_TLS_LDO): Likewise.
58827         (R_MN10300_TLS_GOTIE): Likewise.
58828         (R_MN10300_TLS_IE): Likewise.
58829         (R_MN10300_TLS_LE): Likewise.
58830         (R_MN10300_TLS_DTPMOD): Likewise.
58831         (R_MN10300_TLS_DTPOFF): Likewise.
58832         (R_MN10300_TLS_TPOFF): Likewise.
58833         (R_MN10300_SYM_DIFF): Likewise.
58834         (R_MN10300_ALIGN): Likewise.
58835         (R_MN10300_NUM): Update.
58836
58837 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58838
58839         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58840         Remove.
58841
58842 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58843
58844         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58845
58846         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58847         sysdeps/unix -> sysdeps/posix move.
58848         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58849
58850 2012-08-07      Allan McRae     <allan@archlinux.org>
58851
58852         [BZ #14303]
58853         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58854         (SUNOS_CPP): Likewise.
58855         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58856         not found.
58857         (open_input): Call CPP using execvp.
58858
58859 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58860
58861         * sysdeps/unix/sysv/linux/kernel-features.h
58862         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58863         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58864         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58865         (__ASSUME_WAITID_SYSCALL): Likewise.
58866         * sysdeps/unix/sysv/linux/dl-execstack.c
58867         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58868         code unconditional.
58869         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58870         conditional code.
58871         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58872         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58873         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58874         code.
58875         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58876         unconditional.
58877         [__ASSUME_WAITID_SYSCALL]: Likewise.
58878         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58879
58880 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58881
58882         * sysdeps/unix/closedir.c: Renamed to ...
58883         * sysdeps/posix/closedir.c: ... here.
58884         * sysdeps/unix/dirfd.c: Renamed to ...
58885         * sysdeps/posix/dirfd.c: ... here.
58886         * sysdeps/unix/dirstream.h: Renamed to ...
58887         * sysdeps/posix/dirstream.h: ... here.
58888         * sysdeps/unix/fdopendir.c: Renamed to ...
58889         * sysdeps/posix/fdopendir.c: ... here.
58890         * sysdeps/unix/opendir.c: Renamed to ...
58891         * sysdeps/posix/opendir.c: ... here.
58892         * sysdeps/unix/readdir.c: Renamed to ...
58893         * sysdeps/posix/readdir.c: ... here.
58894         * sysdeps/unix/readdir_r.c: Renamed to ...
58895         * sysdeps/posix/readdir_r.c: ... here.
58896         * sysdeps/unix/rewinddir.c: Renamed to ...
58897         * sysdeps/posix/rewinddir.c: ... here.
58898         * sysdeps/unix/seekdir.c: Renamed to ...
58899         * sysdeps/posix/seekdir.c: ... here.
58900         * sysdeps/unix/telldir.c: Renamed to ...
58901         * sysdeps/posix/telldir.c: ... here.
58902         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58903         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58904         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58905         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58906
58907         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58908         * bits/fcntl.h: ... here.
58909
58910         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58911         not 0.
58912         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58913         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58914         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58915         (struct flock): Move l_start, l_len to the beginning.
58916         Use __pid_t for l_pid.
58917         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58918         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58919         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58920         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58921         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58922         [__USE_LARGEFILE64] (struct flock64): New type.
58923         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58924
58925         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58926         * bits/dirent.h: ... here.
58927
58928         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58929         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58930
58931 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58932
58933         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58934         Change from 2.6.0 to 2.6.16.
58935         * sysdeps/unix/sysv/linux/configure: Regenerated.
58936         * sysdeps/unix/sysv/linux/kernel-features.h
58937         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58938         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58939         version.
58940         (__ASSUME_UTIMES): Likewise.
58941         (__ASSUME_CLONE_STOPPED): Remove.
58942         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58943         architectures, not kernel version.
58944         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58945         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58946         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58947         (__ASSUME_WAITID_SYSCALL): Likewise.
58948         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58949         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58950         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58951         refer to older versions.
58952
58953 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58954
58955         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58956         Define alphasort64 as an alias.
58957         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58958         Define versionsort64 as an alias.
58959         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58960         Define scandir64 as an alias.
58961         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58962         Define scandirat64 as an alias.
58963         * dirent/alphasort64.c (alphasort64):
58964         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58965         * dirent/versionsort64.c: Likewise.
58966         * dirent/scandir64.c: Likewise.
58967         * dirent/scandirat64.c: Likewise.
58968         * sysdeps/wordsize-64/alphasort.c: File removed.
58969         * sysdeps/wordsize-64/alphasort64.c: File removed.
58970         * sysdeps/wordsize-64/scandir.c: File removed.
58971         * sysdeps/wordsize-64/scandir64.c: File removed.
58972         * sysdeps/wordsize-64/scandirat.c: File removed.
58973         * sysdeps/wordsize-64/scandirat64.c: File removed.
58974         * sysdeps/wordsize-64/versionsort.c: File removed.
58975         * sysdeps/wordsize-64/versionsort64.c: File removed.
58976         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58977         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58978         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58979         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58980         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58981         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58982         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58983         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58984
58985         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58986         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58987         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58988         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58989         [defined __arch64__ || defined __sparcv9]
58990         (__INO_T_MATCHES_INO64_T): New macro.
58991         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58992         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58993         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58994         * sysdeps/unix/sysv/linux/bits/dirent.h
58995         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58996         (_DIRENT_MATCHES_DIRENT64): New macro.
58997
58998         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58999         Define lockf64 as an alias.
59000         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59001         Define fseeko64 as an alias.
59002         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59003         Define ftello64 as an alias.
59004         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59005         Define _IO_fgetpos64 and fgetpos64 as aliases.
59006         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59007         Define _IO_fsetpos64 and fsetpos64 as aliases.
59008         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59009         Conditionalize body on this.
59010         * libio/fseeko64.c: Likewise.
59011         * libio/ftello64.c: Likewise.
59012         * libio/iofgetpos64.c: Likewise.
59013         * libio/iofsetpos64.c: Likewise.
59014         * sysdeps/wordsize-64/lockf.c: File removed.
59015         * sysdeps/wordsize-64/lockf64.c: File removed.
59016         * sysdeps/wordsize-64/fseeko.c: File removed.
59017         * sysdeps/wordsize-64/fseeko64.c: File removed.
59018         * sysdeps/wordsize-64/ftello.c: File removed.
59019         * sysdeps/wordsize-64/ftello64.c: File removed.
59020         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59021         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59022         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59023         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59024         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59025         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59026         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59027         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59028         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59029         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59030         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59031         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59032         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59033         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59034
59035         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59036         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59037         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59038         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59039         [defined __arch64__ || defined __sparcv9]
59040         (__OFF_T_MATCHES_OFF64_T): New macro.
59041         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59042         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59043         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59044         (__OFF_T_MATCHES_OFF64_T): New macro.
59045
59046 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59047
59048         * stdlib/secure-getenv.c (__secure_getenv): Replace
59049         GLIBC_2_16 with GLIBC_2_17.
59050
59051 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59052
59053         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59054         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59055
59056 2012-08-03  David S. Miller  <davem@davemloft.net>
59057
59058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59059
59060 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59061
59062         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59063         Remove.
59064         (__ASSUME_CORRECT_SI_PID): Likewise.
59065         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59066         (__ASSUME_TMPFS_NAME): Likewise.
59067         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59068         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59069         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59070         (HAVE_AUX_SECURE): Make definition unconditional.
59071         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59072         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59073
59074 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59075
59076         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59077         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59078         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59079         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59080         __eloop_threshold instead of SYMLOOP_MAX.
59081
59082         * sysdeps/generic/eloop-threshold.h: New file.
59083         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59084         of MAXSYMLINKS.
59085         * elf/chroot_canon.c (chroot_canon): Likewise.
59086
59087 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59088
59089         [BZ #13717]
59090         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59091         Change to 2.6.0 everywhere.
59092         * sysdeps/unix/sysv/linux/configure: Regenerated.
59093         * sysdeps/unix/sysv/linux/kernel-features.h
59094         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59095         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59096         kernel versions.
59097         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59098         (__ASSUME_FUTEX_REQUEUE): Remove.
59099         (__ASSUME_STATFS64): Define unconditionally.
59100         (__ASSUME_AT_SECURE): Likewise.
59101         (__ASSUME_CORRECT_SI_PID): Likewise.
59102         (__ASSUME_TGKILL): Define without depending on kernel version for
59103         i386.
59104         (__ASSUME_UTIMES): Likewise.
59105         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59106         kernel version.
59107         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59108         (__ASSUME_TMPFS_NAME): Likewise.
59109         * README: Update reference to Linux kernel versions.
59110
59111 2012-08-02  Marek Polacek  <polacek@redhat.com>
59112
59113         [BZ# 14150]
59114         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59115         libc_cv_asm_type_prefix with %.
59116         * configure: Regenerated.
59117         * include/libc-symbols.h: Remove comment about
59118         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59119         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59120         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59121         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59122         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59123         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59124         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59125         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59126         * elf/tst-unique2mod1.c: Likewise.
59127         * elf/tst-unique1mod2.c: Likewise.
59128         * elf/tst-unique1mod1.c: Likewise.
59129         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59130         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59131         Replace ASM_TYPE_DIRECTIVE with .type.
59132         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59133         * sysdeps/i386/sysdep.h: Likewise.
59134         * sysdeps/x86_64/sysdep.h: Likewise.
59135         * sysdeps/sh/sysdep.h: Likewise.
59136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59137         Do not define ASM_TYPE_DIRECTIVE.
59138         * sysdeps/powerpc/sysdep.h: Likewise.
59139         * sysdeps/powerpc/powerpc32/sysdep.h:
59140         Replace ASM_TYPE_DIRECTIVE with .type.
59141         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59142         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59143         * sysdeps/i386/fpu/e_powf.S: Likewise.
59144         * sysdeps/i386/fpu/e_expl.S: Likewise.
59145         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59146         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59147         * sysdeps/i386/fpu/e_pow.S: Likewise.
59148         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59149         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59150         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59151         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59152         * sysdeps/i386/fpu/e_log2.S: Likewise.
59153         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59154         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59155         * sysdeps/i386/fpu/e_powl.S: Likewise.
59156         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59157         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59158         * sysdeps/i386/fpu/e_logl.S: Likewise.
59159         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59160         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59161         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59162         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59163         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59164         * sysdeps/i386/fpu/e_log.S: Likewise.
59165         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59166         * sysdeps/i386/fpu/e_logf.S: Likewise.
59167         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59168         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59169         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59170         * sysdeps/i386/fpu/e_log10.S: Likewise.
59171         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59172         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59173         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59174         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59175         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59176         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59177         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59178         * sysdeps/i386/i686/strtok.S: Likewise.
59179         * sysdeps/i386/i386-mcount.S: Likewise.
59180         * sysdeps/i386/strtok.S: Likewise.
59181         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59182         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59183         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59184         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59185         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59186         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59187         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59188         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59189         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59190         * sysdeps/x86_64/_mcount.S: Likewise.
59191         * sysdeps/x86_64/strtok.S: Likewise.
59192         * sysdeps/sh/_mcount.S: Likewise.
59193
59194 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59195
59196         * libio/iofopen.c: Include <fcntl.h>.
59197         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59198         (_IO_fopen64, fopen64): Define as aliases.
59199         * libio/iofopen64.c: Include <fcntl.h>.
59200         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59201         Conditionalize body on this.
59202         * sysdeps/wordsize-64/iofopen.c: File removed.
59203         * sysdeps/wordsize-64/iofopen64.c: File removed.
59204
59205 2012-08-01  Marek Polacek  <polacek@redhat.com>
59206
59207         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59208         Use dlfcn directly instead of a variable.
59209         (binfmt-subdir): Do not define.
59210         (dlfcn): Likewise.
59211
59212 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59213
59214         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59215         Remove all definitions.
59216         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59217         <kernel-features.h>.
59218         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59219         (miss_F_GETOWN_EX): Remove all definitions.
59220         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59221         macro definition.
59222         [!__ASSUME_FCNTL64]: Remove conditional code.
59223         [__ASSUME_FCNTL64]: Make code unconditional.
59224         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59225         <kernel-features.h>.
59226         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59227         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59228         (lockf64) [__NR_fcntl64]: Make code unconditional.
59229         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59230
59231         * sysdeps/unix/sysv/linux/kernel-features.h
59232         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59233         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59234         Make code unconditional.
59235         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59236         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59238         [__NR_vfork]: Make code unconditional.
59239         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59240         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59242         [__NR_vfork]: Make code unconditional.
59243         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59244         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59245
59246 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59247
59248         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59249         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59250
59251         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59252         Define mkstemp64 as an alias.
59253         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59254         Define mkstemps64 as an alias.
59255         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59256         Define mkostemp64 as an alias.
59257         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59258         Define mkostemps64 as an alias.
59259         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59260         Conditionalize body on this.
59261         * misc/mkostemp64.c: Likewise.
59262         * misc/mkostemps64.c: Likewise.
59263         * misc/mkstemps64.c: Likewise.
59264         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59265         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59266         * sysdeps/wordsize-64/mkostemp.c: File removed.
59267         * sysdeps/wordsize-64/mkstemp.c: File removed.
59268         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59269         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59270         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59271         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59272
59273         [BZ #14138]
59274         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59275         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59276         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59277         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59278
59279         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59280         compat_symbol macros from <shlib-compat.h> rather than the underlying
59281         default_symbol_version and symbol_version macros, so that DEFAULT
59282         lines in shlib-versions are respected.
59283         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59284
59285 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59286
59287         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59288         Declare with warn_unused_result.
59289         (setgid, setregid, setegid, setresgid): Likewise.
59290         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59291         Likewise.
59292         * WUR-REPORT: Remove set*id functions.
59293
59294 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59295
59296         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59297
59298 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59299
59300         [BZ #10191]
59301         * include/sys/socket.h (__libc_accept, __libc_accept4):
59302         Add attribute_hidden.
59303         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59304
59305         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59306         use of PTR_MANGLE.
59307         * inet/getnetgrent_r.c (setup): Likewise.
59308
59309         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59310
59311 2012-07-31  David S. Miller  <davem@davemloft.net>
59312
59313         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59314
59315 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59316
59317         [BZ #13629]
59318         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59319         value between 1.0 and 2.0 and smaller part has absolute value less
59320         than 1.0.
59321         * math/s_clog10.c (__clog10): Likewise.
59322         * math/s_clog10f.c (__clog10f): Likewise.
59323         * math/s_clog10l.c (__clog10l): Likewise.
59324         * math/s_clogf.c (__clogf): Likewise.
59325         * math/s_clogl.c (__clogl): Likewise.
59326         * math/libm-test.inc (clog_test): Add more tests.
59327         (clog10_test): Likewise.
59328         * sysdeps/i386/fpu/libm-test-ulps: Update.
59329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59330
59331 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59332
59333         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59334         Exit with zero in case no suitable GID is found, and write a
59335         message to standard error.
59336
59337 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59338
59339         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59340         rather than to 1.
59341         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59342         (MAXPATHLEN): Removed.
59343         (NOGROUP, NODEV): New macros.
59344         (setbit, clrbit, isset, isclr): New macros.
59345         (howmany, roundup, powerof2): New macros.
59346         (DEV_BSIZE): New macro.
59347
59348         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59349         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59350
59351         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59352         definition on [!__NO_LONG_DOUBLE_MATH].
59353
59354         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59355         PTR_MANGLE and PTR_DEMANGLE.
59356
59357         * socket/accept4.c (accept4): Rename to __libc_accept4.
59358         Define accept4 as a weak alias.
59359
59360         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59361         on [_DIRENT_HAVE_D_TYPE].
59362         * io/ftw.c (ftw_dir): Likewise.
59363
59364         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59365
59366         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59367
59368         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59369         Use the BSD numbers rather than the arbitrary ones we had.
59370         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59371         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59372         (SIGXCPU, SIGXFSZ): New macros.
59373         (_NSIG): Now 32.
59374
59375         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59376         initializer on [_LIBC_REENTRANT].
59377
59378         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59379         definitions inside [_POSIX_MAPPED_FILES].
59380
59381         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59382
59383         * dirent/opendir.c: Include <fcntl.h>.
59384
59385         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59386         (__libc_getspecific): Likewise.
59387         (__libc_key_create): Likewise.
59388
59389         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59390         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59391         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59392         (tmpfile64): Define as alias.
59393         * sysdeps/wordsize-64/tmpfile.c: File removed.
59394         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59395         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59396         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59397
59398         * stdio-common/vfscanf.c: Include <stdbool.h>.
59399         * nss/makedb.c: Likewise.
59400         * stdio-common/_i18n_number.h: Likewise.
59401         * argp/argp-help.c: Likewise.
59402         * posix/wordexp.c: Likewise.
59403         * sysdeps/posix/spawni.c: Likewise.
59404         * nss/nss_files/files-initgroups.c: Likewise.
59405         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59406         * nss/nss_files/files-initgroups.c: Likewise.
59407         * nss/nss_db/db-netgrp.c: Likewise.
59408         * nss/nss_db/db-initgroups.c: Likewise.
59409         * io/fchmodat.c: Include <sys/stat.h>.
59410
59411         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59412         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59413
59414         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59415         [HAVE_MMAP].
59416
59417         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59418         Add multiple inclusion protection.
59419
59420 2012-07-27  David S. Miller  <davem@davemloft.net>
59421
59422         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59423
59424 2012-07-27  Gary Benson  <gbenson@redhat.com>
59425
59426         [BZ #14298]
59427         * elf/rtld.c: Include <stap-probe.h>.
59428         (dl_main): Added static probes "init_start" and "init_complete".
59429         * elf/dl-load.c: Include <stap-probe.h>.
59430         (lose): Take new parameter "nsid".
59431         Added static probe "map_failed".
59432         (_dl_map_object_from_fd): Pass namespace id to lose.
59433         Added static probe "map_start".
59434         (open_verify): Pass namespace id to lose.
59435         * elf/dl-open.c: Include <stap-probe.h>.
59436         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59437         and "reloc_complete".
59438         * elf/dl-close.c: Include <stap-probe.h>.
59439         (_dl_close_worker): Added static probes "unmap_start" and
59440         "unmap_complete".
59441         * elf/rtld-debugger-interface.txt: New file documenting the above.
59442
59443 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59444
59445         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59446         rather than a string variable.
59447         * sunrpc/rpc_main.c (h_output): Likewise.
59448         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59449
59450 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59451
59452         * inet/check_native.c: New file.
59453
59454 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59455
59456         [BZ #13629]
59457         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59458         if larger part has absolute value 1.0.
59459         * math/s_clog10.c (__clog10): Likewise.
59460         * math/s_clog10f.c (__clog10f): Likewise.
59461         * math/s_clog10l.c (__clog10l): Likewise.
59462         * math/s_clogf.c (__clogf): Likewise.
59463         * math/s_clogl.c (__clogl): Likewise.
59464         * math/libm-test.inc (clog_test): Add more tests.
59465         (clog10_test): Likewise.
59466         * sysdeps/i386/fpu/libm-test-ulps: Update.
59467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59468
59469         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59470         (pltexit): Likewise.
59471         (La_regs): Likewise.
59472         (La_retval): Likewise.
59473         (int_retval): Likewise.
59474         Update #error for removed macros to refer only to definitions in
59475         tst-audit.h.
59476         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59477         macro.
59478         (pltexit): Likewise.
59479         (La_regs): Likewise.
59480         (La_retval): Likewise.
59481         (int_retval): Likewise.
59482         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59483         macro.
59484         (pltexit): Likewise.
59485         (La_regs): Likewise.
59486         (La_retval): Likewise.
59487         (int_retval): Likewise.
59488         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59489         macro.
59490         (pltexit): Likewise.
59491         (La_regs): Likewise.
59492         (La_retval): Likewise.
59493         (int_retval): Likewise.
59494         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59495         macro.
59496         (pltexit): Likewise.
59497         (La_regs): Likewise.
59498         (La_retval): Likewise.
59499         (int_retval): Likewise.
59500         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59501         macro.
59502         (pltexit): Likewise.
59503         (La_regs): Likewise.
59504         (La_retval): Likewise.
59505         (int_retval): Likewise.
59506         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59507         macro.
59508         (pltexit): Likewise.
59509         (La_regs): Likewise.
59510         (La_retval): Likewise.
59511         (int_retval): Likewise.
59512         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59513         macro definitions in tst-audit.h.
59514         * sysdeps/i386/tst-audit.h: New file.
59515         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59516         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59517         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59518         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59519         * sysdeps/sh/tst-audit.h: Likewise.
59520         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59521         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59522         * sysdeps/x86_64/tst-audit.h: Likewise.
59523
59524 2012-07-26  Andreas Jaeger  <aj@suse.de>
59525
59526         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59527         ptrace.
59528
59529         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59530         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59531         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59532         PTRACE_O_MASK.
59533         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59534         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59535         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59536
59537         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59538         value.
59539
59540         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59541         _sigsys.
59542         (si_call_addr, si_syscall, si_arch): Define new macro.
59543         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59544         _sigsys.
59545         (si_call_addr, si_syscall, si_arch): Define new marcro.
59546         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59547         _sigsys.
59548         (si_call_addr, si_syscall, si_arch): Define new macro.
59549         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59550         _sigsys.
59551         (si_call_addr, si_syscall, si_arch): Define new macro.
59552
59553 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59554
59555         [BZ #13717]
59556         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59557         Change to 2.4.21 where previously 2.4.1.
59558         * sysdeps/unix/sysv/linux/configure: Regenerated.
59559         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59560         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59561         Linux kernel version.
59562         (__ASSUME_STD_AUXV): Remove.
59563         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59564         kernel version.
59565         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59566         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59567         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59568         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59569         (__ASSUME_NETLINK_SUPPORT): Likewise.
59570         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59571         (__no_netlink_support): Remove conditional definition.
59572         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59573         Remove.
59574         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59575         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59576         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59577         (if_nameindex_ioctl): Remove.
59578         (if_nameindex_netlink): Do not handle __no_netlink_support.
59579         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59580         code.
59581         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59582         Remove conditional code.
59583         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59584         code.
59585         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59586         unconditional.
59587         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59588         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59589         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59590         Remove.
59591         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59592         [!__ASSUME_STD_AUXV]: Remove conditional code.
59593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59594         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59595         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59597         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59598         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59599         code.
59600         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59602         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59603         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59604         conditional code.
59605         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59607         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59608         code.
59609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59610         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59611         conditional code.
59612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59613         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59614         code unconditional.
59615         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59616         conditional code.
59617         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59618         unconditional.
59619         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59620         conditional code.
59621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59622         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59623         unconditional.
59624         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59625         conditional code.
59626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59627         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59628         code unconditional.
59629         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59630         conditional code.
59631         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59632         unconditional.
59633         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59634         conditional code.
59635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59636         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59637         code unconditional.
59638         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59639         conditional code.
59640         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59641         unconditional.
59642         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59643         conditional code.
59644
59645 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59646
59647         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59648         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59649         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59650         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59651         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59652         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59653         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59654         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59655         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59656         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59657         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59658         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59659         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59660         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59661         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59662         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59663         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59664         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59665         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59667         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59668         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59669         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59670
59671 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59672
59673         * Versions.def: Add GLIBC_2.17.
59674         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59675         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59676         Introduce __libc_secure_getenv.
59677         * stdlib/Versions (2.17): Add secure_getenv
59678         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59679         * stdlib/secure-getenv.c: Rename __secure_getenv to
59680         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59681         symbol __secure_getenv for GLIBC_2.0.
59682         * stdlib/tst-secure-getenv.c: New.
59683         * stdlib/Makefile (tests): Add testcase.
59684         * manual/startup.texi (Environment Access): Document
59685         secure_getenv.
59686         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59687         __libc_secure_getenv.
59688         * inet/ruserpass.c (ruserpass): Likewise.
59689         * malloc/mtrace.c (mtrace): Likewise.
59690         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59691         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59692         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59693         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59694         HAVE_SECURE_GETENV.
59695         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59696         __secure_getenv to __libc_secure_getenv.
59697         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59699         Likewise.
59700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59701         Likewise.
59702         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59703         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59704         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59705         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59706         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59707         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59709
59710 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59711
59712         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59713         (struct La_i86_retval): Likewise.
59714         (struct La_x86_64_regs): Likewise.
59715         (struct La_x86_64_retval): Likewise.
59716         (struct La_x32_regs): Likewise.
59717         (struct La_x32_retval): Likewise.
59718         (struct La_ppc32_regs): Likewise.
59719         (struct La_ppc32_retval): Likewise.
59720         (struct La_ppc64_regs): Likewise.
59721         (struct La_ppc64_retval): Likewise.
59722         (struct La_sh_regs): Likewise.
59723         (struct La_sh_retval): Likewise.
59724         (struct La_s390_32_regs): Likewise.
59725         (struct La_s390_32_retval): Likewise.
59726         (struct La_s390_64_regs): Likewise.
59727         (struct La_s390_64_retval): Likewise.
59728         (struct La_sparc32_regs): Likewise.
59729         (struct La_sparc32_retval): Likewise.
59730         (struct La_sparc64_regs): Likewise.
59731         (struct La_sparc64_retval): Likewise.
59732         (struct audit_ifaces): Remove architecture-specific pltenter and
59733         pltexit members.
59734         * sysdeps/i386/ldsodefs.h: New file.
59735         * sysdeps/powerpc/ldsodefs.h: Likewise.
59736         * sysdeps/s390/ldsodefs.h: Likewise.
59737         * sysdeps/sh/ldsodefs.h: Likewise.
59738         * sysdeps/sparc/ldsodefs.h: Likewise.
59739         * sysdeps/x86_64/ldsodefs.h: Likewise.
59740
59741 2012-07-25  Marek Polacek  <polacek@redhat.com>
59742
59743         [BZ #6808]
59744         * math/libm-test.inc (yn_test): Add another test.
59745         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59746         to ERANGE when the result is +-Inf.
59747         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59748         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59749         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59750         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59751
59752 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59753
59754         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59755         equal to 0.
59756         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59757         clock_t.
59758         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59759
59760 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59761
59762         * configure.in <sysdeps resolving>: Correct printing
59763         Implies_before.
59764         * configure: Regenerate.
59765
59766 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59767
59768         * math/w_ilogb.c: Include <limits.h>.
59769         * math/w_ilogbl.c: Likewise.
59770
59771 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59772
59773         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59774         va_copy.  Document allowing for unavailable va_copy only as
59775         pre-C99 compatibility.
59776         * manual/string.texi (Copying and Concatenation): Use va_copy
59777         instead of __va_copy in concat example.
59778
59779 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59780
59781         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59782         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59783         it if not null.
59784
59785         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59786         with O_NOLINK passed to __file_name_lookup.
59787
59788         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59789         with O_NOLINK passed to __file_name_lookup.
59790
59791         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59792         negative N or less than NGIDS.
59793
59794         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59795         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59796         enough.  Use memcpy instead of strncpy.
59797
59798 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59799
59800         * elf/Makefile (check-data): Remove.
59801         (localplt.data): New vpath directive.
59802         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59803         instead of $(check-data).
59804         * scripts/data/localplt-generic.data: Move to ...
59805         * sysdeps/generic/localplt.data: ... here.
59806         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59807         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59808         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59810         ... here.
59811         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59813         ... here.
59814         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59816         ... here.
59817         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59819         ... here.
59820         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59821         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59822         ... here.
59823         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59825         ... here.
59826
59827 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59828
59829         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59830         PPC32 and PPC64 files.
59831         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59832         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59833
59834 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59835
59836         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59837         __makecontext_ret to ...
59838         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59839         ... here and call exit if uc_link is NULL.  New file.
59840         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59841         __makecontext_ret.S.
59842         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59843         __makecontext_ret to ...
59844         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59845         ... here and call exit if uc_link is NULL.  New file.
59846         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59847         __makecontext_ret.S.
59848
59849 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59850
59851         * elf/elf.h (R_390_IRELATIVE): New definition.
59852         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59853         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59854         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59855         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59856         (elf_machine_lazy_rel): Likewise.
59857         * sysdeps/s390/dl-irel.h: New file.
59858         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59859         * sysdeps/s390/s390-64/memset.S: New asm code.
59860         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59861         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59862         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59863         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59864         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59865         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59866         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59867         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59868         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59869         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59870         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59871         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59872         * sysdeps/s390/s390-32/memset.S: New asm code.
59873         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59874
59875 2012-07-17  Marek Polacek  <polacek@redhat.com>
59876
59877         [BZ #14349]
59878         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59879         * sysdeps/s390/s390-64/configure.in: Likewise.
59880         * sysdeps/sparc/configure.in: Likewise.
59881         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59882         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59883         * sysdeps/i386/configure.in: Likewise.
59884         * sysdeps/x86_64/configure.in: Likewise.
59885         * sysdeps/sh/configure.in: Likewise.
59886         * sysdeps/s390/s390-32/configure: Regenerated.
59887         * sysdeps/s390/s390-64/configure: Likewise.
59888         * sysdeps/x86_64/configure: Likewise.
59889         * sysdeps/sh/configure: Likewise.
59890         * sysdeps/powerpc/powerpc64/configure: Likewise.
59891         * sysdeps/powerpc/powerpc32/configure: Likewise.
59892         * sysdeps/sparc/configure: Likwise.
59893         * sysdeps/i386/configure: Likewise.
59894
59895         * elf/dl-open.c: Comment fixes.
59896
59897 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59898
59899         * Makefile [CXX] (check-data): Remove.
59900         [CXX] (c++-types.data): New vpath directive.
59901         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59902         vpath.  Do not allow for C++ type data being missing.
59903         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59904         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59905         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59906         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59907         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59908         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59909         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59911         ... here.
59912         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59914         ... here.
59915         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59917         ... here.
59918         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59920         ... here.
59921         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59923         ... here.
59924         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59925         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59926         ... here.
59927         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59928         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59929         ... here.
59930         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59932
59933         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59934         definitions to architecture-specific files.
59935         (TLS_IE): Likewise.
59936         (TLS_LD): Likewise.
59937         (TLS_GD): Likewise.
59938         * sysdeps/i386/tls-macros.h: New file.
59939         * sysdeps/powerpc/tls-macros.h: Likewise.
59940         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59941         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59942         * sysdeps/sh/tls-macros.h: Likewise.
59943         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59944         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59945         * sysdeps/x86_64/tls-macros.h: Likewise.
59946
59947 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59948
59949         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59950         zero value for regular exit case.
59951
59952         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59953         (__start_context): Preserve zero value for regular exit case.
59954
59955 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59956             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59957
59958         * manual/setjmp.texi (setcontext): Clarify normal process
59959         termination when uc_link is the null pointer.
59960         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59961         exit call.
59962
59963 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59964
59965         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59966         preprocessor.  Test for each exception mask separately.
59967
59968 2012-07-16  Andreas Jaeger  <aj@suse.de>
59969
59970         * po/ru.po: Update from translation team.
59971
59972 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59973
59974         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59975         equal to 0.
59976         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59977         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59978         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59979         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59980         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59981
59982 2012-07-13  Andreas Jaeger  <aj@suse.de>
59983
59984         * po/fr.po: Update from translation team.
59985
59986 2012-07-12  Marek Polacek  <polacek@redhat.com>
59987
59988         [BZ #14173]
59989         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59990         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59991         loop condition.
59992
59993 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59994
59995         [BZ #13717]
59996         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59997         Change to 2.4.1 where previously 2.4.0.
59998         * sysdeps/unix/sysv/linux/configure: Regenerated.
59999         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60000         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60001         version.
60002         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60003         (__ASSUME_AT_CLKTCK): Remove.
60004         (__ASSUME_AT_PAGESIZE): Likewise.
60005         (__ASSUME_AT_XID): Likewise.
60006         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60007         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60008         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60009         unconditionally.
60010         (HAVE_AUX_PAGESIZE): Likewise.
60011         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60012         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60013         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60014
60015 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60016
60017         [BZ #14307]
60018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60019         the temporary buffer used to invoke __gethostbyname2_r,
60020         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60021         host_data / struct gaih_addrtuple.
60022         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60023         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60024         header file nss/nsswitch.h.
60025         * nss/nsswitch.h (global scope): Add definition of implementation
60026         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60027         resolv/nss_dns/dns-host.c).
60028
60029 2012-07-11  Andreas Jaeger  <aj@suse.de>
60030
60031         * po/fr.po: Update from translation team.
60032
60033         * po/sv.po: Update from translation team
60034         * po/fr.po: Another update from translation team.
60035
60036 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60037
60038         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60039         for subnormals or multiply small sinh result by itself.
60040         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60042
60043 2012-07-11  David S. Miller  <davem@davemloft.net>
60044
60045         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60046
60047 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60048
60049         [BZ #14347]
60050         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60051         (INTERNAL_MARK): Shift it here.
60052
60053 2012-07-10  Marek Polacek  <polacek@redhat.com>
60054
60055         [BZ #14151]
60056         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60057         libc_cv_asm_global_directive with .globl.
60058         * configure: Regenerated.
60059         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60060         with .globl.
60061         * sysdeps/i386/configure: Regenerated.
60062         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60063         with .globl.
60064         * sysdeps/x86_64/configure: Regenerated.
60065         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60066         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60067         * elf/tst-unique2mod2.c: Likewise.
60068         * elf/tst-unique2mod1.c: Likewise.
60069         * elf/tst-unique1mod2.c: Likewise.
60070         * elf/tst-unique1mod1.c: Likewise.
60071         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60072         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60073         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60074         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60075         * sysdeps/mach/sysdep.h: Likewise.
60076         * sysdeps/i386/sysdep.h: Likewise.
60077         * sysdeps/i386/i386-mcount.S: Likewise.
60078         * sysdeps/x86_64/_mcount.S: Likewise.
60079         * sysdeps/x86_64/sysdep.h: Likewise.
60080         * sysdeps/sh/_mcount.S: Likewise.
60081         * sysdeps/sh/sysdep.h: Likewise.
60082         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60083         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60084         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60085         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60086         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60087         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60088         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60089         * locale/localeinfo.h: Likewise.
60090         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60091         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60092
60093 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60094
60095         [BZ #14336]
60096         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60097         system".
60098         * manual/message.texi (The Uniforum approach): Likewise.
60099         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60100         (glibc iconv Implementation): Likewise.
60101
60102 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60103
60104         [BZ #14337]
60105         * math/s_clog.c (__clog): Avoid scaling a value down where that
60106         could result in underflow.
60107         * math/s_clog10.c (__clog10): Likewise.
60108         * math/s_clog10f.c (__clog10f): Likewise.
60109         * math/s_clog10l.c (__clog10l): Likewise.
60110         * math/s_clogf.c (__clogf): Likewise.
60111         * math/s_clogl.c (__clogl): Likewise.
60112         * math/libm-test.inc (clog_test): Add more tests.
60113         (clog10_test): Likewise.
60114         * sysdeps/i386/fpu/libm-test-ulps: Update.
60115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60116
60117 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60118
60119         [BZ #14283]
60120         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60121         by 7 not 8 to examine high bit of fractional part.
60122
60123         [BZ #14042]
60124         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60125         for call to __mcount_internal.
60126         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60127         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60128         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60129
60130 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60131
60132         [BZ #14154]
60133         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60134         approximation for values within 0x1p-13f of an odd multiple of
60135         pi/4.
60136         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60137         exception.  Add more tests.
60138         * sysdeps/i386/fpu/libm-test-ulps: Update.
60139
60140         [BZ #6778]
60141         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60142         inputs and return -1 for them.  Do not check for +Inf in case not
60143         reachable for +Inf.
60144         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60145         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60146         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60147         and return -1 for them.  Do not check for +Inf in case not
60148         reachable for +Inf.
60149         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60150         define.
60151         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60152         and return -1 for them.  Do not check for +Inf in case not
60153         reachable for +Inf.
60154         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60155         spurious underflow.
60156         * sysdeps/i386/fpu/libm-test-ulps: Update.
60157         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60158
60159 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60160
60161         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60162
60163 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60164
60165         [BZ #14157]
60166         [BZ #14331]
60167         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60168         could result in spurious underflow.  Scale down values above
60169         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60170         * math/s_csqrtf.c (__csqrtf): Likewise.
60171         * math/s_csqrtl.c (__csqrtl): Likewise.
60172         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60173         spurious underflow.
60174         * sysdeps/i386/fpu/libm-test-ulps: Update.
60175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60176
60177 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60178
60179         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60180         xopen-msg.sed.
60181         * catgets/xopen-msg.awk: New file.
60182         * catgets/xopen-msg.sed: Removed.
60183
60184         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60185         po2text.sed.
60186         * intl/po2test.awk: New file.
60187         * intl/po2test.sed: Removed.
60188
60189 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60190
60191         [BZ #14328]
60192         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60193         or multiply small sinh result by itself.
60194         * math/s_ctanf.c (__ctanf): Likewise.
60195         * math/s_ctanh.c (__ctanh): Likewise.
60196         * math/s_ctanhf.c (__ctanhf): Likewise.
60197         * math/s_ctanhl.c (__ctanhl): Likewise.
60198         * math/s_ctanl.c (__ctanl): Likewise.
60199         * math/libm-test.inc (ctan_test_tonearest): New function.
60200         (ctan_test_towardzero): Likewise.
60201         (ctan_test_downward): Likewise.
60202         (ctan_test_upward): Likewise.
60203         (ctanh_test_tonearest): Likewise.
60204         (ctanh_test_towardzero): Likewise.
60205         (ctanh_test_downward): Likewise.
60206         (ctanh_test_upward): Likewise.
60207         (main): Call these new functions.
60208         * sysdeps/i386/fpu/libm-test-ulps: Update.
60209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60210
60211 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60212
60213         * .gitignore: Delete /ports entry.
60214
60215 2012-07-03  Andreas Jaeger  <aj@suse.de>
60216
60217         * po/bg.po: Update from translation team.
60218         * po/cs.po: Likewise.
60219         * po/de.po: Likewise.
60220         * po/hr.po: Likewise.
60221         * po/nl.pl: Likewise.
60222         * po/pl.po: Likewise.
60223         * po/vi.po: Likewise.
60224
60225 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60226
60227         * Makeconfig [!+link] (+link-before-libc): New variable.
60228         [!+link] (+link-after-libc): Likewise.
60229         [!+link] (+link-tests): Likewise.
60230         [!+link] (+link): Define in terms of $(+link-before-libc) and
60231         $(+link-after-libc).
60232         [!+link-static] (+link-static-before-libc): New variable.
60233         [!+link-static] (+link-static-after-libc): Likewise.
60234         [!+link-static] (+link-static-tests): Likewise.
60235         [!+link-static] (+link-static): Define in terms of
60236         $(+link-static-before-libc) and $(+link-static-after-libc).
60237         [build-shared] (link-libc-before-gnulib): New variable.
60238         [build-shared] (link-libc-tests): Likewise.
60239         [build-shared] (link-libc): Define in terms of
60240         $(link-libc-before-gnulib).
60241         [!build-shared] (link-libc-tests): New variable.
60242         (link-libc-static-tests): New variable.
60243         [!gnulib] (gnulib-arch): New variable.
60244         [!gnulib] (gnulib-tests): Likewise.
60245         [!gnulib] (static-gnulib-arch): Likewise.
60246         [!gnulib] (static-gnulib-tests): Likewise.
60247         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60248         Define with "=" instead of ":=".
60249         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60250         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60251         * Rules (binaries-all-notests): New variable.
60252         (binaries-all-tests): Likewise.
60253         (binaries-static-notests): Likewise.
60254         (binaries-static-tests): Likewise.
60255         (binaries-all): Define using $(binaries-all-notests) and
60256         $(binaries-all-tests).
60257         (binaries-static): Define using $(binaries-static-notests) and
60258         $(binaries-static-tests).
60259         (binaries-shared-tests): New variable.
60260         (binaries-shared-notests): Likewise.
60261         (binaries-shared): Remove variable.
60262         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60263         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60264         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60265         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60266         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60267         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60268         * elf/Makefile (sln-modules): New variable.
60269         (extra-objs): Add $(sln-modules:=.o).
60270         (ldconfig-modules): Add static-stubs.
60271         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60272         * elf/static-stubs.c: New file.
60273
60274         [BZ #14283]
60275         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60276         by 7 not 8 to examine high bit of fractional part.  Use volatile
60277         variables when splitting into final array of floats if
60278         __FLT_EVAL_METHOD__ != 0.
60279         * math/libm-test.inc (cos_test): Add another test.
60280         (sin_test): Likewise.
60281         * sysdeps/i386/fpu/libm-test-ulps: Update.
60282
60283         [BZ #14273]
60284         * math/libm-test.inc (cosh_test): Add more tests.
60285
60286         * version.h (RELEASE): Set to "development".
60287         (VERSION): Set to "2.16.90".
60288
60289 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60290
60291         * NEWS: Update copyright. Remove last-updated date.
60292         Mention math library bug fixes and timezone data changes.
60293         * README: Mention GNU/Hurd, x32, and HPPA support status.
60294
60295 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60296
60297         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60298
60299 2012-06-27  Andreas Jaeger  <aj@suse.de>
60300
60301         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60302
60303 2012-06-25  Andreas Jaeger  <aj@suse.de>
60304
60305         * sysdeps/s390/fpu/libm-test-ulps: Update.
60306
60307 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60308             Thomas Schwinge  <thomas@codesourcery.com>
60309
60310         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60311         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60312         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60313         fanotify_mark.
60314
60315 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60316
60317         * sysdeps/mach/start.c: Remove file.
60318         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60319         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60320         * sysdeps/sh/init-first.c: Likewise.
60321
60322         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60323         registers for frame unwinding purposes, add CFI directives.
60324         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60325         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60326         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60327         Likewise.
60328
60329         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60330         __fortify_fail returning.
60331         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60332
60333         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60334         sysdeps/sh/____longjmp_chk.S.
60335         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60336         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60337         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60338         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60339
60340         * sysdeps/sh/abort-instr.h: New file.
60341         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60342         process in case exit returns.
60343
60344         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60345         initialize the GOT register before use.
60346
60347         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60348         calculation of ARGC > 4.
60349
60350         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60351         meaningful names to some local labels.
60352
60353 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60354             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60355
60356         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60357         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60358         (__arch_compare_and_exchange_val_16_acq): Likewise.
60359         (__arch_compare_and_exchange_val_32_acq): Likewise.
60360         (atomic_exchange_and_add): Fix gUSA sequence.
60361         (atomic_add): Likewise.
60362         (atomic_add_negative): Likewise.
60363         (atomic_add_zero): Likewise.
60364         (atomic_bit_test_set): Likewise.
60365
60366 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60367
60368         [BZ #13579]
60369         * include/link.h (struct link_map): Add l_free_initfini.
60370         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60371         l_initfini.
60372         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60373         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60374         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60375         set.
60376
60377 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60378
60379         * configure.in: Use AC_LANG_SOURCE.
60380         * configure: Regenerate.
60381
60382 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60383
60384         * configure.in (libc_cv_localstatedir): New substituted variable.
60385         * configure: Regenerated.
60386         * config.make.in (localstatedir): New variable, substituted from
60387         libc_cv_localstatedir.
60388         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60389         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60390         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60391         * sysdeps/gnu/configure: Regenerated.
60392
60393 2012-06-21  Jeff Law  <law@redhat.com>
60394
60395         [BZ #14277]
60396         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60397         free.  Simplify list management for _LIBC case.
60398
60399 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60400
60401         [BZ #14273]
60402         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60403         Clear sign bit of 64-bit integer value before comparing against
60404         overflow value.
60405
60406         * sysdeps/mach/configure: Regenerated.
60407
60408 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60409
60410         [BZ #14278]
60411         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60412
60413 2012-06-21  Jeff Law  <law@redhat.com>
60414
60415         [BZ #13882]
60416         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60417         uint16_t for elements in the "seen" array to avoid char overflows.
60418         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60419         * elf/dl-open.c (dl_open_worker): Likewise.
60420
60421 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60422
60423         * scripts/list-sources.sh: Scan PORTS for translations.
60424         * po/libc.pot: Regenerated.
60425
60426 2012-06-21  Andreas Jaeger  <aj@suse.de>
60427
60428         [BZ #12194]
60429         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60430         warning.
60431         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60432         * bits/byteswap-16.h (__bswap_16): Likewise.
60433         * bits/byteswap.h (__bswap_constant_16): Likewise.
60434
60435 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60436
60437         [BZ #14117]
60438         * sysdeps/i386/fpu_control.h: Removed.
60439         * sysdeps/x86_64/fpu_control.h: Moved to ...
60440         * sysdeps/x86/fpu_control.h: Here.
60441
60442         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60443         (_FPU_SETCW): Likewise.
60444
60445 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60446
60447         [BZ #14117]
60448         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60449         * sysdeps/x86/fpu/bits/mathinline.h: This.
60450         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60451
60452         [BZ #14050]
60453         [BZ #14117]
60454         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60455         functions if __x86_64__ is defined.
60456
60457 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60458
60459         * string/endian.h: Add !__ASSEMBLER__ condition for including
60460         conversion interfaces.
60461
60462 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60463
60464         [BZ #14241]
60465         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60466         of ABS(x) in calculating zero to negative powers other than odd
60467         integers.
60468         * math/libm-test.inc (pow_test): Add more tests.
60469
60470 2012-06-15  Andreas Jaeger  <aj@suse.de>
60471
60472         * manual/contrib.texi (Contributors): Update entry of Liubov
60473         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60474         Machado Filho.
60475
60476 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60477
60478         * string/string.h: Add __wur to GNU version of strerror_r.
60479
60480 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60481
60482         [BZ #14229]
60483         * string/Makefile (tests): Add tst-strtok_r.
60484         * string/tst-strtok_r.c: New file.
60485         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60486         RAX_LP/RDX_LP on SAVE_PTR.
60487
60488 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60489
60490         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60491
60492 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60493
60494         * libm_test.inc (csqrt_test): Allow more spurious underflow
60495         exceptions.
60496         (j0_test): Likewise.
60497         (j1_test): Likewise.
60498         (y0_test): Likewise.
60499         (y1_test): Likewise.
60500
60501 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60502
60503         * po/Makefile (libc.pot): Use UTF-8 charset.
60504
60505 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60506
60507         [BZ #14210]
60508         Suppress sign-conversion warning from FD_SET.
60509         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60510         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60511         not unsigned long int.
60512         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60513
60514 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60515
60516         [BZ #14050]
60517         [BZ #14117]
60518         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60519         __extern_always_inline instead of __extern_inline.
60520         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60521         (__signbit): Likewise.
60522         (__signbitl): Support C++ namespace.
60523         (lrintf): New inline function.
60524         (lrint): Likewise.
60525         (llrintf): Likewise.
60526         (llrint): Likewise.
60527         (fmaxf): Likewise.
60528         (fmax): Likewise.
60529         (fminf): Likewise.
60530         (fmin): Likewise.
60531         (rint): Likewise.
60532         (rintf): Likewise.
60533         (ceil): Likewise.
60534         (ceilf): Likewise.
60535         (floor): Likewise.
60536         (floorf): Likewise.
60537         (nearbyint): Likewise.
60538         (nearbyintf): Likewise.
60539
60540 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60541
60542         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60543         non-default versions.
60544
60545 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60546
60547         [BZ #14218]
60548         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60549
60550 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60551
60552         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60553         (FE_UPWARD, FE_DOWNWARD): Don't define.
60554         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60555         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60556
60557         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60558         reading it.
60559         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60560         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60561
60562 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60563
60564         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60565         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60566         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60567         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60568
60569 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60570
60571         [BZ #14117]
60572         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60573         * sysdeps/i386/fpu/Implies: New file.
60574         * sysdeps/x86_64/fpu/Implies: Likewise.
60575         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60576         * sysdeps/x86/fpu/bits/fenv.h: This.
60577
60578         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60579         __SSE_MATH__.
60580
60581 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60582
60583         [BZ #14134]
60584         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60585         character 0xffff that matches the last element of the
60586         conversion table.
60587
60588 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60589
60590         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60591         fmodl commit.
60592
60593 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60594
60595         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60596         values higher than 25.6283.
60597
60598 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60599
60600         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60601         subnormal exponent extraction and add some __builtin_expect.
60602         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60603         Fix for subnormal mantissa calculation.
60604
60605 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60606
60607         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60608         cpu2 is -1 and errno is not ENOSYS.
60609
60610 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60611
60612         [BZ #14117]
60613         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60614         * sysdeps/x86/bits/string.h: This.
60615         * sysdeps/x86_64/bits/string.h: Removed.
60616
60617         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60618         if not compiling for x86-64, but compiling for >= i486.
60619
60620         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60621         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60622
60623         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60624         New macro from Linux kernel 3.4.0.
60625         (FP_XSTATE_MAGIC2): Likewise.
60626         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60627         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60628         (struct _fpx_sw_bytes): New struct.
60629         (struct _xsave_hdr): Likewise.
60630         (struct _ymmh_state): Likewise.
60631         (struct _xstate): Likewise.
60632
60633         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60634         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60635         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60636         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60637         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60638         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60639
60640         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60641         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60642         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60643         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60644         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60645         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60646
60647 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60648
60649         [BZ #13743]
60650         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60651         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60652         (sysdep_headers): Include sys/platform/ppc.h.
60653         * sysdeps/powerpc/test-gettimebase.c: Test for
60654         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60655         * manual/Makefile (appendices): Include platform.texi.
60656         * manual/contrib.texi (Contributors): Update @node pointers.
60657         * manual/maint.texi (Maintenance): Likewise.
60658         (Platform): New node.
60659         * manual/platform.texi: New file.  Document the new features.
60660
60661 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60662             Jakub Jelinek  <jakub@redhat.com>
60663
60664         [BZ #14188]
60665         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60666         where __builtin_expect is unavailable.
60667
60668 2012-06-03  David S. Miller  <davem@davemloft.net>
60669
60670         * stdlib/longlong.h: Updated from GCC.
60671
60672 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60673
60674         [BZ #14042]
60675         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60676         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60677         __mcount_internal.
60678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60679         (GLIBC_2.16): Likewise.
60680
60681 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60682
60683         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60684
60685 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60686
60687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60688         (default-abi): New variable.
60689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60690         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60691         variable.
60692         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60693         Likewise.
60694         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60695         Likewise.
60696         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60697         Likewise.
60698
60699         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60700         definition.  Document in comment.
60701
60702 2012-06-01  David S. Miller  <davem@davemloft.net>
60703
60704         * stdlib/longlong.h: Updated from GCC.
60705
60706 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60707
60708         [BZ #14117]
60709         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60710         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60711         sys/debugreg.h sys/io.h here.
60712         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60713         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60714         sys/io.h.
60715         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60716         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60717         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60718         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60719         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60720         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60721
60722         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60723         Define only if __x86_64__ is defined.
60724
60725 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60726
60727         [BZ #14048]
60728         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60729         Use int64_t for variable i.
60730         * math/libm-test.inc (fmod_test): Add more tests.
60731
60732         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60733         z computation is not scheduled after fetestexcept.
60734         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60735         Use math_force_eval instead of asm to ensure calculation scheduled
60736         before exception test.
60737         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60738         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60739
60740 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60741
60742         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60743         computation is not scheduled after fetestexcept.
60744
60745 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60746
60747         [BZ #14117]
60748         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60749         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60750
60751 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60752
60753         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60754         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60755
60756 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60757
60758         [BZ #14117]
60759         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60760         <bits/wordsize.h>.
60761         (__WCHAR_MIN): Support __WORDSIZE == 64.
60762         (__WCHAR_MAX): Likewise.
60763
60764         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60765         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60766
60767         [BZ #14183]
60768         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60769         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60770
60771         [BZ #14117]
60772         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60773         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60774
60775         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60776         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60777
60778         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60779         Defined to 1 if __x86_64__ isn't defined.
60780         (_STAT_VER_LINUX_OLD): New.
60781         (st_atime): Remove duplicate.
60782         (st_mtime): Likewise.
60783         (st_ctime): Likewise.
60784
60785 2012-05-31  David S. Miller  <davem@davemloft.net>
60786
60787         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60788         entries.
60789
60790 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60791
60792         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60793         gen-libm-test.pl.
60794
60795         [BZ #14132]
60796         * elf/dl-reloc.c: Include <_itoa.h>.
60797         (_dl_reloc_bad_type): Remove use of INTUSE.
60798         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60799         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60800         * stdio-common/psiginfo.c (psiginfo): Likewise.
60801         * stdio-common/psignal.c (psignal): Likewise.
60802         * string/strsignal.c (strsignal): Likewise.
60803         * include/signal.h (_sys_siglist): Declare hidden proto.
60804         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60805         INTVARDEF with libc_hidden_data_def.
60806         * stdio-common/itoa-udigits.c: Likewise.
60807         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60808         (_itoa_lower_digits_internal): Remove declaration.
60809         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60810         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60811         (_sys_sigabbrev_internal): Remove aliases.
60812         (_sys_siglist): Define hidden alias.
60813
60814 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60815
60816         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60817         bits/sysctl.h.
60818
60819 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60820
60821         [BZ #14117]
60822         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60823         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60824
60825         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60826         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60827         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60828         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60829         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60830         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60831
60832         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60833         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60834         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60835
60836         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60837         with __addr.
60838         (insw): Likewise.
60839         (insl): Likewise.
60840         (outsb): Likewise.
60841         (outsw): Likewise.
60842         (outsl): Likewise.
60843
60844         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60845         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60846         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60847
60848         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60849         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60850         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60851         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60852         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60853         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60854
60855         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60856         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60857
60858         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60859         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60860
60861         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60862         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60863         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60864
60865         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60866         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60867         to ...
60868         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60869
60870         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60871         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60872         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60873
60874         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60875         for x86-64.
60876         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60877
60878 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60879
60880         * math/math.h (M_El): Use two more decimal places.
60881         (M_LOG2El): Likewise.
60882         (M_LOG10El): Likewise.
60883         (M_LN2l): Likewise.
60884         (M_LN10l): Likewise.
60885         (M_PIl): Likewise.
60886         (M_PI_2l): Likewise.
60887         (M_PI_4l): Likewise.
60888         (M_1_PIl): Likewise.
60889         (M_2_PIl): Likewise.
60890         (M_2_SQRTPIl): Likewise.
60891         (M_SQRT2l): Likewise.
60892         (M_SQRT1_2l): Likewise.
60893
60894 2012-05-31  David S. Miller  <davem@davemloft.net>
60895
60896         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60897         values between float registers.
60898         * sysdeps/sparc/sparc64/memset.S: Likewise.
60899         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60900
60901 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60902
60903         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60904         -D_FORTIFY_SOURCE=1.
60905         (CPPFLAGS-tst-longjmp_chk.c): Define.
60906         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60907         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60908         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60909         CFLAGS-tst-wchar-h.c.
60910
60911 2012-05-31  Marek Polacek  <polacek@redhat.com>
60912
60913         [BZ #14132]
60914         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60915         __endmntent_internal): Remove declaration.
60916         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60917         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60918         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60919
60920 2012-05-30  David S. Miller  <davem@davemloft.net>
60921
60922         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60923         (___Q_simulate_exceptions): Use real FP ops rather than writing
60924         into the %fsr.
60925         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60926         Likewise.
60927
60928 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60929
60930         [BZ #14117]
60931         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60932         * sysdeps/x86/bits/xtitypes.h: This.
60933
60934         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60935         * sysdeps/x86/bits/wordsize.h: This.
60936
60937         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60938         * sysdeps/x86/bits/huge_vall.h: This.
60939
60940         * sysdeps/i386/bits/select.h: Removed.
60941         * sysdeps/x86_64/bits/select.h: Renamed to ...
60942         * sysdeps/x86/bits/select.h: This.
60943
60944         * sysdeps/i386/bits/setjmp.h: Removed.
60945         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60946         * sysdeps/x86/bits/setjmp.h: This.
60947
60948         * sysdeps/i386/bits/mathdef.h: Removed.
60949         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60950         * sysdeps/x86/bits/mathdef.h: This.
60951
60952 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60953
60954         [BZ #14132]
60955         * include/sys/socket.h (__connect_internal)
60956         (__libc_sa_len_internal): Remove declaration.
60957         (__connect, __libc_sa_len): Declare hidden_proto.
60958         (SA_LEN): Remove use of INTUSE.
60959         * socket/connect.c: Add libc_hidden_def.
60960         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60961         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60962         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60963         alias.
60964         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60965         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60966         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60967         of adding _internal alias.
60968
60969 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60970
60971         [BZ #14117]
60972         * sysdeps/i386/bits/link.h: Removed.
60973         * sysdeps/i386/bits/linkmap.h: Likewise.
60974         * sysdeps/x86_64/bits/link.h: Renamed to ...
60975         * sysdeps/x86/bits/link.h: This.
60976         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60977         * sysdeps/x86/bits/linkmap.h: This.
60978
60979         * sysdeps/i386/bits/endian.h: Removed.
60980         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60981         * sysdeps/x86/bits/endian.h: This.
60982
60983         * sysdeps/i386/bits/byteswap.h: Removed.
60984         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60985         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60986         * sysdeps/x86/bits/byteswap.h: This.
60987         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60988         * sysdeps/x86/bits/byteswap-16.h: This.
60989         * sysdeps/i386/Implies: Add x86.
60990         * sysdeps/x86_64/Implies: Likewise.
60991
60992 2012-05-30  David S. Miller  <davem@davemloft.net>
60993
60994         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60995         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60996         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60997         (FP_TRAPPING_EXCEPTIONS): Define.
60998         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60999         (FP_TRAPPING_EXCEPTIONS): Define.
61000         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61001         subnormals only when inexact has been signalled or underflow
61002         exceptions are enabled.
61003         (_FP_PACK_CANONICAL): Likewise.
61004
61005 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61006
61007         [BZ #14183]
61008         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61009         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61010
61011 2012-05-30  Richard Henderson  <rth@twiddle.net>
61012
61013         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61014         with #ifndef NOT_IN_libc.
61015
61016         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61017         marked to avoid plt entry.
61018
61019 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61020
61021         [BZ #14112]
61022         * Makeconfig (default-abi): New macro.
61023         (abi-includes): Likewise.
61024         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61025         $(abi-$(default-abi)-lib-soname) for soname if defined.
61026         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61027         abi-variants.
61028         * Makefile (installed-stubs): Likewise.
61029         * include/stubs-biarch.h: Removed.
61030         * scripts/lib-names.awk: Only handle one library at a time.
61031         * scripts/soversions.awk: Remove WORDSIZE support.
61032         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61033         entries.
61034         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61035         Removed.
61036         (syscall-list-default-condition): Likewise.
61037         (syscall-list-default-condition): Likewise.
61038         (syscall-list-includes): Likewise.
61039         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61040         syscall-list-* with abi-*.  Handle undefined abi-variants.
61041         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61042         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61043         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61044         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61045         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61046         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61047         Removed.
61048         (syscall-list-32-options): Likewise.
61049         (syscall-list-32-condition): Likewise.
61050         (syscall-list-64-options): Likewise.
61051         (syscall-list-64-condition): Likewise.
61052         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61053         macro.
61054         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61055         Renamed to ...
61056         (abi-*): This.
61057         (abi-64-ld-soname): New macro.
61058         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61059         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61060         Renamed to ...
61061         (abi-*): This.
61062         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61063         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61064
61065 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61066
61067         * sysdeps/unix/sysv/linux/kernel-features.h
61068         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61069         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61070         include <kernel-features.h>.
61071         [!__NR_ftruncate64]: Remove conditional code.
61072         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61073         [__NR_ftruncate64]: Make code unconditional.
61074         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61075         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61076         include <kernel-features.h>.
61077         [!__NR_ftruncate64]: Remove conditional code.
61078         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61079         [__NR_ftruncate64]: Make code unconditional.
61080         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61082         include <kernel-features.h>.
61083         [!__NR_ftruncate64]: Remove conditional code.
61084         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61085         [__NR_ftruncate64]: Make code unconditional.
61086         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61088         include <kernel-features.h>.
61089         [!__NR_ftruncate64]: Remove conditional code.
61090         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61091         [__NR_ftruncate64]: Make code unconditional.
61092         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61093
61094         * configure.in (libc_cv_fpie): Weaken to a compile test using
61095         LIBC_TRY_CC_OPTION.
61096         * configure: Regenerated.
61097
61098 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61099
61100         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61101         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61102         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61104         Refreshed.
61105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61106         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61110         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61111         Refreshed.
61112
61113 2012-05-27  David S. Miller  <davem@davemloft.net>
61114
61115         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61116         (___Q_zero): New.
61117         (__Q_simulate_exceptions): Return void.  Change to simulate
61118         exceptions by writing into the %fsr.
61119         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61120         (__Qp_handle_exceptions): Likewise.
61121         (numbers): Delete.
61122         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61123         __Qp_handle_exceptions.
61124         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61125         __Qp_handle_exceptions.
61126         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61127         as unused and give dummy FP_RND_NEAREST initializer.
61128         (FP_INHIBIT_RESULTS): Define.
61129         (___Q_simulate_exceptions): Update declaration.
61130         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61131         formatting.
61132         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61133         as unused and give dummy FP_RND_NEAREST initializer.
61134         (__Qp_handle_exceptions): Update declaration.
61135         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61136         formatting.
61137
61138 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61139
61140         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61141         the temporary FPU control word.
61142         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61143         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61144         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61145         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61146         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61147         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61148         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61149         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61150         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61151         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61152         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61153
61154 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61155
61156         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61157         fields.
61158
61159 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61160
61161         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61162         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61163         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61164         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61165         Likewise.
61166         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61167         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61168         Likewise.
61169
61170 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61171
61172         * po/h.po: Update from translation team.
61173
61174 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61175
61176         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61177
61178         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61179         handling of denormals.
61180         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61181         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61182         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61183         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61184         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61185         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61186         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61187         Likewise.
61188
61189 2012-05-26  Marek Polacek  <polacek@redhat.com>
61190
61191         [BZ #14152]
61192         * math/libm-test.inc (fma_test): Don't always expect underflow
61193         exception.
61194
61195 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61196
61197         [BZ #12416]
61198         * elf/tst-execstack.c: Include stackinfo.h.
61199         (do_test): Adjust test case to ensure that pthread_getattr_np
61200         behaviour remains the same after marking stack executable.
61201
61202 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61203
61204         * sysdeps/unix/sysv/linux/kernel-features.h
61205         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61206         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61207         kernel-features.h.
61208         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61209         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61210         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61211         kernel-features.h.
61212         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61213         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61214
61215 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61216
61217         * configure.in: Define the default includes to being none.
61218         * configure: Regenerated.
61219
61220 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61221
61222         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61223         * sysdeps/x86_64/setjmp.S: Likewise.
61224         * sysdeps/i386/bsd-setjmp.S: Likewise.
61225         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61226         * sysdeps/i386/setjmp.S: Likewise.
61227         * sysdeps/i386/__longjmp.S: Likewise.
61228         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61229         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61230
61231         * include/stap-probe.h: New file.
61232         * configure.in: Handle --enable-systemtap.
61233         * configure: Regenerated.
61234         * config.h.in (USE_STAP_PROBE): New #undef.
61235         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61236         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61237         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61238
61239 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61240
61241         [BZ #13717]
61242         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61243         to 2.4.0 where earlier.
61244         * sysdeps/unix/sysv/linux/configure: Regenerated.
61245         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61246         <kernel-features.h>.
61247         [__ASSUME_32BITUIDS]: Make code unconditional.
61248         [!__ASSUME_32BITUIDS]: Remove conditional code.
61249         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61250         <kernel-features.h>.
61251         [__ASSUME_32BITUIDS]: Make code unconditional.
61252         [!__ASSUME_32BITUIDS]: Remove conditional code.
61253         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61254         [__ASSUME_32BITUIDS]: Make code unconditional.
61255         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61256         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61257         <kernel-features.h>.
61258         [__ASSUME_32BITUIDS]: Make code unconditional.
61259         [!__ASSUME_32BITUIDS]: Remove conditional code.
61260         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61261         <kernel-features.h>.
61262         [__ASSUME_32BITUIDS]: Make code unconditional.
61263         [!__ASSUME_32BITUIDS]: Remove conditional code.
61264         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61265         <kernel-features.h>.
61266         [__ASSUME_32BITUIDS]: Make code unconditional.
61267         [!__ASSUME_32BITUIDS]: Remove conditional code.
61268         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61269         <kernel-features.h>.
61270         [__ASSUME_32BITUIDS]: Make code unconditional.
61271         [!__ASSUME_32BITUIDS]: Remove conditional code.
61272         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61273         <kernel-features.h>.
61274         [__ASSUME_32BITUIDS]: Make code unconditional.
61275         [!__ASSUME_32BITUIDS]: Remove conditional code.
61276         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61277         <kernel-features.h>.
61278         [__ASSUME_32BITUIDS]: Make code unconditional.
61279         [!__ASSUME_32BITUIDS]: Remove conditional code.
61280         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61281         <kernel-features.h>.
61282         [__ASSUME_32BITUIDS]: Make code unconditional.
61283         [!__ASSUME_32BITUIDS]: Remove conditional code.
61284         * sysdeps/unix/sysv/linux/i386/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
61297         <kernel-features.h>.
61298         [__NR_setresgid] (__setresgid): Do not declare.
61299         [__ASSUME_32BITUIDS]: Make code unconditional.
61300         [!__ASSUME_32BITUIDS]: Remove conditional code.
61301         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61302         <kernel-features.h>.
61303         [__NR_setresuid] (__setresuid): Do not declare.
61304         [__ASSUME_32BITUIDS]: Make code unconditional.
61305         [!__ASSUME_32BITUIDS]: Remove conditional code.
61306         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61307         <kernel-features.h>.
61308         [__ASSUME_32BITUIDS]: Make code unconditional.
61309         [!__ASSUME_32BITUIDS]: Remove conditional code.
61310         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61311         <kernel-features.h>.
61312         [__ASSUME_32BITUIDS]: Make code unconditional.
61313         [!__ASSUME_32BITUIDS]: Remove conditional code.
61314         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61315         <kernel-features.h>.
61316         [__ASSUME_32BITUIDS]: Make code unconditional.
61317         [!__ASSUME_32BITUIDS]: Remove conditional code.
61318         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61319         <kernel-features.h>.
61320         [__ASSUME_32BITUIDS]: Make code unconditional.
61321         [!__ASSUME_32BITUIDS]: Remove conditional code.
61322         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61323         <kernel-features.h>.
61324         [__ASSUME_32BITUIDS]: Make code unconditional.
61325         [!__ASSUME_32BITUIDS]: Remove conditional code.
61326         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61327         <kernel-features.h>.
61328         [__ASSUME_32BITUIDS]: Make code unconditional.
61329         [!__ASSUME_32BITUIDS]: Remove conditional code.
61330         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61331         <kernel-features.h>.
61332         [__ASSUME_32BITUIDS]: Make code unconditional.
61333         [!__ASSUME_32BITUIDS]: Remove conditional code.
61334         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61335         <kernel-features.h>.
61336         [__ASSUME_32BITUIDS]: Make code unconditional.
61337         [!__ASSUME_32BITUIDS]: Remove conditional code.
61338         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61339         <kernel-features.h>.
61340         [__ASSUME_32BITUIDS]: Make code unconditional.
61341         [!__ASSUME_32BITUIDS]: Remove conditional code.
61342         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61343         <kernel-features.h>.
61344         [__ASSUME_32BITUIDS]: Make code unconditional.
61345         [!__ASSUME_32BITUIDS]: Remove conditional code.
61346         * sysdeps/unix/sysv/linux/kernel-features.h
61347         (__ASSUME_SETRESUID_SYSCALL): Remove.
61348         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61349         (__ASSUME_32BITUIDS): Likewise.
61350         (__ASSUME_LDT_WORKS): Likewise.
61351         (__ASSUME_O_DIRECTORY): Likewise.
61352         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61353         architecture but not kernel version.
61354         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61355         (__ASSUME_MMAP2_SYSCALL): Likewise.
61356         (__ASSUME_STAT64_SYSCALL): Likewise.
61357         (__ASSUME_IPC64): Likewise.
61358         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61359         <kernel-features.h>.
61360         [__ASSUME_32BITUIDS]: Make code unconditional.
61361         [!__ASSUME_32BITUIDS]: Remove conditional code.
61362         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61363         <kernel-features.h>.
61364         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61365         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61366         132096]: Remove conditional code.
61367         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61368         * sysdeps/unix/sysv/linux/s390/s390-32/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/s390/s390-32/lchown.c: Do not include
61373         <kernel-features.h>.
61374         [__ASSUME_32BITUIDS]: Make code unconditional.
61375         [!__ASSUME_32BITUIDS]: Remove conditional code.
61376         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61377         <kernel-features.h>.
61378         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61379         unconditional.
61380         (__setresgid): Do not declare.
61381         [__ASSUME_32BITUIDS]: Make code unconditional.
61382         [!__ASSUME_32BITUIDS]: Remove conditional code.
61383         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61384         <kernel-features.h>.
61385         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61386         unconditional.
61387         (__setresuid): Do not declare.
61388         [__ASSUME_32BITUIDS]: Make code unconditional.
61389         [!__ASSUME_32BITUIDS]: Remove conditional code.
61390         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61391         <kernel-features.h>.
61392         [__ASSUME_32BITUIDS]: Make code unconditional.
61393         [!__ASSUME_32BITUIDS]: Remove conditional code.
61394         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61395         <kernel-features.h>.
61396         [__ASSUME_32BITUIDS]: Make code unconditional.
61397         [!__ASSUME_32BITUIDS]: Remove conditional code.
61398
61399 2012-05-25  Richard Henderson  <rth@twiddle.net>
61400
61401         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61402         dl_hwcap to ifunc resolver.
61403         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61404         elf_ifunc_invoke.
61405         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61406         dl_hwcap to ifunc resolver.
61407         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61408
61409 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61410
61411         [BZ #14153]
61412         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61413         for |x| <= 2**-26, not 2**-57.
61414         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61415         exception.
61416
61417 2012-05-24  Jeff Law  <law@redhat.com>
61418
61419         * stdio-common/Makefile (tests): Add bug25.
61420         * stdio-common/bug25.c: New test.
61421
61422 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61423
61424         [BZ #13576]
61425         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61426         multiple of MALLOC_ALIGNMENT in size.
61427         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61428
61429 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61430
61431         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61432         Require >= 256.
61433         (FILENAME_MAX): Use macro-int-constant.
61434         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61435         (_IOFBF): Use macro-int-constant.
61436         (_IOLBF): Likewise.
61437         (_IONBF): Likewise.
61438         (SEEK_CUR): Likewise.
61439         (SEEK_END): Likewise.
61440         (SEEK_SET): Likewise.
61441         (TMP_MAX): Likewise.
61442         (EOF): Use macro-int-constant.  Require < 0.
61443         (NULL): Use macro-constant.  Require == 0.
61444         (stdin): Require type to be FILE *.
61445         (stdout): Likewise.
61446         (stderr): Likewise.
61447         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61448         macro-int-constant.
61449         (EXIT_SUCCESS): Likewise.
61450         (NULL): Use macro-constant.  Require == 0.
61451         (RAND_MAX): Use macro-int-constant.
61452         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61453         [C99-based standards] (strtof): Require function.
61454         [C99-based standards] (strtold): Likewise.
61455         [C99-based standards] (strtoll): Likewise.
61456         [C99-based standards] (strtoull): Likewise.
61457         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61458         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61459         [ISO || ISO99 || ISO11] (math.h): Likewise.
61460         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61461         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61462         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61463
61464 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61465
61466         [BZ #14132]
61467         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61468         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61469         * intl/dgettext.c (DCGETTEXT): Likewise.
61470         * intl/gettext.c (DCGETTEXT): Likewise.
61471         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61472         * posix/regex_internal.h (gettext): Likewise.
61473         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61474         Remove declaration.
61475         * include/argz.h (__argz_count_internal)
61476         (__argz_stringify_internal): Remove declaration.
61477         (__argz_count, __argz_stringify): Declare hidden proto.
61478         * intl/dcgettext.c: Remove use of INTDEF.
61479         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61480         * string/argz-stringify.c: Likewise.
61481         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61482         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61483         Declare hidden proto.
61484         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61485         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61486         Declare hidden proto.
61487         * include/stdio.h (__asprintf_internal): Don't declare.
61488         (__asprintf): Don't define as macro.  Declare hidden proto.
61489         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61490         (__fsetlocking): Declare hidden proto.
61491         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61492         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61493         hidden proto.
61494         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61495         (_IO_setlinebuf): Remove use of INTUSE.
61496         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61497         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61498         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61499         Remove declaration.
61500         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61501         (_IO_do_flush): Remove use of INTUSE.
61502         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61503         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61504         (_IO_adjust_column, _IO_least_wmarker)
61505         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61506         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61507         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61508         (_IO_default_doallocate, _IO_wdefault_doallocate)
61509         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61510         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61511         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61512         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61513         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61514         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61515         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61516         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61517         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61518         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61519         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61520         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61521         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61522         proto.
61523         (_IO_flush_all_internal, _IO_adjust_column_internal)
61524         (_IO_default_uflow_internal, _IO_default_finish_internal)
61525         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61526         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61527         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61528         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61529         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61530         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61531         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61532         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61533         (_IO_file_close_internal, _IO_file_close_it_internal)
61534         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61535         (_IO_file_init_internal, _IO_file_attach_internal)
61536         (_IO_file_fopen_internal, _IO_file_read_internal)
61537         (_IO_file_sync_internal, _IO_file_seek_internal)
61538         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61539         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61540         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61541         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61542         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61543         (_IO_list_all_internal, _IO_link_in_internal)
61544         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61545         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61546         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61547         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61548         (_IO_do_write_internal, _IO_padn_internal)
61549         (_IO_getline_info_internal, _IO_getline_internal)
61550         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61551         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61552         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61553         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61554         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61555         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61556         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61557         with libc_hidden_ver, remove use of INTUSE.
61558         * libio/genops.c: Likewise.
61559         * libio/freopen.c: Likewise.
61560         * libio/freopen64.c: Likewise.
61561         * libio/iofclose.c: Likewise.
61562         * libio/iofdopen.c: Likewise.
61563         * libio/iofflush.c: Likewise.
61564         * libio/iofflush_u.c: Likewise.
61565         * libio/iofgets.c: Likewise.
61566         * libio/iofgets_u.c: Likewise.
61567         * libio/iofopen.c: Likewise.
61568         * libio/iofopncook.c: Likewise.
61569         * libio/iofread.c: Likewise.
61570         * libio/iofread_u.c: Likewise.
61571         * libio/ioftell.c: Likewise.
61572         * libio/iofwrite.c: Likewise.
61573         * libio/iogetline.c: Likewise.
61574         * libio/iogets.c: Likewise.
61575         * libio/iogetwline.c: Likewise.
61576         * libio/iopadn.c: Likewise.
61577         * libio/iopopen.c: Likewise.
61578         * libio/ioseekoff.c: Likewise.
61579         * libio/ioseekpos.c: Likewise.
61580         * libio/iosetbuffer.c: Likewise.
61581         * libio/iosetvbuf.c: Likewise.
61582         * libio/ioungetc.c: Likewise.
61583         * libio/ioungetwc.c: Likewise.
61584         * libio/iovdprintf.c: Likewise.
61585         * libio/iovsprintf.c: Likewise.
61586         * libio/iovsscanf.c: Likewise.
61587         * libio/memstream.c: Likewise.
61588         * libio/obprintf.c: Likewise.
61589         * libio/oldfileops.c: Likewise.
61590         * libio/oldiofclose.c: Likewise.
61591         * libio/oldiofdopen.c: Likewise.
61592         * libio/oldiofopen.c: Likewise.
61593         * libio/oldiopopen.c: Likewise.
61594         * libio/oldstdfiles.c: Likewise.
61595         * libio/putc.c: Likewise.
61596         * libio/setbuf.c: Likewise.
61597         * libio/setlinebuf.c: Likewise.
61598         * libio/stdfiles.c: Likewise.
61599         * libio/strops.c: Likewise.
61600         * libio/vasprintf.c: Likewise.
61601         * libio/vscanf.c: Likewise.
61602         * libio/vsnprintf.c: Likewise.
61603         * libio/vswprintf.c: Likewise.
61604         * libio/wfiledoalloc.c: Likewise.
61605         * libio/wfileops.c: Likewise.
61606         * libio/wgenops.c: Likewise.
61607         * libio/wmemstream.c: Likewise.
61608         * libio/wstrops.c: Likewise.
61609         * libio/__fpurge.c: Likewise.
61610         * libio/__fsetlocking.c: Likewise.
61611         * assert/assert.c: Likewise.
61612         * debug/fgets_chk.c: Likewise.
61613         * debug/fgets_u_chk.c: Likewise.
61614         * debug/fread_chk.c: Likewise.
61615         * debug/fread_u_chk.c: Likewise.
61616         * debug/gets_chk.c: Likewise.
61617         * debug/obprintf_chk.c: Likewise.
61618         * debug/vasprintf_chk.c: Likewise.
61619         * debug/vdprintf_chk.c: Likewise.
61620         * debug/vsnprintf_chk.c: Likewise.
61621         * debug/vsprintf_chk.c: Likewise.
61622         * malloc/mtrace.c: Likewise.
61623         * misc/error.c: Likewise.
61624         * misc/syslog.c: Likewise.
61625         * stdio-common/asprintf.c: Likewise.
61626         * stdio-common/fxprintf.c: Likewise.
61627         * stdio-common/getw.c: Likewise.
61628         * stdio-common/isoc99_fscanf.c: Likewise.
61629         * stdio-common/isoc99_scanf.c: Likewise.
61630         * stdio-common/isoc99_vfscanf.c: Likewise.
61631         * stdio-common/isoc99_vscanf.c: Likewise.
61632         * stdio-common/isoc99_vsscanf.c: Likewise.
61633         * stdio-common/printf-prs.c: Likewise.
61634         * stdio-common/printf_fp.c: Likewise.
61635         * stdio-common/printf_fphex.c: Likewise.
61636         * stdio-common/printf_size.c: Likewise.
61637         * stdio-common/putw.c: Likewise.
61638         * stdio-common/scanf.c: Likewise.
61639         * stdio-common/sprintf.c: Likewise.
61640         * stdio-common/tmpfile.c: Likewise.
61641         * stdio-common/vfprintf.c: Likewise.
61642         * stdio-common/vfscanf.c: Likewise.
61643         * stdlib/strfmon_l.c: Likewise.
61644         * sunrpc/openchild.c: Likewise.
61645         * sunrpc/xdr_stdio.c: Likewise.
61646         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61647         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61648
61649 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61650
61651         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61652
61653         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61654         in the third column, to generate for the shared library an IFUNC
61655         that uses _dl_vdso_vsym.
61656         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61657         * Makeconfig (object-suffixes-noshared): New variable.
61658
61659         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61660         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61661         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61662         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61663
61664         [BZ #14132]
61665         * include/sys/time.h (__gettimeofday): Remove macro.
61666         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61667         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61668         Remove INTDEF.
61669         (__gettimeofday): Add libc_hidden_def.
61670         (gettimeofday): Add libc_hidden_weak.
61671         * sysdeps/mach/gettimeofday.c: Likewise.
61672         * sysdeps/posix/gettimeofday.c: Likewise.
61673         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61674         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61675         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61676         (__gettimeofday_internal): Remove strong_alias.
61677         (__gettimeofday): Add libc_hidden_def.
61678         (gettimeofday): Add libc_hidden_weak.
61679         * sysdeps/unix/syscalls.list (gettimeofday):
61680         Remove __gettimeofday_internal alias.
61681
61682 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61683             H.J. Lu  <hongjiu.lu@intel.com>
61684
61685         [BZ #12495]
61686         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61687         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61688         (largebin_index_32_big): New.
61689         (largebin_index): Use it for 16-byte alignment.
61690         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61691         correction with front_misalign.
61692
61693 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61694
61695         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61696         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61697         Likewise.
61698         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61699         Likewise.
61700         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61701         Likewise.
61702         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61703         Likewise.
61704         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61705         Likewise.
61706         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61707         Likewise.
61708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61709         Likewise.
61710         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61711         Likewise.
61712         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61713         Likewise.
61714         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61715         Likewise.
61716         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61717         Likewise.
61718         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61719         Likewise.
61720
61721         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61722         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61723
61724 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61725
61726         [BZ #10846]
61727         [BZ #14036]
61728         * math/libm-test.inc (exp_test): Add test from bug 14036.
61729         (pow_test): Add test from bug 10846.
61730
61731         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61732         and other flags.
61733         (special_function): Do not include flags in test name.
61734         (parse_args): Likewise.
61735         * sysdeps/i386/fpu/libm-test-ulps: Update.
61736         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61737         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61738         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61740
61741         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61742         exceptions.
61743         * math/libm-test.inc ("Philosophy"): Update comment about
61744         exception testing.
61745         (UNDERFLOW_EXCEPTION): New macro.
61746         (UNDERFLOW_EXCEPTION_OK): Likewise.
61747         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61748         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61749         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61750         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61751         (INVALID_EXCEPTION_OK): Update value.
61752         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61753         (OVERFLOW_EXCEPTION_OK): Likewise.
61754         (IGNORE_ZERO_INF_SIGN): Likewise.
61755         (test_exceptions): Handle underflow exceptions.
61756         (acos_test): Update for underflow exception expectations.
61757         (cexp_test): Likewise.
61758         (clog_test): Likewise.
61759         (clog10_test): Likewise.
61760         (csqrt_test): Likewise.
61761         (ctan_test): Likewise.
61762         (ctanh_test): Likewise.
61763         (exp_test): Likewise.
61764         (exp10_test): Likewise.
61765         (exp2_test): Likewise.
61766         (expm1_test): Likewise.
61767         (fma_test): Likewise.
61768         (j0_test): Likewise.
61769         (jn_test): Likewise.
61770         (nexttoward_test): Likewise.
61771         (pow_test): Likewise.
61772         (scalbn_test): Likewise.
61773         (scalbln_test): Likewise.
61774         (tan_test): Likewise.
61775         (y1_test): Likewise.
61776         * sysdeps/i386/fpu/libm-test-ulps: Update.
61777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61778
61779 2012-05-23  David S. Miller  <davem@davemloft.net>
61780
61781         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61782         (__libc_sigaction): Remove unused local variables.
61783
61784 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61785
61786         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61787
61788 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         mktime: avoid signed integer overflow
61791         * time/mktime.c (__mktime_internal): Do not mishandle the case
61792         where diff == INT_MIN.
61793
61794         mktime: simplify computation of average
61795         * time/mktime.c (ranged_convert): Use new time_t_avg function
61796         instead of rolling our own (probably-slower) code.
61797
61798         mktime: do not assume signed right shift propagates sign bit
61799         * time/mktime.c (isdst_differ): New static function.
61800         (__mktime_internal): No need to normalize tm_isdst now.
61801         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61802         tm_isdst values.
61803
61804         mktime: merge another wrapv change from gnulib
61805         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61806         from some compilers.
61807
61808         mktime: remove incorrect attempt at unusual arithmetics
61809         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61810         The code didn't really work on such machines anyway.
61811         (TYPE_MINIMUM): Assume two's complement.
61812         (twos_complement_arithmetic): Verify that long_int and time_t
61813         are two's complement (or unsigned, in the latter case).
61814
61815         mktime: check signed shifts on long_int and time_t, too
61816         * time/mktime.c (SHR): Check that shifts work as desired
61817         on the types long_int and time_t too, as SHR is used on
61818         such types.
61819
61820         mktime: do not assume 'long' is wide enough
61821         * time/mktime.c (verify): Move decl up.
61822         (long_int): New type.
61823         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61824         to remove assumption in the code that 'long' is wide enough to
61825         store year values.  This assumption is not true on x32 and on
61826         some non-glibc platforms.
61827
61828         mktime: merge wrapv change from gnulib
61829         * time/mktime.c (WRAPV): New macro.
61830         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61831         (guess_time_tm, __mktime_internal): Do not assume that signed
61832         integer overflow wraps around; modern compilers generate code
61833         where this assumption is no longer valid.
61834
61835 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61836
61837         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61838         Replace "jmp L(pseudo_end)" with "ret".
61839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61840         Likewise.
61841
61842 2012-05-23  Andreas Jaeger  <aj@suse.de>
61843
61844         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61845         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61846
61847 2012-05-23  Andreas Jaeger  <aj@suse.de>
61848             Maximilian Attems  <max@stro.at>
61849
61850         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61851         New macros.
61852
61853 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61854
61855         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61856         code so that pseudo_end is just ret and the stack pointer is
61857         correct also for static library in error case.
61858
61859 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61860
61861         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61862         move to syscalls.list.
61863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61867
61868         * manual/install.texi (Running make install): Do not mention Linux
61869         kernel version for which pt_chown is not needed.
61870         (Linux): Do not mention problems with nscd with 2.0 kernels.
61871         * INSTALL: Regenerated.
61872
61873 2012-05-23  Andreas Jaeger  <aj@suse.de>
61874
61875         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61876         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61877         macro.
61878         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61879         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61880         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61881         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61882         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61883         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61884         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61885         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61886         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61887         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61888         * sysdeps/unix/sysv/linux/bits/in.h
61889         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61890
61891 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61892
61893         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61894         (PREPARE_VERSION): Just use assert instead, it will be elided
61895         under [NDEBUG] anyway.
61896
61897 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61898
61899         * sysdeps/unix/sysv/linux/Makefile: Include
61900         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61901         (sysdep_routines): Remove sysctl.
61902         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61903         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61904         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61905         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61906         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61907
61908 2012-05-22  Andreas Jaeger  <aj@suse.de>
61909
61910         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61911         that pseudo_end is just ret and the stack pointer is correct also
61912         for static library in error case.
61913
61914 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61915
61916         [BZ #14122]
61917         * nss/nsswitch.c (defconfig_entries): New variable.
61918         (__nss_database_lookup): Don't leak defconfig entries.
61919         (nss_parse_service_list): Don't leak on error paths.
61920         (free_database_entries): New function.
61921         (free_defconfig): New function.
61922         (free_mem): Move common code to free_database_entries.
61923
61924 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61925
61926         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61927         Add arch_prctl.
61928         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61929
61930         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61931         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61932         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61933         New macro.
61934         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61935         (INTERNAL_SYSCALL_TYPES): Likewise.
61936         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61937         (LOAD_REGS_TYPES_[1-6]): Likewise.
61938         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61939         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61940
61941 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61942
61943         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61944         copysignl for GLIBC_2_0.
61945         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61946         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61947         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61948         logbl for GLIBC_2_0.
61949         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61950         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61951
61952 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61953
61954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61955         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61956
61957         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61958         Use "neg %eax".
61959
61960         * time/mktime.c: Update copyright years.
61961
61962 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61963
61964         mktime: merge comment-quoting-style change from gnulib
61965         * time/mktime.c: Quote 'like this' in comments.
61966         The GNU coding standards suggest that we no longer quote `like this',
61967         as "`" and "'" are typically rendered asymmetrically nowadays.
61968         The typical gnulib style is to quote 'like this' when quoting
61969         code, and "like this" when quoting English.
61970
61971         * time/mktime.c (compile-command): Add "-I.".
61972
61973         mktime: merge mktime-internal.h change from gnulib
61974         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61975
61976         mktime: merge time_r change from gnulib
61977         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61978
61979         mktime: merge DEBUG change from gnulib
61980         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61981         case system <time.h> has a #define.
61982
61983         mktime: merge <sys/types.h> change from gnulib
61984         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61985         since <time.t> is now guaranteed to define time_t.
61986
61987         mktime: merge HAVE_CONFIG_H change from gnulib
61988         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61989
61990 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61991
61992         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61993         Use "neg %eax".
61994
61995         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61996         __rlim_t cast.
61997         (struct rusage): Use anonymous union to pad each field to
61998         __syscall_slong_t.
61999
62000 2012-05-21  David S. Miller  <davem@davemloft.net>
62001
62002         * Makefules (o-iterator): Remove .s cases.
62003         (compile-command.s): Delete.
62004         (COMPILE.s): Delete.
62005         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62006
62007 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62008
62009         * configure.in (libc_cv_predef_stack_protector): Only consider
62010         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62011         * configure: Regenerated.
62012
62013 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62014
62015         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62016         New macro.  Use R*LP on int and pointer.
62017         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62018         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62019         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62020         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62021
62022         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62023         [__WORDSIZE_TIME64_COMPAT32] instead of
62024         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62025         (struct utmp): Likewise.
62026         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62027         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62028         Renamed to ...
62029         (__WORDSIZE_TIME64_COMPAT32): This.
62030         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62031         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62032         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62033         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62034         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62035         (__WORDSIZE_TIME64_COMPAT32): New macro.
62036
62037 2012-05-21  Andreas Jaeger  <aj@suse.de>
62038
62039         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62040         only if [SHARED]. Add prototype for __wcschr_ia32.
62041
62042 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62043
62044         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62045         of %rbp unmolested in the jmp_buf while mangling the low bits.
62046         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62047         unmolested high bits of %rbp while demangling the low bits.
62048         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62049
62050 2012-05-21  Andreas Jaeger  <aj@suse.de>
62051
62052         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62053         * sunrpc/svc_simple.c: Use it for registerrpc.
62054         * sunrpc/xcrypt.c: Use it for passwd2des.
62055
62056         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62057
62058 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62059
62060         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62061         Don't define if [__SYSCALL_WORDSIZE != 32].
62062         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62063         New macro.
62064
62065 2012-05-21  Bruno Haible  <bruno@clisp.org>
62066             Andreas Jaeger  <aj@suse.de>
62067
62068         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62069         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62070         inptr and inend for must_buffer_ch.
62071         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62072         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62073         * stdio-common/Makefile (tests): Remove bug15.
62074         (bug15-ENV): Remove macro.
62075         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62076         anymore.
62077
62078 2012-05-19  Andreas Jaeger  <aj@suse.de>
62079             Roland McGrath  <roland@hack.frob.com>
62080
62081         * manual/contrib.texi: Completely rewritten. It contains now an
62082         alphabetical list of contributors and their contributions.
62083
62084 2012-05-21  Richard Henderson  <rth@twiddle.net>
62085
62086         * misc/getauxval.c (__getauxval): Use unsigned long int.
62087         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62088         (getauxval): Use unsigned long int.
62089
62090 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62091
62092         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62093
62094 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62095
62096         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62097         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62098         __alignof__ (long double).
62099
62100 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62101
62102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62103
62104 2012-05-20  Richard Henderson  <rth@twiddle.net>
62105
62106         * misc/getauxval.c: New file.
62107         * misc/sys/auxv.h: New file.
62108         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62109         (routines): Add getauxval.
62110         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62111         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62112         * elf/dl-sysdep.c (_dl_auxv): Remove.
62113         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62114         * elf/dl-support.c (_dl_auxv): New variable.
62115         (_dl_aux_init): Initialize it.
62116         * manual/startup.texi (Auxiliary Vector): New node.
62117         * sysdeps/generic/bits/hwcap.h: New file.
62118         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62119         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62120         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62121         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62122         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62123         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62125         Update.
62126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62129         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62131         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62132         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62133         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62134
62135 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62136
62137         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62138
62139 2012-05-19  David S. Miller  <davem@davemloft.net>
62140
62141         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62142
62143 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62144
62145         [BZ #14123]
62146         * math/s_ccosh.c: Include <float.h>
62147         (__ccosh): Avoid internal overflow calculating sinh and cosh
62148         values before multiplying by sin and cos values.
62149         * math/s_ccoshf.c: Likewise.
62150         * math/s_ccoshl.c: Likewise.
62151         * math/s_csin.c: Likewise.
62152         * math/s_csinf.c: Likewise.
62153         * math/s_csinl.c: Likewise.
62154         * math/s_csinh.c: Likewise.
62155         * math/s_csinhf.c: Likewise.
62156         * math/s_csinhl.c: Likewise.
62157         * math/libm-test.inc (ccos_test): Add more tests.
62158         (ccosh_test): Likewise.
62159         (csin_test): Likewise.
62160         (csinh_test): Likewise.
62161         * sysdeps/i386/fpu/libm-test-ulps: Update.
62162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62163
62164 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62165
62166         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62167         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62168
62169         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62170
62171 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62172
62173         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62174         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62175         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62176         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62177         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62178         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62179         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62180         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62181         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62182         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62183         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62184         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62185         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62186         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62187         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62188         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62189         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62190         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62191         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62192         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62193         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62194         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62195         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62196         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62197         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62198         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62199         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62200         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62201         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62202         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62203         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62204
62205 2012-05-18  Andreas Jaeger  <aj@suse.de>
62206
62207         * csu/.gitignore: Delete.
62208
62209 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62210
62211         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62212         (timex): Use __syscall_slong_t.
62213
62214 2012-05-18  Andreas Jaeger  <aj@suse.de>
62215             Carlos O'Donell  <carlos_odonell@mentor.com>
62216
62217         * manual/install.texi (Configuring and compiling): Update
62218         description about files modified in the source directory.
62219         * INSTALL: Regenerated.
62220
62221 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62222
62223         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62224         value.  Use "or" to set return value to -1.
62225         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62226         negate return value.
62227
62228 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62229
62230         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62231         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62232         failure if the compiler has Graphite support disabled.
62233         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62234         Likewise.
62235         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62236         (CFLAGS-memmove.c): Likewise.
62237         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62238         Likewise.
62239
62240 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62241
62242         * sysdeps/x86_64/x32/_itoa.h: New file.
62243
62244         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62245         getdents system call only if kernel and user dirents have the
62246         same d_ino and d_off.
62247
62248         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62249         LLONG_MAX != LONG_MAX.
62250         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62251         (_fitoa_word): Likewise.
62252
62253         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62254         years.
62255         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62256         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62257         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62258
62259         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62260         include <bits/wordsize.h>.  Check __x86_64__ instead of
62261         __WORDSIZE.
62262         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62263         if __x86_64__ is defined.  Use anonymous union on fpstate.
62264
62265         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62266         anonymous union.
62267
62268 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62269
62270         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62271         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62272         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62273         Refer to _rtld_local_ro instead of _rtld_global_ro.
62274         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62275         Likewise.
62276         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62277         Likewise.
62278         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62279         Likewise.
62280         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62281         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62282         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62283
62284         [BZ #10882]
62285         * sysdeps/powerpc/powerpc32/dl-machine.c
62286         (__elf_machine_runtime_setup) [PROF]: Don't reference
62287         _dl_prof_resolve.
62288
62289 2012-05-18  Andreas Jaeger  <aj@suse.de>
62290
62291         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62292         function only available for GCCs before 3.4 since GCC 3.4
62293         introduced a builtin.
62294         (lrint): Likewise.
62295         (llrintf): Likewise.
62296         (llrint): Likewise.
62297         (fmaxf): Likewise.
62298         (fmax): Likewise.
62299         (fminf): Likewise.
62300         (fmin): Likewise.
62301         (rint): Likewise.
62302         (rintf): Likewise.
62303         (nearbyint): Likewise.
62304         (nearbyintf): Likewise.
62305         (ceil): Likewise.
62306         (ceilf): Likewise.
62307         (floor): Likewise.
62308         (floorf): Likewise.
62309
62310 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62311
62312         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62313         on both fields and cast pointer to __syscall_ulong_t.
62314
62315         * bits/types.h (__fsword_t): New type.
62316         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62317         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62318         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62319         (__FSWORD_T_TYPE): Likewise.
62320         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62321         (__FSWORD_T_TYPE): Likewise.
62322         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62323         (__FSWORD_T_TYPE): Likewise.
62324         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62325         (__FSWORD_T_TYPE): Likewise.
62326         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62327         __SWORD_TYPE with __fsword_t.
62328         (statfs64): Likewise.
62329
62330 2012-05-17  David S. Miller  <davem@davemloft.net>
62331
62332         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62333
62334 2012-05-17  Andreas Jaeger  <aj@suse.de>
62335
62336         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62337         warning.
62338
62339 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62340
62341         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62342
62343 2012-05-17  Andreas Jaeger  <aj@suse.de>
62344
62345         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62346         when it is used.
62347
62348 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62349
62350         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62351
62352 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62353
62354         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62355         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62356
62357 2012-05-17  Andreas Jaeger  <aj@suse.de>
62358             Carlos O'Donell  <carlos_odonell@mentor.com>
62359
62360         [BZ #14059]
62361         * sysdeps/x86_64/multiarch/init-arch.h
62362         (bit_YMM_Usable): Rename to...
62363         (bit_AVX_Usable): ... this.
62364         (bit_FMA4_Usable): New macro.
62365         (bit_XMM_state): New macro.
62366         (bit_YMM_state): New macro.
62367         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62368         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62369         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62370         (CPUID_OSXSAVE): New macro.
62371         (CPUID_AVX): New macro.
62372         (CPUID_FMA4): New macro.
62373         (index_YMM_Usable): Rename to...
62374         (index_AVX_Usable): ... this.
62375         (HAS_AVX): Use HAS_ARCH_FEATURE.
62376         (HAS_FMA4): Likewise.
62377         (HAS_YMM_USABLE): Remove.
62378         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62379         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62380         are present.
62381         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62382         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62383         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62384         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62385         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62386
62387 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62388
62389         * math/libm-test.c: Support platforms without multiple rounding modes.
62390         * math/bug-nextafter.c: Support platforms without FP exceptions.
62391         * math/bug-nexttoward.c: Likewise.
62392         * math/test-fenv.c: Likewise.
62393         * math/test-misc.c: Likewise.
62394         * stdlib/bug-getcontext.c: Likewise.
62395
62396 2012-05-17  Andreas Jaeger  <aj@suse.de>
62397
62398         * manual/examples/search.c (critter_cmp): Change signature to
62399         avoid warnings.
62400         * manual/string.texi (Collation Functions): Likewise.
62401
62402 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62403
62404         * bits/types.h: Fold copyright years.
62405         * bits/typesizes.h: Likewise.
62406         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62407         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62408         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62409         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62410         * time/time.h: Likewise.
62411
62412 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62413
62414         [BZ #208]
62415         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62416         in instead of returning them.  Return void.
62417         (__libc_mallinfo): Accumulate over all arenas.
62418         (__malloc_stats): Adjust for change in int_mallinfo interface.
62419
62420 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62421
62422         [BZ #10375]
62423         * configure.in (NM): Add AC_CHECK_TOOL for it.
62424         (libc_extra_cflags): New substituted variable.
62425         Check for -fstack-protector being used implicitly.
62426         * configure: Regenerated.
62427         * config.make.in (config-extra-cflags): New variable,
62428         gets @libc_extra_cflags@.
62429         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62430
62431         [BZ #10375]
62432         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62433         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62434         * configure: Regenerated.
62435         * config.make.in (CPPUNDEFS): New substituted variable.
62436         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62437         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62438         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62439
62440 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62441
62442         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62443         (mq_attr): Use __syscall_slong_t.
62444
62445 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62446
62447         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62448         Check __x86_64__ instead of __WORDSIZE.
62449         (_STAT_VER_LINUX): Likewise.
62450         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62451         __syscall_ulong_t and __syscall_slong_t.
62452         (stat64): Likewise.
62453
62454 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62455
62456         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62457
62458 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62459
62460         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62461
62462 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62463
62464         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62465         __syscall_ulong_t.
62466
62467         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62468         include <bits/wordsize.h>.  Check __x86_64__ instead of
62469         __WORDSIZE.
62470         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62471         defined.
62472         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62473
62474         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62475         include <bits/wordsize.h>.  Check __x86_64__ instead of
62476         __WORDSIZE.
62477         (user_regs_struct): Use "__extension__ unsigned long long"
62478         instead of "unsigned long" if __x86_64__ is defined.
62479         (user): Likewise.  Pad after pointer field if __ILP32__ is
62480         defined.
62481
62482 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62483
62484         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62485         versions 5 to 9.
62486         * configure: Regenerated.
62487         * manual/install.texi (texinfo): Increase version requirement to
62488         4.5 or later.
62489         * INSTALL: Regenerated.
62490
62491         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62492
62493 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62494
62495         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62496
62497         * sysdeps/x86_64/x32/ffs.c: New file.
62498
62499         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62500         __syscall_ulong_t.
62501         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62502         defined.  Use __syscall_ulong_t.
62503         (shminfo): Use __syscall_ulong_t.
62504         (shm_info): Likewise.
62505
62506         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62507         __syscall_ulong_t.
62508
62509         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62510         <bits/wordsize.h>.
62511         (msgqnum_t): Use __syscall_ulong_t.
62512         (msglen_t): Likewise.
62513         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62514         __syscall_ulong_t.
62515
62516         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62517         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62518
62519         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62520
62521         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62522         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62523
62524         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62525         __syscall_slong_t.
62526
62527         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62528         include <bits/wordsize.h>.  Check __x86_64__ instead of
62529         __WORDSIZE.
62530
62531         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62532         "unsigned long long int" if __x86_64__ is defined.
62533         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62534
62535         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62536         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62537         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62538
62539         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62540         <stdint.h>.
62541         (GET_PC): Cast to uintptr_t first.
62542         (GET_FRAME): Likewise.
62543         (GET_STACK): Likewise.
62544
62545         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62546         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62547         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62548         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62549         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62550         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62551         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62552         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62553         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62554         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62555         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62556         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62557         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62558         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62559         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62560         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62561         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62562         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62563         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62564         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62565         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62566         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62567         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62568         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62569         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62570         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62571         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62572         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62573         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62574
62575 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62576
62577         * Makerules (+depfiles): Also collect depfiles from .oS in
62578         $(extra-objs).
62579         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62580         .oS, $(libnldbl-routines)).
62581
62582         * Makerules (native-compile-mkdep-flags): Define.
62583         * sunrpc/Makefile (extra-objs): Add $(addprefix
62584         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62585         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62586         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62587         calling $(make-target-directory).
62588
62589 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62590
62591         * bits/types.h (__snseconds_t): Removed.
62592         * time/time.h (struct timespec): Replace __snseconds_t with
62593         __syscall_slong_t.
62594         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62595         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62596         Likewise.
62597         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62598         (__SNSECONDS_T_TYPE): Likewise.
62599         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62600         (__SNSECONDS_T_TYPE): Likewise.
62601         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62602         (__SNSECONDS_T_TYPE): Likewise.
62603
62604 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62605
62606         * sysdeps/mach/hurd/bits/typesizes.h
62607         (__SYSCALL_SLONG_TYPE): New macro.
62608         (__SYSCALL_ULONG_TYPE): Likewise.
62609
62610 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62611
62612         * bits/types.h (__syscall_slong_t): New type.
62613         (__syscall_ulong_t): Likewise.
62614
62615         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62616         (__SYSCALL_ULONG_TYPE): Likewise.
62617         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62618         (__SYSCALL_SLONG_TYPE): Likewise.
62619         (__SYSCALL_ULONG_TYPE): Likewise.
62620         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62621         (__SYSCALL_SLONG_TYPE): Likewise.
62622         (__SYSCALL_ULONG_TYPE): Likewise.
62623         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62624         (__SYSCALL_SLONG_TYPE): Likewise.
62625         (__SYSCALL_ULONG_TYPE): Likewise.
62626
62627 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62628
62629         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62630         Add sigaltstack-offsets.sym.
62631         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62632         <sigaltstack-offsets.h>.
62633         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62634         longjmp_msg pointer.
62635         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62636         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62637         signal stack.
62638         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62639
62640 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62641
62642         * elf/stackguard-macros.h: Remove file.
62643         * sysdeps/generic/stackguard-macros.h: New file.
62644         * sysdeps/i386/stackguard-macros.h: Likewise.
62645         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62646         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62647         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62648         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62649         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62650         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62651         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62652         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62653         <elf/stackguard-macros.h>.
62654
62655         [BZ #14109]
62656         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62657         __aligned__ in attribute.
62658         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62659         (gregset_t): Likewise.
62660
62661 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62662
62663         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62664         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62665         * sysdeps/x86_64/x32/Implies-after: New file.
62666
62667 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62668
62669         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62670         and access return value for _dl_profile_fixup.  Use R10_LP to
62671         load frame size.
62672
62673 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62674
62675         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62676
62677 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62678
62679         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62680         * sysdeps/x86_64/x32/sysdep.h: New file.
62681
62682 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62683
62684         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62685         * sysdeps/x86_64/setjmp.S: Likewise.
62686
62687 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62688
62689         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62690         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62691         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62692         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62693         remove unused global constant.
62694
62695 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62696
62697         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62698         include of <not-cancel.h>.
62699
62700 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62701
62702         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62703
62704 2012-05-15  Jeff Law  <law@redhat.com>
62705             Andreas Jaeger  <aj@suse.de>
62706
62707         [BZ #13594]
62708         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62709         out from...
62710         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62711         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62712         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62713         code changing __hst_map_handle.map.
62714
62715 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62716
62717         * configure.in (sysnames): Look for Implies-before and Implies-after
62718         files.
62719         * configure: Regenerated.
62720
62721 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62722
62723         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62724         8-byte data alignment with LP_SIZE alignment.
62725
62726 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62727
62728         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62729         into R10_LP.
62730
62731 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62732
62733         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62734
62735 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62736
62737         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62738         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62739         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62740         Likewise.
62741         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62742
62743 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62744
62745         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62746         (stackinfo_sub_sp): Likewise.
62747
62748 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62749
62750         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62751         RAX_LP.
62752
62753 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62754
62755         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62756         into R*_LP.
62757
62758 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62759
62760         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62761         sizes into R*_LP.
62762
62763 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62764
62765         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62766
62767 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62768
62769         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62770         into R11_LP and load __x86_64_shared_cache_size_half into
62771         R8_LP.
62772
62773 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62774
62775         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62776         R8_LP.
62777
62778 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62779
62780         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62781         logb for POWER7.
62782         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62783         logbf for POWER7.
62784         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62785         logbl for POWER7.
62786         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62787         powerpc32/power7/fpu/s_logb.c via #include.
62788         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62789         powerpc32/power7/fpu/s_logbf.c via #include.
62790         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62791         powerpc32/power7/fpu/s_logbl.c via #include.
62792
62793 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62794
62795         * README.libm: Remove file.
62796
62797 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62798
62799         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62800         count for x32.  Use R*_LP and omit operand-size suffix.
62801
62802 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62803
62804         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62805         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62806         * sysdeps/x86_64/x32/shlib-versions: New file.
62807
62808 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62809
62810         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62811         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62812         Use _dl_fatal_printf instead.
62813
62814 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62815
62816         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62817         set if not set by the user.  Do not allow for being unset.
62818         * sysdeps/unix/sysv/linux/configure: Regenerated.
62819
62820 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62821
62822         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62823         the `q' suffix from lea and replace .quad with ASM_ADDR.
62824
62825 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62826
62827         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62828         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62829         instead of $17.
62830         (PTR_DEMANGLE): Likewise.
62831
62832 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62833
62834         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62835         (LP_OP): Likewise.
62836         (ASM_ADDR): Likewise.
62837         (RAX_LP): Likewise.
62838         (RBP_LP): Likewise.
62839         (RBX_LP): Likewise.
62840         (RCX_LP): Likewise.
62841         (RDI_LP): Likewise.
62842         (RSI_LP): Likewise.
62843         (RSP_LP): Likewise.
62844         (R8_LP): Likewise.
62845         (R9_LP): Likewise.
62846         (R10_LP): Likewise.
62847         (R10_LP): Likewise.
62848         (R11_LP): Likewise.
62849         (R12_LP): Likewise.
62850         (R13_LP): Likewise.
62851         (R14_LP): Likewise.
62852         (R15_LP): Likewise.
62853
62854 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62855
62856         * sysdeps/x86_64/x32/dl-machine.h: New file.
62857
62858 2012-05-14  Andreas Jaeger  <aj@suse.de>
62859
62860         * manual/Makefile (subdir): Remove export of subdir.
62861         (all): Remove target.
62862         (.PHONY): Remove all from list.
62863         (mkinstalldirs): Remove.
62864         (.PHONY): Remove installdirs from list.
62865         ($(inst_infodir)/libc.info): Use make-target-directory.
62866         (installdirs): Remove.
62867         (subdir_%): Remove.
62868         (glibc-targets): Remove.
62869         (lib): Remove.
62870         (stubs): Remove.
62871         ($(objpfx)stubs ../po/manual.pot): Remove.
62872         ($(objpfx)stamp%): Remove.
62873         (make-target-directory): Remove.
62874         (subdir_install): Remove.
62875         (routines): Remove.
62876         (aux): Remove.
62877         (sources): Remove.
62878         (objects): Remove.
62879         (headers): Remove.
62880
62881         [BZ #13750]
62882         * manual/.gitignore: Remove, it's not needed anymore.
62883         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62884         all files in it.
62885         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62886         directory.
62887         (texis): Renamed to $(objpfx)texis.
62888         (texis-path): New, contains path to generated files.
62889         (chapters.%): Use texis-path for complete path, add extra argument
62890         libc-texinfo.sh.
62891         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62892         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62893         (summary,texi, stamp-summary): Use complete path of
62894         files. Generate files in build dir.
62895         (dir-add.texi): Build in build dir.
62896         (libm-err.texi,stamp-libm-err): Likewise.
62897         (version.texi, stamp-version): Likewise.
62898         (.%c.texi): Likewise.
62899         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62900         (mostlyclean): Remove target.
62901         (realclean): Remove target.
62902         (generated): Add new variable with contents from mostlyclean and
62903         realclean, remove entries duplicated in common-mostlyclean, add
62904         stamp-libm-err and stamp-version.
62905         (generated-dirs): Add libc directory.
62906         ($(inst_infodir)/libc.info): Install files from build dir.
62907
62908         * manual/install.texi (Configuring and compiling): Adjust since
62909         the info files are not part of the tar ball anymore.
62910
62911 2012-05-14  Andreas Jaeger  <aj@suse.de>
62912
62913         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62914         variable.
62915
62916 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62917
62918         [BZ #13717]
62919         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62920         to 2.2.0 where earlier.
62921         * sysdeps/unix/sysv/linux/configure: Regenerated.
62922         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62923         Remove conditional code.
62924         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62925         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62926         Remove conditional code.
62927         [!__NR_lchown]: Likewise.
62928         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62929         [__NR_lchown]: Likewise.
62930         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62931         comment referencing __ASSUME_LCHOWN_SYSCALL.
62932         * sysdeps/unix/sysv/linux/i386/sigaction.c
62933         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62934         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62935         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62936         Remove conditional code.
62937         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62938         (__protocol_available): Remove #if 0 code.
62939         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62940         conditional code.
62941         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62942         * sysdeps/unix/sysv/linux/kernel-features.h
62943         (__ASSUME_GETCWD_SYSCALL): Don't define.
62944         (__ASSUME_REALTIME_SIGNALS): Likewise.
62945         (__ASSUME_PREAD_SYSCALL): Likewise.
62946         (__ASSUME_PWRITE_SYSCALL): Likewise.
62947         (__ASSUME_POLL_SYSCALL): Likewise.
62948         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62949         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62950         non-SPARC.
62951         (__ASSUME_SIOCGIFNAME): Don't define.
62952         (__ASSUME_MSG_NOSIGNAL): Likewise.
62953         (__ASSUME_SENDFILE): Define unconditionally.
62954         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62955         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62956         conditional code.
62957         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62958         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62959         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62960         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62961         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62962         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62963         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62965         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62966         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62968         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62969         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62971         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62972         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62974         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62975         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62977         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62978         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62980         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62981         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62983         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62984         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62986         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62987         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62988         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62989         Remove conditional code.
62990         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62991         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62992         Remove conditional code.
62993         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62994         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62995         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62996         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62997         Remove conditional code.
62998         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62999         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63000         Remove conditional code.
63001         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63002         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63003         Remove conditional code.
63004         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63005         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63006         Remove conditional code.
63007         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63008         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63009         Remove conditional code.
63010         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63011         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63012         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63013         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63014         * sysdeps/unix/sysv/linux/sigaction.c
63015         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63016         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63017         * sysdeps/unix/sysv/linux/sigpending.c
63018         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63019         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63020         * sysdeps/unix/sysv/linux/sigprocmask.c
63021         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63022         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63023         * sysdeps/unix/sysv/linux/sigsuspend.c
63024         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63025         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63026         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63027         (__libc_missing_rt_sigs): Remove.
63028         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63029         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63030         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63031         Remove conditional code.
63032         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63033         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63034         return 1.
63035         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63036         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63037         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63038         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63039
63040 2012-05-14  Andreas Jaeger  <aj@suse.de>
63041
63042         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63043         it's not used in glibc.
63044         (__coshm1): Likewise.
63045         (__acosh1p): Likewise.
63046         (__sgn): Likewise.
63047
63048         * manual/string.texi (Copying and Concatenation): Add missing
63049         variable in concat example.
63050         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63051
63052 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63053
63054         [BZ #14103]
63055         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63056         __builtin_clzl with __builtin_clzll.
63057
63058 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63059
63060         [BZ #14104]
63061         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63062         libc_freeres_ptr.
63063
63064 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63065
63066         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63067         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63068         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63069         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63070
63071 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63072
63073         * NEWS: Update ia64 info.
63074
63075 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63076
63077         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63078         used as bcopy.
63079
63080 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63081
63082         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63083         * sysdeps/unix/syscalls.list (dup3): Likewise.
63084         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63085         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63086
63087 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63088
63089         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63090         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63091
63092 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63093
63094         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63095         thread pointer.
63096         (TLS_IE): Use mov/add instead of movq/addq to load thread
63097         pointer.
63098         (TLS_GD_PREFIX): New.
63099         (TLS_GD): Use it.
63100
63101 2012-05-11  David S. Miller  <davem@davemloft.net>
63102
63103         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63104         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63105         (_FPU_SETCW): Likewise.
63106
63107 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63108
63109         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63110         is 32-byte aligned.
63111
63112 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63113
63114         [BZ #11837]
63115         * iconvdata/gb18030.c: Update tables.
63116         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63117         characters specially.
63118         (BODY for TO_LOOP): Add encoding of missing ranges.
63119
63120 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63121
63122         [BZ #13673]
63123         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63124         * sysdeps/mach/hurd/dup3.c: Likewise.
63125         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63126         * sysdeps/powerpc/memmove.c:: Likewise.
63127
63128 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63129
63130         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63131         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63132
63133 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63134
63135         * elf/elf.h (R_X86_64_RELATIVE64): New.
63136         (R_X86_64_NUM): Updated.
63137         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63138         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63139         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63140         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63141         tst-quad1pie tst-quad2pie
63142         (modules-names): Add tst-quadmod1 tst-quadmod2.
63143         ($(objpfx)tst-quad1): New dependency.
63144         ($(objpfx)tst-quad2): Likewise.
63145         ($(objpfx)tst-quad1pie): Likewise.
63146         ($(objpfx)tst-quad2pie): Likewise.
63147         * sysdeps/x86_64/tst-quad1.c: New file.
63148         * sysdeps/x86_64/tst-quad1pie.c: New file.
63149         * sysdeps/x86_64/tst-quad2.c: Likewise.
63150         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63151         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63152         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63153         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63154         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63155
63156 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63157
63158         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63159         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63160         * streams/stropts.h (t_scalar_t): Define type.
63161
63162         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63163         (_PATH_PRESERVE): Set to "/var/lib".
63164         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63165
63166         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63167         instead of int.
63168
63169         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63170         if __dir_mkfile succeeded.
63171
63172         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63173         checking for _hurd_dtablesize.  Unlock it right after having
63174         finished _hurd_dtable allocation.
63175
63176 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63177
63178         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63179         * sysdeps/mach/hurd/configure: Regenerated.
63180         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63181         special-casing to...
63182         * sysdeps/gnu/configure.in: ... this new file.
63183         * sysdeps/unix/sysv/linux/configure: Regenerated.
63184         * sysdeps/gnu/configure: New generated file.
63185
63186         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63187         for Linux: use nsec instead of usec, as well as:
63188         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63189         members of type struct timespec.
63190         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63191         New macros.
63192         (struct stat64): Likewise.
63193         (_STATBUF_ST_NSEC): New macro.
63194         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63195
63196         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63197         __strtoul_internal rather than strtoul.
63198
63199 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63200
63201         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63202         and reject them.
63203
63204 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63205
63206         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63207         which preserves existing values.
63208         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63209
63210 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63211
63212         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63213         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63214         greater than FD_SETSIZE.
63215
63216 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63217
63218         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63219         allocated, call __vm_protect to finish enabling the existing space, and
63220         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63221         allocate the remainder.
63222
63223 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63224
63225         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63226         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63227
63228 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63229
63230         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63231         sysdeps/mach/hurd/readlink.c.
63232
63233         * posix/tst-sysconf.c (posix_options): Only use
63234         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63235         _POSIX_SYNCHRONIZED_IO when they are defined
63236         * sysdeps/mach/hurd/bits/posix_opt.h:
63237         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63238         (_XOPEN_REALTIME): Undefine macro.
63239         (_XOPEN_REALTIME_THREADS): Undefine macro.
63240         (_XOPEN_SHM): Undefine macro.
63241         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63242         macro to -1.
63243         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63244         macro to -1.
63245         (_POSIX_ASYNC_IO): Undefine macro.
63246         (_POSIX_PRIORITIZED_IO): Undefine macro.
63247         (_POSIX_SPIN_LOCKS): Define macro to -1.
63248
63249         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63250         SA_NODEFER, SA_RESETHAND.
63251         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63252         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63253         F_DUPFD_CLOEXEC.
63254
63255 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63256
63257         * elf/Makefile (pldd-modules): Define unconditionally.
63258
63259 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63260
63261         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63262
63263 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63264
63265         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63266         Return ENOENT when name is empty.
63267         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63268
63269 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63270
63271         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63272
63273         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63274
63275 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63276
63277         Fix mlock in all cases except non-readable pages.
63278         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63279         instead of VM_PROT_ALL as parameter to __vm_wire function.
63280
63281         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63282         (__mkdir): When path is `/', just fail with EEXIST.
63283         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63284
63285 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63286
63287         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63288         <sys/uio.h> (for writev).
63289         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63290         and <sys/param.h> (for MIN).
63291
63292 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63293
63294         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63295         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63296         if interrupted.
63297
63298 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63299
63300         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63301         Depend on against $(link-rpcuserlibs).
63302
63303 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63304
63305         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63306         (__libc_stack_end): Do not use attribute_relro.
63307         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63308         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63309         to libthread-provided value.
63310         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63311         attribute_relro.
63312
63313 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63314
63315         [BZ #3748]
63316         * bits/libc-lock.h (__libc_once_get): New macro.
63317         * sysdeps/mach/bits/libc-lock.h: Likewise.
63318         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63319         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63320         instead of using implementation details.
63321
63322         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63323         * libio/freopen.c: Likewise.
63324         * libio/freopen64.c: Likewise.
63325         * misc/syslog.c: Likewise.
63326         * nscd/connections.c: Likewise.
63327         * nscd/netgroupcache.c: Likewise.
63328         * sysdeps/posix/getcwd.c: Likewise.
63329
63330 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63331
63332         * math/w_ilogbf.c: Add #include <limits.h>.
63333
63334 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63335
63336         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63337         path instead of returning without unlocking.
63338
63339         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63340         immediate-write ioctls.
63341         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63342
63343 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63344
63345         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63346         __builtin_frame_address instead of making assumptions about the
63347         location of the return address relative to DATA.  Force early load of
63348         the return address.
63349         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63350         __builtin_frame_address.
63351
63352         dup3 for GNU Hurd.
63353         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63354         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63355         implement dup3 and do some further code clean-ups.
63356         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63357         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63358
63359 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63360
63361         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63362
63363         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63364         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63365         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63366         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63367         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63368         d->port.lock.
63369
63370         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63371         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63372         when handler == SIG_ERR, not when handler != SIG_ERR.
63373
63374 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63375
63376         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63377         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63378         definitions.
63379
63380         accept4 for GNU Hurd.
63381         * include/sys/socket.h (__libc_accept4): New prototype.
63382         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63383         to implement __libc_accept4.
63384         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63385         __libc_accept4.
63386         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63387
63388         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63389         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63390         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63391         signal-defines.sym.
63392
63393 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63394
63395         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63396
63397 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63398
63399         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63400         assertion on O_CLOEXEC flag.
63401         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63402         * hurd/intern-fd.c: Likewise.
63403         * hurd/port2fd.c: Likewise.
63404
63405 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63406
63407         [BZ #3906]
63408         * bits/in.h (IPV6_PKTINFO): Define new macro.
63409         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63410
63411 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63412
63413         [BZ #13954]
63414         [BZ #13955]
63415         [BZ #13956]
63416         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63417         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63418         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63419         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63420         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63421         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63422         * math/libm-test.inc (logb_test) : Additional logb tests.
63423
63424 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63425             Andreas Jaeger  <aj@suse.de>
63426
63427         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63428         * configure: Regenerated.
63429         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63430         * config.make.in (link-obsolete-rpc): New substituted variable.
63431         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63432         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63433         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63434         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63435         so that libc.a contains the symbols.
63436         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63437         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63438         * sunrpc/auth_none.c: Likewise.
63439         * sunrpc/auth_unix.c: Likewise.
63440         * sunrpc/authdes_prot.c: Likewise.
63441         * sunrpc/authuxprot.c: Likewise.
63442         * sunrpc/clnt_gen.c: Likewise.
63443         * sunrpc/clnt_perr.c: Likewise.
63444         * sunrpc/clnt_raw.c: Likewise.
63445         * sunrpc/clnt_simp.c: Likewise.
63446         * sunrpc/clnt_tcp.c: Likewise.
63447         * sunrpc/clnt_udp.c: Likewise.
63448         * sunrpc/clnt_unix.c: Likewise.
63449         * sunrpc/des_crypt.c: Likewise.
63450         * sunrpc/des_soft.c: Likewise.
63451         * sunrpc/get_myaddr.c: Likewise.
63452         * sunrpc/key_call.c: Likewise.
63453         * sunrpc/key_prot.c: Likewise.
63454         * sunrpc/netname.c: Likewise.
63455         * sunrpc/pm_getmaps.c: Likewise.
63456         * sunrpc/pm_getport.c: Likewise.
63457         * sunrpc/pmap_clnt.c: Likewise.
63458         * sunrpc/pmap_prot.c: Likewise.
63459         * sunrpc/pmap_prot2.c: Likewise.
63460         * sunrpc/pmap_rmt.c: Likewise.
63461         * sunrpc/publickey.c: Likewise.
63462         * sunrpc/rpc_cmsg.c: Likewise.
63463         * sunrpc/rpc_common.c: Likewise.
63464         * sunrpc/rpc_dtable.c: Likewise.
63465         * sunrpc/rpc_prot.c: Likewise.
63466         * sunrpc/rpc_thread.c: Likewise.
63467         * sunrpc/rtime.c: Likewise.
63468         * sunrpc/svc.c: Likewise.
63469         * sunrpc/svc_auth.c: Likewise.
63470         * sunrpc/svc_raw.c: Likewise.
63471         * sunrpc/svc_run.c: Likewise.
63472         * sunrpc/svc_tcp.c: Likewise.
63473         * sunrpc/svc_udp.c: Likewise.
63474         * sunrpc/svc_unix.c: Likewise.
63475         * sunrpc/svcauth_des.c: Likewise.
63476         * sunrpc/xcrypt.c: Likewise.
63477         * sunrpc/xdr.c: Likewise.
63478         * sunrpc/xdr_array.c: Likewise.
63479         * sunrpc/xdr_float.c: Likewise.
63480         * sunrpc/xdr_intXX_t.c: Likewise.
63481         * sunrpc/xdr_mem.c: Likewise.
63482         * sunrpc/xdr_rec.c: Likewise.
63483         * sunrpc/xdr_ref.c: Likewise.
63484         * sunrpc/xdr_sizeof.c: Likewise.
63485         * sunrpc/xdr_stdio.c: Likewise.
63486
63487 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63488
63489         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63490         change.  Update copyright years.
63491
63492 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63493
63494         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63495
63496 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63497             Joseph Myers  <joseph@codesourcery.com>
63498             Paul Pluzhnikov  <ppluzhnikov@google.com>
63499
63500         [BZ #14012]
63501         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63502         requiring rpcgen.
63503         [cross-compiling] (extra-libs): Likewise.
63504         [cross-compiling] (extra-libs-others): Likewise.
63505         [cross-compiling] (librpcsvc-routines): Likewise.
63506         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63507         [cross-compiling] (omit-deps): Likewise.
63508         (sunrpc-CPPFLAGS): New variable.
63509         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63510         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63511         (cross-rpcgen-objs): New variable.
63512         (extra-objs): Append $(cross-rpcgen-objs).
63513         ($(cross-rpcgen-objs)): New rule.
63514         ($(objpfx)cross-rpcgen): Likewise.
63515         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63516         comment.
63517         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63518         ($(objpfx)x%.stmp): Likewise.
63519         * sunrpc/proto.h [IS_IN_build] (_): Define.
63520         [IS_IN_build] (_libc_intl_domainname): Likewise.
63521
63522 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63523
63524         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63525         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63526         and R_X86_64_TPOFF64.
63527
63528 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63529
63530         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63531         sysdeps/unix/sysv/syscalls.list.
63532         (stime): Likewise.
63533         (utime): Likewise.
63534         * sysdeps/unix/sysv/syscalls.list: Remove file.
63535
63536 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63537
63538         [BZ #3440]
63539         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63540         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63541         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63542         (__LC_IDENTIFICATION): Make these macros useful in #if
63543         expressions, as required by C99.
63544
63545 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63546
63547         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63548         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63549         after this.
63550
63551 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63552
63553         * stdlib/longlong.h: Updated from GCC.
63554
63555 2012-05-09  Andreas Jaeger  <aj@suse.de>
63556
63557         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63558         default is first entry.
63559         (run_mode): Set type.
63560         (main): Remove informal message about syslog.
63561         (options): Fix typo.
63562
63563         [BZ #14053]
63564         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63565         to asm.
63566         (lrint): Likewise.
63567         (llrintf): Likewise.
63568         (llrint): Likewise.
63569         (rint): Likewise.
63570         (rintf): Likewise.
63571         (nearbyint): Likewise.
63572         (nearbyintf): Likewise.
63573
63574 2012-05-09  Andreas Jaeger  <aj@suse.de>
63575             Pedro Alves  <palves@redhat.com>
63576
63577         * nscd/nscd.c (run_mode): Use enum.
63578         (main): Cleanup coding style issue.
63579
63580 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63581             Andreas Jaeger  <aj@suse.de>
63582
63583         * nscd/nscd.c (go_background): Replaced with...
63584         (run_mode): ... this.
63585         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63586         (options): Add -F --foreground.
63587         (main): Implement it.
63588         (parse_opt): Parse it.
63589
63590 2012-05-09  Andreas Jaeger  <aj@suse.de>
63591
63592         [BZ #14083]
63593         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63594         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63595         -Wconversion warning.
63596         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63597         Likewise.
63598
63599 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63600
63601         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63602         == 0.
63603         (LC_ALL): Use macro-int-constant.
63604         (LC_COLLATE): Likewise.
63605         (LC_CTYPE): Likewise.
63606         (LC_MESSAGES): Likewise.
63607         (LC_MONETARY): Likewise.
63608         (LC_NUMERIC): Likewise.
63609         (LC_TIME): Likewise.
63610         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63611         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63612         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63613         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63614         Specify type.
63615         [C99-based standards] (float_t): Expect type.
63616         [C99-based standards] (double_t): Expect type.
63617         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63618         type.
63619         [C99-based standards] (HUGE_VALL): Likewise.
63620         [C99-based standards] (INFINITY): Likewise.
63621         [C99-based standards] (NAN): Likewise.
63622         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63623         [C99-based standards] (FP_NAN): Likewise.
63624         [C99-based standards] (FP_NORMAL): Likewise.
63625         [C99-based standards] (FP_SUBNORMAL): Likewise.
63626         [C99-based standards] (FP_ZERO): Likewise.
63627         [C99-based standards] (FP_FAST_FMA): Use
63628         optional-macro-int-constant.  Specify type.  Require == 1.
63629         [C99-based standards] (FP_FAST_FMAF): Likewise.
63630         [C99-based standards] (FP_FAST_FMAL): Likewise.
63631         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63632         [C99-based standards] (FP_ILOGBNAN): Likewise.
63633         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63634         Specify type.
63635         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63636         [C99-based standards] (math_errhandling): Specify type.
63637         [ISO99 || ISO11] (signgam): Do not allow.
63638         [non-C99-based standards] (copysignf): Do not allow.
63639         [non-C99-based standards] (exp2f): Likewise.
63640         [non-C99-based standards] (log2f): Likewise.
63641         [non-C99-based standards] (modff): Allow.
63642         [non-C99-based standards] (erff): Do not allow.
63643         [non-C99-based standards] (erfcf): Likewise.
63644         [non-C99-based standards] (gammaf): Likewise.
63645         [non-C99-based standards] (hypotf): Likewise.
63646         [non-C99-based standards] (j0f): Likewise.
63647         [non-C99-based standards] (j1f): Likewise.
63648         [non-C99-based standards] (jnf): Likewise.
63649         [non-C99-based standards] (lgammaf): Likewise.
63650         [non-C99-based standards] (tgammaf): Likewise.
63651         [non-C99-based standards] (y0f): Likewise.
63652         [non-C99-based standards] (y1f): Likewise.
63653         [non-C99-based standards] (ynf): Likewise.
63654         [non-C99-based standards] (isnanf): Likewise.
63655         [non-C99-based standards] (acoshf): Likewise.
63656         [non-C99-based standards] (asinhf): Likewise.
63657         [non-C99-based standards] (atanhf): Likewise.
63658         [non-C99-based standards] (cbrtf): Likewise.
63659         [non-C99-based standards] (expm1f): Likewise.
63660         [non-C99-based standards] (ilogbf): Likewise.
63661         [non-C99-based standards] (log1pf): Likewise.
63662         [non-C99-based standards] (logbf): Likewise.
63663         [non-C99-based standards] (nextafterf): Likewise.
63664         [non-C99-based standards] (remainderf): Likewise.
63665         [non-C99-based standards] (rintf): Likewise.
63666         [non-C99-based standards] (scalbf): Likewise.
63667         [non-C99-based standards] (copysignl): Likewise.
63668         [non-C99-based standards] (exp2l): Likewise.
63669         [non-C99-based standards] (log2l): Likewise.
63670         [non-C99-based standards] (modfl): Allow.
63671         [non-C99-based standards] (erfl): Do not allow.
63672         [non-C99-based standards] (erfcl): Likewise.
63673         [non-C99-based standards] (gammal): Likewise.
63674         [non-C99-based standards] (hypotl): Likewise.
63675         [non-C99-based standards] (j0l): Likewise.
63676         [non-C99-based standards] (j1l): Likewise.
63677         [non-C99-based standards] (jnl): Likewise.
63678         [non-C99-based standards] (lgammal): Likewise.
63679         [non-C99-based standards] (tgammal): Likewise.
63680         [non-C99-based standards] (y0l): Likewise.
63681         [non-C99-based standards] (y1l): Likewise.
63682         [non-C99-based standards] (ynl): Likewise.
63683         [non-C99-based standards] (isnanl): Likewise.
63684         [non-C99-based standards] (acoshl): Likewise.
63685         [non-C99-based standards] (asinhl): Likewise.
63686         [non-C99-based standards] (atanhl): Likewise.
63687         [non-C99-based standards] (cbrtl): Likewise.
63688         [non-C99-based standards] (expm1l): Likewise.
63689         [non-C99-based standards] (ilogbl): Likewise.
63690         [non-C99-based standards] (log1pl): Likewise.
63691         [non-C99-based standards] (logbl): Likewise.
63692         [non-C99-based standards] (nextafterl): Likewise.
63693         [non-C99-based standards] (remainderl): Likewise.
63694         [non-C99-based standards] (rintl): Likewise.
63695         [non-C99-based standards] (scalbl): Likewise.
63696         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63697         [non-C99-based standards] (FP_*): Do not allow.
63698         [C99-based standards] (FP_*): Change to
63699         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63700         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63701         allow.
63702         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63703         (SIG_ERR): Likewise.
63704         [X/Open-based standards] (SIG_HOLD): Likewise.
63705         (SIG_IGN): Likewise.
63706         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63707         positive value.
63708         (SIGFPE): Likewise.
63709         (SIGILL): Likewise.
63710         (SIGINT): Likewise.
63711         (SIGSEGV): Likewise.
63712         (SIGTER): Likewise.
63713         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63714         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63715         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63716         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63717         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63718         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63719         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63720         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63721         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63722         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63723         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63724         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63725         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63726         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63727         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63728         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63729         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63730         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63731         [X/Open-based standards] (SIGTRAP): Likewise.
63732         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63733         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63734         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63735         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63736         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63737         allow.
63738
63739 2012-05-08  Ian Wienand  <ianw@vmware.com>
63740
63741         [BZ #14080]
63742         * time/tzset.c (__tzset_parse_tz): Update default rules for
63743         daylight time changes in the Energy Policy Act of 2005.
63744
63745 2012-05-09  Andreas Jaeger  <aj@suse.de>
63746
63747         [BZ #13983]
63748         * elf/ldconfig.c (parse_conf): Change string to make clear that
63749         ldconfig only issued a warning if ld.so.conf does not exist.
63750
63751 2012-05-08  David S. Miller  <davem@davemloft.net>
63752
63753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63754         movxtod instead of popping the value on the stack.
63755
63756         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63757
63758 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63759
63760         * config.h.in: Add HAVE_ARM_PCS_VFP.
63761
63762 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63763
63764         [BZ #13979]
63765         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63766         checking but the checks are disabled for any reason.
63767
63768 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63769
63770         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63771         and ELF64_R_TYPE with ELFW(R_TYPE).
63772
63773 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63774
63775         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63776         (ulimit): Likewise.
63777
63778         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63779         (settimeofday): Likewise.
63780
63781 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63782
63783         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63784         a struct th_u2 inside the union, and move tu_block/tu_code into
63785         a new th_u3 union of tu_block/tu_code inside of that.  Move
63786         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63787         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63788         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63789         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63790         (th_stuff): Change to th_u1.tu_stuff.
63791         (th_data): Define.
63792         (th_msg): Change to th_u1.th_u2.tu_data.
63793
63794 2012-05-07  David S. Miller  <davem@davemloft.net>
63795
63796         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63797
63798         [BZ #14074]
63799         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63800         (SETUP_PIC_REG): Use it.
63801         (SETUP_PIC_REG_LEAF): Use it.
63802
63803 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63804
63805         [BZ #13885]
63806         [BZ #13923]
63807         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63808         USE_AS_EXPM1L.
63809         (EXPL_FINITE): Likewise.
63810         (FLDLOG): Likewise.
63811         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63812         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63813         e_expl.S.
63814         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63815         USE_AS_EXPM1L.
63816         (EXPL_FINITE): Likewise.
63817         (FLDLOG): Likewise.
63818         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63819         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63820         e_expl.S.
63821         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63822         test of -max_value argument for long double.
63823         * sysdeps/i386/fpu/libm-test-ulps: Update.
63824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63825
63826 2012-05-06  David S. Miller  <davem@davemloft.net>
63827
63828         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63829         quad soft-float symbols whose references which are compiler
63830         generated.
63831         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63832
63833 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63834
63835         [BZ #13884]
63836         [BZ #13914]
63837         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63838         USE_AS_EXP10L.
63839         (EXPL_FINITE): Likewise.
63840         (FLDLOG): Likewise.
63841         (c0): Likewise.
63842         (c1): Likewise.
63843         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63844         Adjust comments for base varying.
63845         (__expl_finite): Change alias to EXPL_FINITE.
63846         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63847         e_expl.S.
63848         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63849         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63850         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63851         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63852         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63853         USE_AS_EXP10L.
63854         (EXPL_FINITE): Likewise.
63855         (FLDLOG): Likewise.
63856         (c0): Likewise.
63857         (c1): Likewise.
63858         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63859         Adjust comments for base varying.
63860         (__expl_finite): Change alias to EXPL_FINITE.
63861         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63862         tests for bugs.
63863         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63864
63865         [BZ #14064]
63866         * math/libm-test.inc (check_float_internal): Correct ulp
63867         calculation for subnormal expected results.
63868
63869 2012-05-06  Andreas Jaeger  <aj@suse.de>
63870
63871         * Makeconfig (+math-flags): New, set to -frounding-math.
63872         (+cflags): Add +math-flags so that all of glibc gets compiled with
63873         it.
63874
63875         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63876
63877 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63878
63879         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63880         Disable one test.
63881
63882         [BZ #13787]
63883         [BZ #13922]
63884         [BZ #14036]
63885         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63886         (__ieee754_expl): Allow for and saturate large arguments.
63887         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63888         (u_threshold): Likewise.
63889         (__exp): Call __ieee754_exp before checking for overflow and
63890         underflow.
63891         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63892         (u_threshold): Likewise.
63893         (__expf): Call __ieee754_expf before checking for overflow and
63894         underflow.
63895         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63896         (u_threshold): Likewise.
63897         (__expl): Call __ieee754_expl before checking for overflow and
63898         underflow.
63899         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63900         (__ieee754_expl): Allow for and saturate large arguments.
63901         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63902         missing overflow exception on overflow.
63903         (expm1_test): Do not allow missing overflow exception on overflow.
63904
63905         * sysdeps/i386/fpu/e_expl.c: Move to ...
63906         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63907         rather than using inline asm.
63908         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63909         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63910         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63911
63912         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63913         (nice): Likewise.
63914         (poll): Likewise.
63915         (signal): Likewise.
63916         (time): Likewise.
63917         (times): Likewise.
63918
63919 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63920
63921         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63922         sysdeps/unix/common/syscalls.list.
63923         (fchmod): Likewise.
63924         (fchown): Likewise.
63925         (ftruncate): Likewise.
63926         (getrusage): Likewise.
63927         (gettimeofday): Likewise.
63928         (setpgid): Likewise.
63929         (setregid): Likewise.
63930         (setreuid): Likewise.
63931         (sigaction): Likewise.
63932         (truncate): Likewise.
63933         (vhangup): Likewise.
63934         * sysdeps/unix/common/syscalls.list: Remove file.
63935         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63936         * sysdeps/unix/sysv/linux/Implies: Likewise.
63937
63938 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63939
63940         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63941         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63942         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63943         Moved to ...
63944         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63945         Here.
63946         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63947         to ...
63948         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63949         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63950         to ...
63951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63952         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63953         to ...
63954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63955         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63956         to ...
63957         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63958         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63959         to ...
63960         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63961         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63962         to ...
63963         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63964         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63965         to ...
63966         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63967         Here.
63968         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63969         to ...
63970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63971         Here.
63972         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63973         to ...
63974         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63975         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63976         Moved to ...
63977         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63978         Here.
63979         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63980         to ...
63981         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63982
63983 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63984
63985         * sysdeps/unix/common/bits/dirent.h: Remove file.
63986         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63987
63988         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63989         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63990         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63991         * sysdeps/unix/bsd/isatty.c: Likewise.
63992         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63993         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63994         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63995
63996 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63997
63998         [BZ #13563]
63999         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64000         long double comparison inaccuracies.
64001         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64003
64004 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64005
64006         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64007         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64008
64009 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64010
64011         [BZ #14049]
64012         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64013         nonzero digits before rounding a hex value.
64014         * stdlib/tst-strtod.c (tests): Add another test.
64015
64016 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64017
64018         * sysdeps/s390/fpu/libm-test-ulps: Update.
64019
64020 2012-05-03  Andreas Jaeger  <aj@suse.de>
64021
64022         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64023         does not get optimized out.
64024         (malloc_opt_barrier): New.
64025
64026 2012-05-03  Andreas Jaeger  <aj@suse.de>
64027             Roland McGrath  <roland@hack.frob.com>
64028
64029         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64030         intermediate file deletion.
64031         (generated): Add .symlist files.
64032
64033 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64034
64035         [BZ #13775]
64036         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64037         Redirect under this condition.
64038         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64039         [__USE_GNU] (__dprintf_chk): Not under this condition.
64040         [__USE_GNU] (__vdprintf_chk): Likewise.
64041         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64042         under this condition.
64043         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64044         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64045         [__USE_XOPEN2K8] (vdprintf): Likewise.
64046         [__USE_GNU] (__dprintf_chk): Not under this condition.
64047         [__USE_GNU] (__vdprintf_chk): Likewise.
64048         [__USE_GNU] (dprintf): Likewise.
64049         [__USE_GNU] (vdprintf): Likewise.
64050
64051 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64052
64053         * elf/Makefile (common-generated): Set this instead of generated for
64054         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64055         $(all-built-dso)-derived lists.
64056
64057 2012-05-03  Andreas Jaeger  <aj@suse.de>
64058
64059         * sysdeps/i386/fpu/libm-test-ulps: Update.
64060
64061         * FAQ: Removed.
64062         * FAQ.in: Likewise.
64063         * scripts/gen-FAQ.pl: Likewise.
64064         * manual/install.texi (Installation): Point to online location of
64065         FAQ.
64066         * Makefile (files-for-dist): Remove FAQ.
64067         (FAQ): Remove.
64068
64069 2012-05-02  Allan McRae  <allan@archlinux.org>
64070
64071         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64072         (LDFLAGS-reldepmod5.so): Likewise.
64073         (LDFLAGS-reldep6mod1.so): Likewise.
64074         (LDFLAGS-reldep6mod4.so): Likewise.
64075         (LDFLAGS-reldep8mod3.so): Likewise.
64076         (LDFLAGS-unload4mod1.so): Likewise.
64077         (LDFLAGS-unload4mod2.so): Likewise.
64078         (LDFLAGS-tst-initorder): Likewise.
64079         (LDFLAGS-tst-initordera2.so): Likewise.
64080         (LDFLAGS-tst-initordera3.so): Likewise.
64081         (LDFLAGS-tst-initordera4.so): Likewise.
64082         (LDFLAGS-tst-initorderb2.so): Likewise.
64083         (LDFLAGS-noload): Likewise.
64084         (LDFLAGS-next): Likewise.
64085         (LDFLAGS-order2mod1.so): Likewise.
64086         (LDFLAGS-order2mod2.so): Likewise.
64087         (LDFLAGS-tst-initorder2): Likewise.
64088         (LDFLAGS-tst-initorder2a.so): Likewise.
64089         (LDFLAGS-tst-initorder2b.so): Likewise.
64090         (LDFLAGS-tst-initorder2c.so): Likewise.
64091         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64092
64093 2012-05-02  David S. Miller  <davem@davemloft.net>
64094
64095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64096
64097 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64098
64099         [BZ #14055]
64100         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64101
64102 2012-05-02  Andreas Jaeger  <aj@suse.de>
64103
64104         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64105         since we manipulate rounding mode.
64106         (CPPFLAGS-test-idouble.c): Likewise.
64107         (CPPFLAGS-test-ifloat.c): Likewise.
64108         (CFLAGS-test-ldouble.c): Likewise.
64109         (CFLAGS-test-double.c): Likewise.
64110         (CFLAGS-test-float.c): Likewise.
64111         (CFLAGS-test-misc.c): Likewise.
64112         (CFLAGS-test-test-fenv.c): Likewise.
64113
64114 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64115
64116         [BZ #2550]
64117         [BZ #2570]
64118         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64119         comparisons to determine direction to adjust input.
64120
64121 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64122
64123         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64124         output to the target.
64125
64126         * scripts/localplt.awk: New file.
64127         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64128         (check-localplt-CFLAGS): Variable removed.
64129         ($(all-built-dso:=.jmprel)): New static pattern rule.
64130         (generated): Add those targets.
64131         (localplt-built-dso): New variable.
64132         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64133
64134         * elf/check-localplt.c: File removed.
64135
64136         * scripts/check-execstack.awk: New file.
64137         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64138         (check-execstack-CFLAGS): Variable removed.
64139         ($(objpfx)check-execstack.h): Target removed.
64140         ($(objpfx)execstack-default): New target.
64141         (generated): Add that instead of check-execstack.h.
64142         ($(all-built-dso:=.phdr)): New static pattern rule.
64143         (generated): Add those targets.
64144         * elf/check-execstack.c: File removed.
64145
64146         * scripts/check-textrel.awk: New file.
64147         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64148         (check-textrel-CFLAGS): Variable removed.
64149         (all-built-dso): Use := to define.o
64150         ($(all-built-dso:=.dyn)): New static pattern rule.
64151         (generated): Add those targets.
64152         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64153         * config.make.in (READELF): New substituted variable.
64154         * elf/check-textrel.c: File removed.
64155
64156 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64157
64158         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64159         allow.
64160         * conform/data/ctype.h-data [C99-based standards] (isblank):
64161         Expect function.
64162         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64163         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64164         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64165         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64166         Specify type.  Require positive value.
64167         (EILSEQ): Likewise.
64168         (ERANGE): Likewise.
64169         [ISO || POSIX] (EILSEQ): Do not expect.
64170         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64171         Specify type.  Require positive value.
64172         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64173         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64174         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64175         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64176         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64177         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64178         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64179         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64180         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64181         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64182         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64183         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64184         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64185         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64186         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64187         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64188         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64189         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64190         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64191         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64192         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64193         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64194         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64195         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64196         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64197         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64198         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64199         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64200         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64201         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64202         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64203         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64204         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64205         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64206         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64207         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64208         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64209         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64210         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64211         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64212         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64213         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64214         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64215         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64216         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64217         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64218         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64219         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64220         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64221         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64222         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64223         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64224         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64225         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64226         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64227         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64228         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64229         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64230         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64231         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64232         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64233         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64234         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64235         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64236         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64237         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64238         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64239         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64240         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64241         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64242         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64243         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64244         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64245         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64246         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64247         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64248         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64249         Require >= 2.
64250         (FLT_ROUNDS): Expect as macro, not constant.
64251         (FLT_MANT_DIG): Use macro-int-constant.
64252         (DBL_MANT_DIG): Likewise.
64253         (LDBL_MANT_DIG): Likewise.
64254         (FLT_DIG): Likewise.
64255         (DBL_DIG): Likewise.
64256         (LDBL_DIG): Likewise.
64257         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64258         (DBL_MIN_EXP): Likewise.
64259         (LDBL_MIN_EXP): Likewise.
64260         (FLT_MAX_EXP): Use macro-int-constant.
64261         (DBL_MAX_EXP): Likewise.
64262         (LDBL_MAX_EXP): Likewise.
64263         (FLT_MAX_10_EXP): Likewise.
64264         (DBL_MAX_10_EXP): Likewise.
64265         (LDBL_MAX_10_EXP): Likewise.
64266         (FLT_MAX): Use macro-constant.
64267         (DBL_MAX): Likewise.
64268         (LDBL_MAX): Likewise.
64269         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64270         (DBL_EPSILON): Likewise.
64271         (LDBL_EPSILON): Likewise.
64272         (FLT_MIN): Likewise.
64273         (DBL_MIN): Likewise.
64274         (LDBL_MIN): Likewise.
64275         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64276         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64277         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64278         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64279         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64280         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64281         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64282         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64283         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64284         [ISO11] (FLT_TRUE_MIN): Likewise.
64285         [ISO11] (LDBL_TRUE_MIN): Likewise.
64286         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64287         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64288         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64289         (SCHAR_MAX): Likewise.
64290         (UCHAR_MAX): Likewise.
64291         (CHAR_MIN): Likewise.
64292         (CHAR_MAX): Likewise.
64293         (MB_LEN_MAX): Use macro-int-constant.
64294         (SHRT_MIN): Use macro-int-constant.  Specify type.
64295         (SHRT_MAX): Likewise.
64296         (USHRT_MAX): Likewise.
64297         (INT_MAX): Likewise.
64298         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64299         bound negative.
64300         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64301         bound with "U".
64302         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64303         bound with "L".
64304         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64305         bound negative.  Suffix upper bound with "L".
64306         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64307         bound with "UL".
64308         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64309         Specify type.
64310         [C99-based standards] (LLONG_MAX): Likewise.
64311         [C99-based standards] (ULLONG_MAX): Likewise.
64312         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64313         == 0.
64314         [ISO11] (max_align_t): Require type.
64315         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64316
64317         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64318         from $CFLAGS, without defining away __attribute__ calls.
64319         (checknamespace): Use $CFLAGS_namespace.
64320
64321         * conform/conformtest.pl (@keywords): Only include C99 keywords
64322         for standards based on C99 or C11.
64323
64324         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64325         Disable tests.
64326         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64327         UNIX98]: Likewise.
64328
64329         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64330         usability of symbols in #if.
64331
64332         * conform/conformtest.pl: If macro or constant types start
64333         "promoted:", expect the symbol to be of the following type
64334         promoted by the integer promotions.
64335
64336         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64337         in one place.  Also handle "macro-constant".
64338
64339         * conform/conformtest.pl: Only accept expected macro values with
64340         "==".  Parse all "macro" lines in one place.
64341         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64342
64343         * conform/conformtest.pl: Handle braced types on "constant" lines
64344         instead of handling "typed-constant".
64345         * conform/data/signal.h-data: Use "constant" instead of
64346         "typed-constant".
64347
64348         * conform/conformtest.pl: Handle "optional-" at start of lines in
64349         one place rather than duplicating several cases.  Handle each
64350         format of "macro" line with initial "optional-".
64351
64352         * conform/conformtest.pl: Only accept expected constant or
64353         optional-constant values with "==".  Parse all "constant" lines in
64354         one place.  Parse all "optional-constant" lines in one place.
64355         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64356         * conform/data/fmtmsg.h-data: Likewise.
64357         * conform/data/netinet/in.h-data: Likewise.
64358         * conform/data/tar.h-data: Likewise.
64359         * conform/data/limits.h-data: Use "==" form on "constant" and
64360         "optional-constant" lines.
64361
64362         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64363         Use -std=c99 for XOPEN2K.
64364         (@knownproblems): Remove.
64365         (newtoken): Don't check %isknown.
64366
64367         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64368         Do not expect macro.
64369         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64370         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64371         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64372         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64373         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64374         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64375         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64376         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64377         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64378         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64379         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64380         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64381         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64382         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64383         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64384         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64385         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64386         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64387         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64388         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64389         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64390         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64391         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64392         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64393         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64394         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64395         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64396         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64397         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64398         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64399         [XPG3] (acosh): Likewise.
64400         [XPG3] (asinh): Likewise.
64401         [XPG3] (atanh): Likewise.
64402         [XPG3] (cbrt): Likewise.
64403         [XPG3] (expm1): Likewise.
64404         [XPG3] (ilogb): Likewise.
64405         [XPG3] (log1p): Likewise.
64406         [XPG3] (logb): Likewise.
64407         [XPG3] (nextafter): Likewise.
64408         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64409         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64410         [XPG3] (remainder): Likewise.
64411         [XPG3] (rint): Likewise.
64412         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64413         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64414         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64415         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64416         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64417         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64418         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64419         [UNIX98 || XOPEN2K] (scalb): Expect.
64420         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64421         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64422         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64423         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64424         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64425         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64426         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64427         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64428         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64429         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64430         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64431         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64432         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64433         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64434         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64435         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64436         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64437         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64438         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64439         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64440         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64441         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64442         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64443         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64444         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64445         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64446         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64447         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64448         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64449         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64450         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64451         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64452         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64453         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64454         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64455         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64456         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64457         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64458         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64459         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64460         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64461         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64462         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64463         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64464         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64465         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64466         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64467         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64468         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64469         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64470         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64471         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64472         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64473         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64474         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64475         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64476         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64477         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64478         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64479         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64480         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64481         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64482         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64483         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64484         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64485         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64486         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64487         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64488         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64489         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64490         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64491         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64492         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64493         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64494         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64495         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64496         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64497         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64498         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64499         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64500         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64501         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64502         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64503         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64504         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64505         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64506         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64507         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64508         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64509         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64510         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64511         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64512         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64513         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64514         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64515         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64516         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64517         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64518         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64519         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64520         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64521         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64522         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64523         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64524         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64525         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64526         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64527         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64528         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64529         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64530         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64531         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64532         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64533         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64534         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64535         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64536         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64537         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64538         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64539         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64540         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64541         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64542         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64543         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64544         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64545         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64546         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64547         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64548         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64549         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64550         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64551         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64552         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64553         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64554         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64555         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64556         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64557
64558         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64559         _XOPEN_SOURCE_EXTENDED for XPG4.
64560
64561         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64562
64563         * Makeconfig (localtime): Remove variable.
64564         (inst_localtime-file): Likewise.
64565
64566 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64567
64568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64569         Update.
64570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64571         Update.
64572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64573         Update.
64574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64575         Update.
64576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64577         Update.
64578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64579         Update.
64580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64581         Update.
64582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64583         Update.
64584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64585         Update.
64586
64587 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64588
64589         [BZ #2550]
64590         [BZ #2570]
64591         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64592         comparisons to determine direction to adjust input.
64593         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64594         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64595         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64596         Likewise.
64597         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64598         Likewise.
64599         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64600         Likewise.
64601         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64602         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64603         Likewise.
64604         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64605         Likewise.
64606         * math/libm-test.inc (nexttoward_test): Add more tests.
64607
64608 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64609
64610         [BZ #14040]
64611         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64612         in version GLIBC_2.1, not GLIBC_2.0.
64613         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64614         Likewise.
64615
64616 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64617
64618         [BZ #13942]
64619         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64620         (1 - x) * (1 + x).
64621         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64622         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64623         * math/libm-test.inc (acos_test): Add more tests.
64624         (asin_test): Likewise.
64625         * sysdeps/i386/fpu/libm-test-ulps: Update.
64626         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64627
64628         [BZ #14034]
64629         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64630         of square root.
64631         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64632         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64633         * math/libm-test.inc (acos_test_tonearest): New function.
64634         (acos_test_towardzero): Likewise.
64635         (acos_test_downward): Likewise.
64636         (acos_test_upward): Likewise.
64637         (asin_test_tonearest): Likewise.
64638         (asin_test_towardzero): Likewise.
64639         (asin_test_downward): Likewise.
64640         (asin_test_upward): Likewise.
64641         (main): Call the new functions.
64642         * sysdeps/i386/fpu/libm-test-ulps: Update.
64643         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64644
64645         [BZ #13884]
64646         [BZ #13924]
64647         * math/e_exp10.c: Include <float.h>.
64648         (__ieee754_exp10): Handle underflow here rather than multiplying
64649         large negative argument by M_LN10.
64650         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64651         of __ieee754_expf.
64652         * math/e_exp10l.c: Include <float.h>.
64653         (__ieee754_exp10l): Handle underflow here rather than multiplying
64654         large negative argument by M_LN10l.
64655         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64656         spurious overflow exception on underflow.
64657
64658 2012-04-29  Marek Polacek  <polacek@redhat.com>
64659
64660         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64661         (__fortify_function): New macro.
64662         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64663         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64664         __extern_always_inline.
64665         * libio/bits/stdio2.h: Likewise.
64666         * libio/bits/stdio.h: Likewise.
64667         * string/string.h: Likewise.
64668         * string/bits/string3.h: Likewise.
64669         * include/stdio.h: Likewise.
64670         * stdlib/bits/stdlib.h: Likewise.
64671         * stdlib/stdlib.h: Likewise.
64672         * rt/bits/mqueue2.h: Likewise.
64673         * rt/mqueue.h: Likewise.
64674         * posix/bits/unistd.h: Likewise.
64675         * posix/unistd.h: Likewise.
64676         * io/bits/poll2.h: Likewise.
64677         * io/bits/fcntl2.h: Likewise.
64678         * io/fcntl.h: Likewise.
64679         * io/sys/poll.h: Likewise.
64680         * misc/bits/syslog.h: Likewise.
64681         * misc/bits/syslog-ldbl.h: Likewise.
64682         * misc/sys/syslog.h: Likewise.
64683         * socket/bits/socket2.h: Likewise.
64684         * socket/sys/socket.h: Likewise.
64685         * debug/tst-chk1.c: Likewise.
64686         * wcsmbs/bits/wchar2.h: Likewise.
64687         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64688         * wcsmbs/wchar.h: Likewise.
64689
64690 2012-04-29  Andreas Jaeger  <aj@suse.de>
64691
64692         * Makerules (tests): Remove enable-check-abi protection.
64693         (check-abi-warn): Remove.
64694         (check-abi-%): Remove check-abi-warn usage.
64695
64696         * configure.in: Remove check-abi configure option.
64697         * configure: Regenerated.
64698         * config.make.in (enable-check-abi): Remove.
64699
64700 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64701
64702         [BZ #14033]
64703         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64704         double functions to double *_finite functions.
64705
64706         [BZ #13941]
64707         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64708         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64709         LDBL_MIN_EXP.
64710         * stdio-common/Makefile (tests): Add tst-sprintf3.
64711         * stdio-common/tst-sprintf3.c: New file.
64712
64713         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64714         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64715
64716 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64717
64718         * conform/conformtest.pl: Remove duplicate typed-constant
64719         handling.
64720
64721 2012-04-28  David S. Miller  <davem@davemloft.net>
64722
64723         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64724         (check-abi-%): Remove AWK script prerequisite and explicit
64725         abilist directory.
64726         (check-abi): Rewrite to just diff the symlist with the abilist.
64727         (config-tls, config-abi-config): Delete, no longer used.
64728         (update-abi-%): Remove AWK script and explicit abilist directory.
64729         (update-abi): Rewrite to simply compare and conditionally copy the
64730         symlist and the sysdep abilist file.  Remove update-abi-config
64731         checks.
64732         * abilist/ld.abilist: Remove.
64733         * abilist/libBrokenLocale.abilist: Remove.
64734         * abilist/libanl.abilist: Remove.
64735         * abilist/libcrypt.abilist: Remove.
64736         * abilist/libdl.abilist: Remove.
64737         * abilist/librt.abilist: Remove.
64738         * abilist/libthread_db.abilist: Remove.
64739         * abilist/libutil.abilist: Remove.
64740         * scripts/extract-abilist.awk: Remove.
64741         * scripts/merge-abilist.awk: Remove.
64742         * sysdeps/generic/libcidn.abilist: New file.
64743         * sysdeps/generic/libnss_compat.abilist: New file.
64744         * sysdeps/generic/libnss_db.abilist: New file.
64745         * sysdeps/generic/libnss_dns.abilist: New file.
64746         * sysdeps/generic/libnss_files.abilist: New file.
64747         * sysdeps/generic/libnss_hesiod.abilist: New file.
64748         * sysdeps/generic/libnss_nis.abilist: New file.
64749         * sysdeps/generic/libnss_nisplus.abilist: New file.
64750         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64751         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64752         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64753         file.
64754         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64755         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64756         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64757         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64758         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64759         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64760         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64761         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64762         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64763         file.
64764         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64765         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64766         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64767         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64768         file.
64769         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64770         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64771         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64772         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64773         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64774         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64775         file.
64776         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64777         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64778         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64779         file.
64780         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64781         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64782         New file.
64783         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64784         New file.
64785         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64786         New file.
64787         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64788         New file.
64789         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64790         New file.
64791         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64792         New file.
64793         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64794         New file.
64795         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64796         New file.
64797         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64798         New file.
64799         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64800         New file.
64801         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64802         New file.
64803         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64804         New file.
64805         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64806         New file.
64807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64808         file.
64809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64810         New file.
64811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64812         New file.
64813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64814         file.
64815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64816         New file.
64817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64818         New file.
64819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64820         file.
64821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64822         New file.
64823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64824         New file.
64825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64826         New file.
64827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64828         New file.
64829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64830         New file.
64831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64832         New file.
64833         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64835         file.
64836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64837         New file.
64838         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64839         file.
64840         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64841         file.
64842         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64843         file.
64844         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64845         file.
64846         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64847         file.
64848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64849         New file.
64850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64851         file.
64852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64853         file.
64854         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64855         New file.
64856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64857         file.
64858         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64859         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64860         file.
64861         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64862         New file.
64863         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64864         file.
64865         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64866         file.
64867         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64868         file.
64869         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64870         file.
64871         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64872         file.
64873         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64874         New file.
64875         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64876         file.
64877         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64878         file.
64879         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64880         New file.
64881         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64882         file.
64883         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64884         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64885         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64886         file.
64887         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64888         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64889         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64890         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64891         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64892         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64893         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64894         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64895         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64896         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64897         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64898         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64899         file.
64900         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64901         New file.
64902         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64903         file.
64904         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64905         file.
64906         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64907         file.
64908         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64909         file.
64910         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64911         file.
64912         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64913         New file.
64914         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64915         New file.
64916         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64917         file.
64918         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64919         New file.
64920         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64921         file.
64922         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64923         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64924         file.
64925         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64926         New file.
64927         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64928         file.
64929         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64930         file.
64931         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64932         file.
64933         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64934         file.
64935         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64936         file.
64937         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64938         New file.
64939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64940         New file.
64941         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64942         file.
64943         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64944         New file.
64945         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64946         file.
64947
64948 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64949
64950         * conform/conformtest.pl: Fix typo in handling typed-constant from
64951         allow-header.
64952
64953 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64954
64955         * README: Cut down references to pre-2.6 Linux kernels and
64956         Linuxthreads.  Update lists of configurations in libc and ports
64957         and sort alphabetically.  Say "or newer" with Linux kernel version
64958         requirements.
64959
64960         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64961
64962 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64963
64964         [BZ #887]
64965         * math/libm-test.inc (logb_test_downward): New test to expose
64966         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64967         rounding mode.
64968
64969 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64970
64971         [BZ #14027]
64972         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64973         to be done.
64974         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64975         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64976
64977 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64978
64979         * sysdeps/unix/i386/brk.S: Remove file.
64980         * sysdeps/unix/i386/dl-brk.S: Likewise.
64981         * sysdeps/unix/i386/pipe.S: Likewise.
64982         * sysdeps/unix/i386/sigreturn.S: Likewise.
64983         * sysdeps/unix/i386/syscall.S: Likewise.
64984         * sysdeps/unix/i386/vfork.S: Likewise.
64985         * sysdeps/unix/i386/wait.S: Likewise.
64986
64987         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64988         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64989
64990         * configure.in (arm*-none*): Do not allow without
64991         --enable-hacker-mode.
64992         (netbsd*): Remove case setting base_os.
64993         (386bsd*): Likewise.
64994         (freebsd*): Likewise.
64995         (bsdi*): Likewise.
64996         (osf*): Likewise.
64997         (sunos*): Likewise.
64998         (ultrix*): Likewise.
64999         (newsos*): Likewise.
65000         (dynix*): Likewise.
65001         (*bsd*): Likewise.
65002         (sysv*): Likewise.
65003         (isc*): Likewise.
65004         (esix*): Likewise.
65005         (sco*): Likewise.
65006         (minix*): Likewise.
65007         (irix4*): Likewise.
65008         (irix6*): Likewise.
65009         (solaris[2-9]*): Likewise.
65010         (none): Likewise.
65011         * configure: Regenerated.
65012
65013 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65014
65015         [BZ #11521]
65016         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65017         overflow or cancellation in calculating denominator.
65018         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65019         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65020         down expression to avoid unexpected rounding in newer GCCs.
65021         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65022
65023 2012-04-26  David S. Miller  <davem@davemloft.net>
65024
65025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65026         long-double compat symbols.
65027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65040
65041 2012-04-25  David S. Miller  <davem@davemloft.net>
65042
65043         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65044         HWCAP_* values only after the memory barriers have been defined.
65045         (atomic_full_barrier): Define.
65046         (atomic_read_barrier): Define.
65047         (atomic_write_barrier): Define.
65048
65049 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65050
65051         * shlib-versions: Add libgcc_s version information.
65052         * sysdeps/generic/libgcc_s.h: Remove.
65053         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65054         libgcc_s.h.
65055         * sysdeps/gnu/unwind-resume.c: Likewise.
65056         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65057
65058 2012-04-25  David S. Miller  <davem@davemloft.net>
65059
65060         * sysdeps/unix/sparc/brk.S: Delete.
65061         * sysdeps/unix/sparc/dl-brk.S: Delete.
65062         * sysdeps/unix/sparc/pipe.S: Delete.
65063         * sysdeps/unix/sparc/sysdep.S: Delete.
65064         * sysdeps/unix/sparc/sysdep.h: Delete.
65065         * sysdeps/unix/sparc/vfork.S: Delete.
65066         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65067         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65068         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65069         (ret_ERRVAL, r0, r1, MOVE): Define.
65070         (JUMPTARGET): Remove.
65071         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65072         sysdeps/unix/sparc/sysdep.h
65073         (ENTRY, END): Remove.
65074         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65075
65076 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65077
65078         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65079         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65080         -DIS_IN_build.
65081
65082         * timezone/README: Update upstream location and email address for
65083         tzcode and tzdata.
65084         * timezone/zdump.c: Update from tzcode 2012b.
65085         * timezone/zic.c: Likewise.
65086
65087         * configure.in (libc_cv_as_needed): Remove test.
65088         * configure: Regenerated.
65089         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65090         conditional definition.
65091         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65092         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65093         * config.make.in (have-as-needed): Remove variable.
65094
65095 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65096             Paul Pluzhnikov  <ppluzhnikov@google.com>
65097
65098         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65099         strings correctly.
65100
65101 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65102
65103         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65104         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65105         * sysdeps/sh/strlen.S: Likewise.
65106
65107 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65108
65109         * sysdeps/unix/fork.S: Remove file.
65110         * sysdeps/unix/i386/fork.S: Likewise.
65111         * sysdeps/unix/sparc/fork.S: Likewise.
65112
65113         * sysdeps/unix/system.c: Remove file.
65114         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65115
65116         * sysdeps/unix/getegid.S: Remove file.
65117         * sysdeps/unix/geteuid.S: Likewise.
65118
65119 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65120
65121         * scripts/check-localplt.awk: New file.
65122         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65123         of diff.
65124         * scripts/data/localplt-generic.data: Add a comment.
65125
65126         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65127         NODE when __dir_mkfile failed.
65128         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65129         Reported by Ludovic Courtès <ludo@gnu.org>.
65130
65131 2012-04-24  Andreas Jaeger  <aj@suse.de>
65132
65133         * Makerules (common-clean): Also remove gen-as-const-headers
65134         files.
65135
65136 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65137
65138         * Makerules (native-compile): Do not change working directory for
65139         build.  Use $(OUTPUT_OPTION) in command.
65140         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65141
65142 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65143
65144         [BZ #13886]
65145         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65146         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65147         * math/libm-test.inc (floor_test): Add more tests.
65148         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65149
65150 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65151
65152         * sysdeps/unix/getdents.c: Remove file.
65153         * sysdeps/unix/sysv/getdents.c: Likewise.
65154         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65155
65156         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65157         sysdeps/unix/mman/syscalls.list.
65158         (mmap): Likewise.
65159         (mprotect): Likewise.
65160         (msync): Likewise.
65161         (munmap): Likewise.
65162         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65163         * sysdeps/unix/mman/syscalls.list: Remove.
65164         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65165
65166         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65167         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65168         * configure: Regenerated.
65169         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65170         $(libgcc_s_suffix).
65171         * config.make.in (libgcc_s_suffix): Remove variable.
65172
65173 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65174
65175         * sysdeps/unix/sysv/gethostname.c: Move to ...
65176         * sysdeps/posix/gethostname.c: ... here.
65177
65178         * sysdeps/unix/execve.S: Remove file.
65179
65180         * sysdeps/unix/_exit.S: Remove file.
65181
65182 2012-04-23  Andreas Jaeger  <aj@suse.de>
65183
65184         [BZ #13739]
65185         * manual/Makefile: Remove make dist support, there's no
65186         need for a stand-alone documentation tar ball.
65187         (TEXI2DVI): Define always, it's not in Makeconfig.
65188         (dist): Removed.
65189         (tar-it): Removed.
65190         (edition): Removed.
65191         (glibc-doc-$(edition).tar): Removed
65192         (%.Z): Removed.
65193         (%.gz): Removed.
65194         (%.uu): Removed.
65195         (ETAGS): Remove, it's in Makeconfig.
65196         (move-if-change): Remove, it's in Makeconfig.
65197
65198 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65199
65200         [BZ #13970]
65201         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65202         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65203         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65204         (strtod_l, strtof_l, strtold_l): Remove __wur.
65205         It is not necessarily an error to ignore strtol's return value.
65206         One can reliably look at the stored endptr to decide whether
65207         the number had valid syntax.
65208
65209 2012-04-21  Andreas Jaeger  <aj@suse.de>
65210
65211         [BZ #13739]
65212         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65213
65214 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65215
65216         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65217         * sysdeps/unix/sysv/Versions: Remove file.
65218
65219 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65220
65221         [BZ #13927]
65222         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65223
65224 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65225
65226         [BZ #7064]
65227         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65228         version from __vm86.
65229
65230 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65231
65232         * sysdeps/unix/common/lxstat.c: Remove file.
65233         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65234
65235         * sysdeps/unix/sysv/Makefile: Remove file.
65236
65237         * sysdeps/unix/sysv/direct.h: Remove file.
65238
65239         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65240         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65241         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65242         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65243         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65244         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65245         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65246
65247         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65248
65249         * sysdeps/unix/xmknod.c: Remove file.
65250         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65251
65252         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65253
65254         * sysdeps/unix/sysv/i386/time.S: Remove file.
65255
65256         * sysdeps/unix/fxstat.c: Remove file.
65257         * sysdeps/unix/xstat.c: Likewise.
65258         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65259
65260         * sysdeps/unix/sysv/sigaction.c: Remove file.
65261
65262         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65263         (sysdep_headers): Remove variable.
65264         [termio.h not in sysdep_headers] (generated): Likewise.
65265         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65266         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65267         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65268         * sysdeps/unix/sysv/tcflow.c: Likewise.
65269         * sysdeps/unix/sysv/tcflush.c: Likewise.
65270         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65271         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65272         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65273         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65274         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65275
65276         * sysdeps/unix/siglist.c: Remove file.
65277
65278         * sysdeps/unix/getppid.S: Remove file.
65279
65280         * sysdeps/unix/mkdir.c: Remove file.
65281         * sysdeps/unix/rmdir.c: Likewise.
65282
65283 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65284
65285         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65286         ERR_MAX value.
65287         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65288         errlist-compat value.
65289
65290 2012-04-18  David S. Miller  <davem@davemloft.net>
65291
65292         * sysdeps/generic/memcopy.h (reg_char): Delete.
65293         * debug/strcat_chk.c: Use char, not reg_char.
65294         * debug/strcpy_chk.c: Likewise.
65295         * debug/strncat_chk.c: Likewise.
65296         * debug/strncpy_chk.c: Likewise.
65297         * string/memchr.c: Likewise.
65298         * string/memrchr.c: Likewise.
65299         * string/rawmemchr.c: Likewise.
65300         * string/strcat.c: Likewise.
65301         * string/strchr.c: Likewise.
65302         * string/strchrnul.c: Likewise.
65303         * string/strcmp.c: Likewise.
65304         * string/strcpy.c: Likewise.
65305         * string/strncat.c: Likewise.
65306         * string/strncmp.c: Likewise.
65307         * string/strncpy.c: Likewise.
65308
65309 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65310
65311         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65312         __builtin_memcopy is called when src and dest ranges are known to not
65313         overlap.
65314
65315 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65316
65317         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65318         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65319         fwd_align_merge macro call.
65320         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65321         bwd_align_merge macro call.
65322         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65323
65324 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65325
65326         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65327         bwd_align_merge macros.
65328         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65329         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65330         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65331
65332 2012-04-18  David S. Miller  <davem@davemloft.net>
65333
65334         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65335
65336 2012-04-18  Andreas Jaeger  <aj@suse.de>
65337
65338         [BZ# 6794]
65339         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65340         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65341         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65342
65343         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65344         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65345         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65346
65347         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65348         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65349         Adjust for changed ldbl-128 files.
65350
65351         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65352         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65353         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65354
65355 2012-04-17  David S. Miller  <davem@davemloft.net>
65356
65357         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65358
65359 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65360
65361         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65362         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65363         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65364         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65365         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65366         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65367
65368 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65369
65370         [BZ #6794]
65371         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65372         * math/libm-test.inc: Add ilogb errno and exception tests.
65373         * math/w_ilogb.c: New file: ilogb wrapper.
65374         * math/w_ilogbf.c: New file: ilogbf wrapper.
65375         * math/w_ilogbl.c: New file: ilogbl wrapper.
65376         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65377         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65378         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65379         exception being thrown with 0.0 as argument.
65380         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65381         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65382         exception being thrown with 0.0 as argument.
65383         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65384         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65385         exception being thrown with 0.0 as argument.
65386         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65387         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65388         exception being thrown with 0.0 as argument.
65389         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65390         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65391         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65392         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65393         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65394         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65395         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65396         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65397         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65398
65399 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65400
65401         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65402         with altivec.
65403
65404 2012-04-16  Marek Polacek  <polacek@redhat.com>
65405
65406         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65407
65408 2012-04-16  Marek Polacek  <polacek@redhat.com>
65409
65410         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65411         operands of fdivp instruction.
65412
65413 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65414
65415         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65416         * elf/tst-auditmod3b.c: Likewise.
65417         * elf/tst-auditmod4b.c: Likewise.
65418         * elf/tst-auditmod5b.c: Likewise.
65419         * elf/tst-auditmod6b.c: Likewise.
65420         * elf/tst-auditmod6c.c: Likewise.
65421         * elf/tst-auditmod7b.c: Likewise.
65422         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65423         * sysdeps/x86_64/preconfigure.in: Likewise.
65424         * sysdeps/x86_64/preconfigure: Regenerated.
65425
65426 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65427
65428         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65429         __ILP32__.
65430
65431 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65432
65433         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65434         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65435
65436 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65437
65438         [BZ #13973]
65439         * locale/iso-639.def: Fix gl language name. Spotted by
65440         Yaron Shahrabani.
65441
65442 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65443
65444         [BZ #2074]
65445         * libio/libio.h (__io_write_fn): Update comment.
65446
65447 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65448
65449         [BZ #2074]
65450         * stdio.texi (Hook Functions): The user provided writer function
65451         is not allowed to return -1.
65452
65453 2012-04-11  David S. Miller  <davem@davemloft.net>
65454
65455         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65456
65457 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65458
65459         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65460         Add a leading slash to rtkaio.
65461
65462 2012-04-11  Jim Meyering  <meyering@redhat.com>
65463
65464         [BZ #11959]
65465         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65466         It is not necessarily an error to ignore fwrite's return
65467         value.  One can reliably use ferror to test for errors after
65468         the fact.
65469
65470 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65471
65472         * bits/types.h (__snseconds_t): New type.
65473         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65474
65475         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65476         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65477         (__SNSECONDS_T_TYPE): Likewise.
65478         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65479         (__SNSECONDS_T_TYPE): Likewise.
65480         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65481         (__SNSECONDS_T_TYPE): Likewise.
65482
65483 2012-04-10  Andreas Jaeger  <aj@suse.de>
65484
65485         [BZ #2636]
65486         * manual/time.texi (Processor Time): Return type of times is
65487         elapsed real time since an arbitrary point in the past.
65488         (CPU Time): Move CLK_TCK from here...
65489         (Processor Time): ...to here.  Correct description.
65490         * manual/conf.texi (Constants for Sysconf): Correct description of
65491         _SC_CLK_TCK.
65492
65493 2012-04-10  David S. Miller  <davem@davemloft.net>
65494
65495         [BZ #13967]
65496         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65497         where the is a gap between DT_REL(A) and DT_JMPREL.
65498
65499 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65500
65501         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65502         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65503         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65504
65505 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65506
65507         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65508         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65509         (dl_main): Handle --inhibit-cache.
65510         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65511         _dl_inhibit_cache.
65512         * elf/dl-load.c (_dl_map_object): Use it.
65513         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65514
65515 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65516
65517         [BZ #13872]
65518         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65519         (__ieee754_powl): Saturate large exponents rather than testing for
65520         overflow of y*log2(x).
65521         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65522         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65523         exceptions.
65524
65525         [BZ #11521]
65526         * math/s_ctan.c: Include <float.h>.
65527         (__ctan): Avoid internal overflow or cancellation in calculating
65528         denominator.
65529         * math/s_ctanf.c: Likewise.
65530         * math/s_ctanl.c: Likewise.
65531         * math/s_ctanh.c: Likewise.
65532         * math/s_ctanhf.c: Likewise.
65533         * math/s_ctanhl.c: Likewise.
65534         * math/libm-test.inc (ctan_test): Add more tests.
65535         (ctanh_test): Likewise.
65536         * sysdeps/i386/fpu/libm-test-ulps: Update.
65537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65538
65539 2012-04-09  Andreas Jaeger  <aj@suse.de>
65540
65541         [BZ #6894]
65542         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65543         is an optional BSD extension.
65544
65545         [BZ #10254]
65546         * manual/stdio.texi (Opening Streams): Document additional fopen
65547         parameters.
65548
65549 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65550
65551         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65552         %eax without telling the compiler.
65553
65554 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65555
65556         [BZ # 13963]
65557         * manual/install.texi: Use sourceware.org.
65558
65559 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65560
65561         [BZ #13873]
65562         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65563         (__ieee754_pow): Generate overflow and underflow using huge*huge
65564         and tiny*tiny rather than just returning constant infinity or zero
65565         for large exponents.
65566         * math/libm-test.inc (pow_test): Require overflow exceptions for
65567         applicable cases of large exponents.
65568
65569         [BZ #706]
65570         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65571         (__ieee754_pow): Use iterative multiplication algorithm only for
65572         integer exponents with absolute value below 1024.  Check for odd
65573         integer exponents when using algorithm for real exponents.
65574         * math/libm-test.inc (pow_test): Add more tests.
65575         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65576
65577 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65578
65579         [BZ #13705]
65580         * math/libm-test.inc (exp_test): Do not allow overflow exception
65581         on underflow test.
65582
65583 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65584
65585         [BZ #13705]
65586         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65587         instead of __kernel_standard_f.
65588
65589 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65590
65591         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65592         * sysdeps/x86_64/memset_chk.S: Likewise.
65593
65594 2012-04-08  Andreas Jaeger  <aj@suse.de>
65595
65596         [BZ #10153]
65597         * manual/startup.texi (Environment Access): Describe return value
65598         for putenv and setenv.
65599
65600         [BZ #6895]
65601         * manual/filesys.texi (Directory Entries): Add description for
65602         DT_LNK.
65603
65604         [BZ #6890]
65605         * manual/filesys.texi (Directory Entries): Clarify that it's file
65606         system not operating system in the description of DT_UNKNOWN.
65607
65608         [BZ #6578]
65609         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65610
65611 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65612
65613         [BZ #6649]
65614         * manual/llio.texi (Opening and Closing Files): Add cross
65615         reference to explain mode argument.
65616
65617 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65618
65619         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65620         * sysdeps/x86_64/memset_chk.S: Likewise.
65621
65622 2012-04-07  David S. Miller  <davem@davemloft.net>
65623
65624         * elf/elf.h (R_SPARC_WDISP10): Define.
65625         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65626         R_SPARC_SIZE32.
65627         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65628         R_SPARC_SIZE64 and R_SPARC_H34.
65629
65630 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65631
65632         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65633         conditions and remove no longer applicable assertion.
65634
65635 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65636
65637         * bits/byteswap.h: Include <features.h>.
65638         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65639         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65640
65641 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65642
65643         * bits/byteswap.h (__bswap_16): Removed.
65644         Include <bits/byteswap-16.h> to get __bswap_16.
65645         * sysdeps/i386/bits/byteswap.h: Likewise.
65646         * sysdeps/s390/bits/byteswap.h: Likewise.
65647         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65648         * bits/byteswap-16.h: New file.
65649         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65650         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65651         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65652         * string/Makefile (headers): Add bits/byteswap-16.h.
65653
65654 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65655
65656         [BZ #13895]
65657         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65658         extra indirection.
65659         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65660         * nss/tst-nss-static.c: New.
65661
65662 2012-04-06  Robert Millan  <rmh@gnu.org>
65663
65664         [BZ #6486]
65665         * manual/llio.texi (File Position Primitive): lseek
65666         refers to WHENCE when it really means OFFSET.
65667
65668 2012-04-06  Andreas Jaeger  <aj@suse.de>
65669
65670         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65671         strncmp declarations.
65672
65673         * abilist/libc.abilist: Add __poll and __ppoll.
65674
65675 2012-04-05  David S. Miller  <davem@davemloft.net>
65676
65677         * scripts/check-local-headers.sh: Accept a host triplet in the
65678         path matched by the exclude regexp.
65679
65680         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65681         definition.
65682         * sysdeps/powerpc/powerpc32/dl-machine.h
65683         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65684         * sysdeps/s390/s390-32/dl-machine.h
65685         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65686         * sysdeps/sparc/sparc32/dl-machine.h
65687         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65688         * sysdeps/sparc/sparc64/dl-machine.h
65689         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65690
65691         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65692         lazy binding.
65693         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65694         undefined symbol errors.
65695
65696         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65697         DT_NEEDED entries.
65698
65699 2012-04-05  Michael Matz  <matz@suse.de>
65700
65701         [BZ #13592]
65702         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65703
65704 2012-04-05  Andreas Jaeger  <aj@suse.de>
65705
65706         [BZ #13908]
65707         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65708         comment.
65709
65710 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65711
65712         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65713         which ROUND is no valid rounding mode.
65714
65715 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65716
65717         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65718         read again.
65719         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65720
65721 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65722
65723         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65724         an exception using FPU order intentionally.
65725
65726 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65727
65728         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65729         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65730         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65731         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65732
65733 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65734
65735         [BZ #12340]
65736         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65737         EINVAL when BUFLEN is too smal.
65738
65739 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65740
65741         [BZ #13553]
65742         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65743         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65744
65745 2012-04-03  Andreas Jaeger  <aj@suse.de>
65746
65747         [BZ #13938]
65748         * manual/setjmp.texi (System V contexts): Fix sentence.
65749
65750         [BZ #13926]
65751         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65752         New macro for this case.
65753         [!__GNUC__] (__bswap_64): New inline function for this case.
65754         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65755         * bits/byteswap.h: Likewise.
65756         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65757         ull, guard with __GLIBC_HAVE_LONG_LONG.
65758
65759         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65760         __GLIBC_HAVE_LONG_LONG.
65761
65762         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65763         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65764
65765 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65766
65767         [BZ #13691]
65768         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65769         inptr and inend, rather than using last_ch.
65770
65771 2012-04-02  David S. Miller  <davem@davemloft.net>
65772
65773         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65774         * stdio-common/printf-parse.h (read_int): Change return type to
65775         'int', return -1 on INT_MAX overflow.
65776         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65777         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65778         overflows INT_MAX.  Check for overflow of in-format-string precision
65779         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65780         SIZE_MAX not INT_MAX for integer overflow test.
65781         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65782         skip the construct in the format string but do not record anything.
65783         * stdio-common/bug22.c: Adjust to test both width/prevision
65784         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65785         explicitly for proper errno values.
65786
65787 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65788
65789         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65790         CHAR_MAX.
65791         * string/test-strcmp.c [! WIDE]: Likewise.
65792         * time/tst-mktime2.c: Likewise for INT_MAX.
65793         * string/test-string.h: #include <sys/param.h> for MIN.
65794
65795         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65796         * sysdeps/i386/init-first.c (init): Likewise.
65797         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65798         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65799         * sysdeps/sh/init-first.c (init): Likewise.
65800
65801 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65802
65803         * po/ru.po: Update from translation team.
65804         * po/vi.po: Likewise.
65805
65806 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65807
65808         * resolv/nss_dns/dns-host.c: Merge copyright years.
65809
65810 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65811
65812         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65813         Optimize memcpy with prefetch if
65814         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65815         src, dst pointers have unequal 16 byte alignments.
65816
65817 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65818
65819         [BZ #13928]
65820         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65821         from a CNAME entry and return the minimum ttl for the query.
65822         (gaih_getanswer_slice): Likewise.
65823
65824 2012-03-30  Jeff Law  <law@redhat.com>
65825
65826         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65827         due to long keys.
65828         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65829         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65830
65831         * resolv/nss_dns/dns-host.c: Update copyright year.
65832
65833 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65834
65835         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65836         requests to save a system call.  Fix check that all bytes are sent.
65837
65838         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65839         comments for sendmmsg.
65840
65841 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65842
65843         [BZ #13691]
65844         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65845         with only 1 character between 0x0041 and 0x01b0.
65846         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65847         * wcsmbs/tst-mbsnrtowcs.c: New file.
65848
65849 2012-03-29  David S. Miller  <davem@davemloft.net>
65850
65851         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65852         small copies by hand.
65853
65854 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65855
65856         [BZ #13761]
65857         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65858         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65859         group memberships.
65860
65861 2012-03-28  David S. Miller  <davem@davemloft.net>
65862
65863         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65864         that branches into memcpy.
65865         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65866         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65867         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65868         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65869         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65870         bits.
65871         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65872         implementation too.
65873         * sysdeps/sparc/mempcpy.S: New file.
65874
65875         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65876         the IFUNC routine in the libc case.
65877         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65878
65879         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65880         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65881         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65882         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65883         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65884         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65885         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65886         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65887
65888         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65889         loop to 256 bytes instead of 64 bytes and fix test signedness.
65890
65891         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65892         * sysdeps/sparc/sparc32/Makefile: rather than here...
65893         * sysdeps/sparc/sparc64/Makefile: and here.
65894
65895 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65896
65897         * malloc/mallocbug.c: Avoid warnings about unused variables.
65898
65899 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65900
65901         [BZ #13760]
65902         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65903         in the right place. Discard and retry query if response is
65904         larger than input buffer size.
65905
65906 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65907
65908         [BZ #369]
65909         [BZ #2678]
65910         [BZ #3866]
65911         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65912         x for large integer exponent.
65913         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65914         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65915         sign of result as needed afterwards.
65916         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65917         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65918         result for underflowing pow the same as for overflow.
65919         (__kernel_standard_l): Handle powl overflow and underflow here
65920         rather than calling __kernel_standard.
65921         * math/libm-test.inc (pow_test): Add more tests.
65922
65923         [BZ #3868]
65924         [BZ #13879]
65925         [BZ #13910]
65926         [BZ #13911]
65927         [BZ #13912]
65928         [BZ #13913]
65929         [BZ #13915]
65930         [BZ #13916]
65931         [BZ #13917]
65932         [BZ #13918]
65933         [BZ #13919]
65934         [BZ #13920]
65935         [BZ #13921]
65936         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65937         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65938         (__kernel_standard_l): New function.
65939         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65940         __kernel_standard.
65941         * math/w_acosl.c (__acosl): Likewise.
65942         * math/w_asinl.c (__asinl): Likewise.
65943         * math/w_atan2l.c (__atan2l): Likewise.
65944         * math/w_atanhl.c (__atanhl): Likewise.
65945         * math/w_coshl.c (__coshl): Likewise.
65946         * math/w_exp10l.c (__exp10l): Likewise.
65947         * math/w_exp2l.c (__exp2l): Likewise.
65948         * math/w_fmodl.c (__fmodl): Likewise.
65949         * math/w_hypotl.c (__hypotl): Likewise.
65950         * math/w_j0l.c (__j0l, __y0l): Likewise.
65951         * math/w_j1l.c (__j1l, __y1l): Likewise.
65952         * math/w_jnl.c (__jnl, __ynl): Likewise.
65953         * math/w_lgammal.c (__lgammal): Likewise.
65954         * math/w_log10l.c (__log10l): Likewise.
65955         * math/w_log2l.c (__log2l): Likewise.
65956         * math/w_logl.c (__logl): Likewise.
65957         * math/w_powl.c (__powl): Likewise.
65958         * math/w_remainderl.c (__remainderl): Likewise.
65959         * math/w_scalbl.c (sysv_scalbl): Likewise.
65960         * math/w_sinhl.c (__sinhl): Likewise.
65961         * math/w_sqrtl.c (__sqrtl): Likewise.
65962         * math/w_tgammal.c (__tgammal): Likewise.
65963         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65964         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65965         * math/libm-test.inc (acos_test): Add more tests.
65966         (acosh_test): Likewise.
65967         (asin_test): Likewise.
65968         (atanh_test): Likewise.
65969         (exp_test): Likewise.
65970         (exp10_test): Likewise.
65971         (exp2_test): Likewise.
65972         (expm1_test): Likewise.
65973         (lgamma_test): Likewise.
65974         (log_test): Likewise.
65975         (log10_test): Likewise.
65976         (log1p_test): Likewise.
65977         (log2_test): Likewise.
65978         (pow_test): Do not allow some spurious overflow exceptions.
65979         (sqrt_test): Add more tests.
65980         (tgamma_test): Likewise.
65981         (y0_test): Likewise.
65982         (y1_test): Likewise.
65983         (yn_test): Likewise.
65984
65985 2012-03-27  Anton Blanchard  <anton@samba.org>
65986
65987         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65988         MAP_HUGETLB.
65989         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65990         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65991         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65992
65993 2012-03-27  David S. Miller  <davem@davemloft.net>
65994
65995         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65996
65997         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65998         have-as-vis3 check.
65999
66000 2012-03-27  Andreas Jaeger  <aj@suse.de>
66001
66002         * sysdeps/x86_64/elf/configure.in: Moved to ...
66003         * sysdeps/x86_64/configure.in: ... here.
66004         * sysdeps/x86_64/elf/start.S: Moved to ...
66005         * sysdeps/x86_64/start.S: ... here.
66006         * sysdeps/x86_64/elf/configure: Delete.
66007
66008         * sysdeps/x86_64/configure.in: Merge contents from
66009         sysdeps/i386/configure.in (without i686 check).
66010
66011         * sysdeps/i386/elf/Versions: Merge into ...
66012         * sysdeps/i386/Versions: ... this.
66013         * sysdeps/i386/elf/Versions: Delete file.
66014         * sysdeps/i386/elf/start.S: Moved to ...
66015         * sysdeps/i386/start.S: ...here.
66016         * sysdeps/i386/elf/configure.in: Merge into...
66017         * sysdeps/i386/configure.in: ...here.
66018         * sysdeps/i386/elf/configure.in: Delete file.
66019         * sysdeps/i386/elf/configure: Delete file.
66020
66021         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66022         * debug/backtracesyms.c: ... here.
66023         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66024         * debug/backtracesymsfd.c: ... here.
66025         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66026         * sysdeps/generic/ifunc-sel.h: ... here.
66027
66028         * sysdeps/unix/i386/start.c: Delete file.
66029         * sysdeps/unix/sparc/start.c: Delete file.
66030         * sysdeps/unix/start.c: Delete file.
66031
66032         * sysdeps/sh/elf/configure.in: Moved to ...
66033         * sysdeps/sh/configure.in: ... here.
66034         * sysdeps/sh/elf/start.S: Moved to ...
66035         * sysdeps/sh/start.S: ... here.
66036         * sysdeps/sh/elf/configure: Delete file.
66037
66038         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66039         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66040         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66041         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66042         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66043         * sysdeps/powerpc/powerpc64/start.S: here.
66044         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66045         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66046         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66047         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66048         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66049
66050         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66051         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66052         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66053         * sysdeps/powerpc/powerpc32/start.S: ... here.
66054         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66055         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66056         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66057
66058         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66059         * sysdeps/powerpc/ifunc-sel.h: ... here.
66060         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66061         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66062
66063         * sysdeps/sparc/elf/configure.in: Moved to ...
66064         * sysdeps/sparc/configure.in: ... here.
66065         * sysdeps/sparc/elf/configure: Delete file.
66066         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66067         * sysdeps/sparc/sparc32/start.S: ... here.
66068         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66069         * sysdeps/sparc/sparc64/start.S: ... here.
66070         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66071         * sysdeps/sparc/sparc32/Makefile: ... this.
66072         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66073         * sysdeps/sparc/sparc64/Makefile: ... this.
66074
66075         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66076         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66077         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66078         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66079         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66080         * sysdeps/s390/s390-32/setjmp.S: ... here.
66081         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66082         * sysdeps/s390/s390-32/configure.in: ... here.
66083         * sysdeps/s390/s390-32/elf/configure: Delete file.
66084         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66085         * sysdeps/s390/s390-32/start.S: ... here.
66086
66087         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66088         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66089         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66090         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66091         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66092         * sysdeps/s390/s390-64/setjmp.S: ... here.
66093         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66094         * sysdeps/s390/s390-64/configure.in: ... here
66095         * sysdeps/s390/s390-64/elf/configure: Delete file.
66096         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66097         * sysdeps/s390/s390-64/start.S: ... here.
66098         * sysdeps/s390/s390-64/elf/configure: Delete.
66099
66100         * configure.in: Remove support for elf directories in sysdeps.
66101
66102         * configure: Regenerated.
66103         * sysdeps/i386/configure: Regenerated.
66104         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66105         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66106         * sysdeps/s390/s390-32/configure: Regenerated.
66107         * sysdeps/s390/s390-64/configure: Regenerated.
66108         * sysdeps/sh/configure: Regenerated.
66109         * sysdeps/sparc/configure: Regenerated.
66110         * sysdeps/x86_64/configure: Regenerated.
66111
66112 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66113
66114         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66115
66116         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66117         denormal result into account.
66118
66119 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66120
66121         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66122         Reported by Allan McRae <allan@archlinux.org>.
66123
66124 2012-03-23  Jeff Law  <law@redhat.com>
66125
66126         * nss/getnssent.c (__nss_getent): Fix typo.
66127
66128 2012-03-23  David S. Miller  <davem@davemloft.net>
66129
66130         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66131
66132 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66133
66134         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66135         to pad to uint64_t for each field.
66136         (dl_tls_index): Replace unsigned long with uint64_t.
66137
66138 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66139         Paul Pluzhnikov  <ppluzhnikov@google.com>
66140
66141         [BZ #6528]
66142         * grp/Makefile (otherlibs): Don't set it.
66143         * inet/Makefile (otherlibs): Likewise.
66144         * login/Makefile (otherlibs): Likewise.
66145         * nscd/Makefile (otherlibs): Likewise.
66146         * posix/Makefile (otherlibs): Likewise.
66147         * pwd/Makefile (otherlibs): Likewise.
66148         * rt/Makefile (otherlibs): Likewise.
66149         * sunrpc/Makefile (otherlibs): Likewise.
66150         * nss/Makefile (otherlibs): Likewise.
66151         Add libnss_files to routines and static-only-routines.
66152         ($(objpfx)getent): Remove rule.
66153         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66154         static-only-routines.
66155
66156 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66157
66158         [BZ #13892]
66159         * math/s_cexp.c: Include <float.h>.
66160         (__cexp): Handle exp result overflowing not necessarily
66161         overflowing both real and imaginary parts of result.
66162         * math/s_cexpf.c: Likewise.
66163         * math/s_cexpl.c: Likewise.
66164         * math/libm-test.inc (cexp_test): Add more tests.
66165         * sysdeps/i386/fpu/libm-test-ulps: Update.
66166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66167
66168 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66169
66170         * include/link.h (ELFW): New macro.
66171         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66172         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66173
66174 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66175
66176         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66177         with uint64_t.
66178
66179 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66180
66181         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66182         declaration.
66183         (struct La_x32_retval): Likewise.
66184
66185 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66186
66187         * sysdeps/x86_64/preconfigure.in: New file.
66188         * sysdeps/x86_64/preconfigure: New generated file.
66189
66190 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66191
66192         [BZ #13824]
66193         * math/e_exp2l.c: Include <float.h>.
66194         (__ieee754_exp2l): Handle overflow and underflow cases
66195         separately.  Only pass fractional part of argument to
66196         __ieee754_expl.
66197         * math/libm-test.inc (exp2_test): Add more tests.
66198
66199         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66200         negating x to take absolute value.
66201         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66202         Likewise.
66203         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66204         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66205         Likewise.
66206         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66207         computing low part if x was negated.
66208         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66209
66210 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66211
66212         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66213         la_x32_gnu_pltexit.
66214         (pltexit): Cast int_retval to ptrdiff_t.
66215         * elf/tst-auditmod3b.c: Likewise.
66216         * elf/tst-auditmod4b.c: Likewise.
66217         * elf/tst-auditmod5b.c: Likewise.
66218         * elf/tst-auditmod6b.c: Likewise.
66219         * elf/tst-auditmod6c.c: Likewise.
66220         * elf/tst-auditmod7b.c: Likewise.
66221
66222         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66223         and x32_gnu_pltexit.
66224
66225         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66226         __ELF_NATIVE_CLASS.
66227         (La_x32_regs): New macro.
66228         (La_x32_retval): Likewise.
66229         (la_x32_gnu_pltenter): New function prototype.
66230         (la_x32_gnu_pltexit): Likewise.
66231
66232 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66233
66234         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66235         exponent.
66236
66237         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66238
66239         * configure.in (libc_cv_cc_nofma): Check for option to disable
66240         generation of FMA instructions.
66241         * configure: Regenerate.
66242         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66243         * sysdeps/ieee754/dbl-64/Makefile: New file.
66244         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66245         Remove brandred-fma4.
66246         (CFLAGS-brandred-fma4.c): Remove.
66247         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66248         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66249         define.
66250         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66251         define.
66252
66253 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66254
66255         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66256         LLONG_MAX != LONG_MAX.
66257         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66258         (_fitoa_word): Likewise.
66259         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66260         LLONG_MAX != LONG_MAX.
66261         * stdio-common/_itowa.h: Include <_itoa.h>.
66262         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66263         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66264         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66265         only if not defined.
66266         (_ITOA_WORD_TYPE): Likewise.
66267         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66268         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66269
66270 2012-03-21  David S. Miller  <davem@davemloft.net>
66271
66272         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66273
66274 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66275
66276         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66277         of x86_64 when setting libc_cv_slibdir, libdir and
66278         libc_cv_localedir.
66279         * sysdeps/unix/sysv/linux/configure: Regenerated.
66280
66281 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66282
66283         * manual/lang.texi (Old Varargs): Remove section.
66284         (How Variadic): Update menu.
66285         (va_start): Do not mention varargs.h.
66286
66287 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66288             Joseph Myers  <joseph@codesourcery.com>
66289
66290         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66291         link test.
66292         * configure: Regenerated.
66293
66294 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66295
66296         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66297         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66298         conformtest.pl
66299
66300 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66301
66302         * NOTES: Remove.
66303         * Makefile (files-for-dist): Remove NOTES.
66304         (NOTES): Remove rule.
66305         * README: Don't refer to NOTES.
66306         * manual/creature.texi: Don't include macros.texi.
66307         * manual/intro.texi (creature.texi): Remove comment referring to
66308         NOTES.
66309
66310         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66311         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66312         * configure: Regenerated.
66313         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66314         LIBC_TRY_CC_OPTION.
66315         (libc_cv_as_i686): Likewise.
66316         (libc_cv_cc_avx): Likewise.
66317         (libc_cv_cc_sse2avx): Likewise.
66318         (libc_cv_cc_fma4): Likewise.
66319         (libc_cv_cc_novzeroupper): Likewise.
66320         * sysdeps/i386/configure: Regenerated.
66321
66322         [BZ #13883]
66323         * sysdeps/i386/fpu/s_cexp.S: Remove.
66324         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66325         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66326         * math/libm-test.inc (cexp_test): Add more tests.
66327         * sysdeps/i386/fpu/libm-test-ulps: Update.
66328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66329
66330 2012-03-21  Allan McRae  <allan@archlinux.org>
66331
66332         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66333
66334 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66335
66336         [BZ #13871]
66337         * math/w_exp2.c: Do not include <float.h>.
66338         (o_threshold, u_threshold): Remove.
66339         (__exp2): Calculate result before checking finiteness and calling
66340         __kernel_standard.
66341         * math/w_exp2f.c: Likewise.
66342         * math/w_exp2l.c: Likewise.
66343         * math/libm-test.inc (exp2_test): Require overflow exception for
66344         1e6 input.
66345
66346         [BZ #3866]
66347         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66348         range of signed 64-bit integers before using fistpll.  Remove
66349         checks for whether integers fit in mantissa bits.
66350         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66351         the range of signed 32-bit integers before using fistpl.  Remove
66352         checks for whether integers fit in mantissa bits.
66353         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66354         (__ieee754_powl): Test for y outside the range of signed 64-bit
66355         integers before using fistpll.  Reduce 64-bit values to 63-bit
66356         ones as needed.
66357         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66358         divide-by-zero is raised for zero to large negative powers.
66359         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66360         (__ieee754_powl): Test for y outside the range of signed 64-bit
66361         integers before using fistpll.  Reduce 64-bit values to 63-bit
66362         ones as needed.
66363         * math/libm-test.inc (pow_test): Add more tests.
66364
66365 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66366
66367         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66368         <stdio-common/_itoa.h>.
66369         * debug/segfault.c: Likewise.
66370         * elf/dl-cache.c: Likewise.
66371         * elf/dl-minimal.c: Likewise.
66372         * elf/dl-misc.c: Likewise.
66373         * elf/dl-sysdep.c: Likewise.
66374         * elf/dl-version.c: Likewise.
66375         * elf/rtld.c: Likewise.
66376         * hurd/hurdsock.c: Likewise.
66377         * hurd/lookup-retry.c: Likewise.
66378         * malloc/malloc.c: Likewise.
66379         * malloc/mtrace.c: Likewise.
66380         * nscd/nscd_getgr_r.c: Likewise.
66381         * nscd/nscd_getpw_r.c: Likewise.
66382         * nscd/nscd_getserv_r.c: Likewise.
66383         * posix/getopt_init.c: Likewise.
66384         * posix/wordexp.c: Likewise.
66385         * stdio-common/_itoa.c: Likewise.
66386         * stdio-common/printf_fphex.c: Likewise.
66387         * stdio-common/vfprintf.c: Likewise.
66388         * string/_strerror.c: Likewise.
66389         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66390         * sysdeps/i386/i686/hp-timing.h: Likewise.
66391         * sysdeps/mach/_strerror.c: Likewise.
66392         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66393         * sysdeps/mach/hurd/sethostid.c: Likewise.
66394         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66395         * sysdeps/mach/xpg-strerror.c: Likewise.
66396         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66397         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66398         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66399         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66400         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66401         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66402         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66403         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66404         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66405         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66406         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66407         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66408         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66409         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66410         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66411         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66412         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66413         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66414         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66415         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66416         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66417
66418         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66419
66420         * stdio-common/_itoa.h: Moved to ...
66421         * sysdeps/generic/_itoa.h: Here.
66422
66423         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66424
66425         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66426         instead of "_itoa.h" and "_itowa.h".
66427         * stdio-common/vfprintf.: Likewise.
66428
66429 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66430
66431         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66432         <bits/wordsize.h>.
66433         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66434         (__signbit): Likwise.
66435         (llrintf): Likwise.
66436         (llrint): Likwise.
66437
66438 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66439
66440         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66441         __WORDSIZE != 64.
66442
66443 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66444
66445         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66446         OVERFLOW_EXCEPTION_OK.
66447         * math/libm-test.inc ("Philosophy"): Update comment about
66448         exception testing.
66449         (OVERFLOW_EXCEPTION): Define.
66450         (OVERFLOW_EXCEPTION_OK): Likewise.
66451         (INVALID_EXCEPTION_OK): Renumber.
66452         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66453         (IGNORE_ZERO_INF_SIGN): Likewise.
66454         (test_exceptions): Handle FE_OVERFLOW.
66455         (exp10_test): Expect overflow exceptions.
66456         (exp2_test): Likewise.
66457         (expm1_test): Likewise.
66458         (nextafter_test): Likewise.
66459         (pow_test): Likewise.
66460         (scalbn_test): Likewise.
66461         (scalbln_test): Likewise.
66462
66463 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66464
66465         * sysdeps/x86_64/bits/atomic.h
66466         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66467         64bit integer.
66468         (atomic_exchange_acq): Likewise.
66469         (__arch_exchange_and_add_body): Likewise.
66470         (__arch_add_body): Likewise.
66471         (atomic_add_negative): Likewise.
66472         (atomic_add_zero): Likewise.
66473
66474 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66475
66476         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66477         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66478
66479 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66480
66481         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66482         Check __x86_64__ instead of __WORDSIZE.
66483
66484 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66485
66486         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66487
66488 2012-03-19  David S. Miller  <davem@davemloft.net>
66489
66490         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66491
66492         * sysdeps/sparc/fpu/fenv_private.h: New file.
66493         * sysdeps/sparc/fpu/math_private.h: Use it.
66494         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66495         Remove.
66496         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66497         (libc_feholdexcept_setroundl): Remove.
66498         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66499         Remove.
66500         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66501         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66502
66503 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66504
66505         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66506         int64_t instead of long int.
66507         (INSERT_WORDS64): Likwise.
66508
66509 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66510
66511         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66512         _Unwind_GetCFA return to _Unwind_Ptr first.
66513
66514 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66515
66516         [BZ #13629]
66517         * math/s_clog.c: Include <float.h>.
66518         (__clog): Scale large or subnormal inputs.
66519         * math/s_clogf.c: Likewise.
66520         * math/s_clogl.c: Likewise.
66521         * math/s_clog10.c: Include <float.h>.
66522         (M_LOG10_2): Define.
66523         (__clog10): Scale large or subnormal inputs.
66524         * math/s_clog10f.c: Likewise.
66525         * math/s_clog10l.c: Likewise.
66526         * math/libm-test.inc (clog_test): Add more tests.
66527         (clog10_test): Likewise.
66528         * sysdeps/i386/fpu/libm-test-ulps: Update.
66529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66530
66531         [BZ #11451]
66532         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66533         x and y.
66534         * math/libm-test.inc (atan2_test): Add another test.
66535
66536         * Makerules (common-objdir-compile): Remove.
66537         * sysdeps/unix/Makefile (config-generated): Do not add
66538         $(unix-generated) to variable.
66539         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66540         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66541         Remove rule.
66542         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66543         Likewise.
66544         [generic bits/local_lim.h] (before-compile): Do not append to
66545         variable.
66546         [generic bits/local_lim.h] (common-generated): Likewise.
66547         [generic sys/param.h] (before-compile): Do not append to variable.
66548         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66549         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66550         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66551         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66552         include.
66553         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66554         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66555         [generic sys/param.h] ($(addprefix
66556         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66557         [generic sys/param.h] (common-generated): Do not append to
66558         variable.
66559         [generic sys/param.h] (sysdep_headers): Likewise.
66560         [generic bits/errno.h] (before-compile): Do not append to
66561         variable.
66562         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66563         rule.
66564         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66565         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66566         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66567         [generic bits/errno.h] (common-generated): Do not append to
66568         variable.
66569         [generic bits/ioctls.h] (before-compile): Do not append to
66570         variable.
66571         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66572         rule.
66573         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66574         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66575         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66576         rule.
66577         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66578         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66579         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66580         [generic bits/ioctls.h] (common-generated): Do not append to
66581         variable.
66582         [generic sys/syscall.h] (syscall.h): Remove variable.
66583         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66584         rule.
66585         [generic sys/syscall.h] (before-compile): Do not append to
66586         variable.
66587         [generic sys/syscall.h] (common-generated): Likewise.
66588         * sysdeps/unix/errnos-tmpl.c: Remove file.
66589         * sysdeps/unix/errnos.awk: Likewise.
66590         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66591         * sysdeps/unix/ioctls.awk: Likewise.
66592         * sysdeps/unix/mk-local_lim.c: Likewise.
66593         * sysdeps/unix/snarf-ioctls: Likewise.
66594
66595 2012-03-19  Richard Henderson  <rth@twiddle.net>
66596
66597         * sysdeps/i386/fpu/fenv_private.h: New file.
66598         * sysdeps/i386/fpu/math_private.h: Use it.
66599         (math_opt_barrier, math_force_eval): Remove.
66600         (libc_feholdexcept_setround_53bit): Remove.
66601         (libc_feupdateenv_53bit): Remove.
66602         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66603         (math_opt_barrier, math_force_eval): Remove.
66604         (libc_feholdexcept): Remove.
66605         (libc_feholdexcept_setround): Remove.
66606         (libc_fetestexcept, libc_fesetenv): Remove.
66607         (libc_feupdateenv_test): Remove.
66608         (libc_feupdateenv, libc_feholdsetround): Remove.
66609         (libc_feresetround): Remove.
66610
66611         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66612         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66613
66614         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66615         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66616         (libc_feupdateenv_testl): New.
66617         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66618         (libc_feupdateenv_testf): New.
66619         (libc_feupdateenv): Use libc_feupdateenv_test.
66620         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66621         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66622
66623         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66624         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66625         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66626         (libc_feresetround_noex): New.
66627         (libc_feresetround_noexf): New.
66628         (libc_feresetround_noexl): New.
66629         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66630         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66631         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66632         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66633         SET_RESTORE_ROUND.
66634         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66635         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66636         (__cos): Likewise.
66637         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66638         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66639         SET_RESTORE_ROUND_NOEX.
66640         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66641         SET_RESTORE_ROUND_NOEXF.
66642         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66643         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66644         (libc_feholdsetroundf): New.
66645         (libc_feresetround, libc_feresetroundf): New.
66646
66647         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66648         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66649         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66650
66651         * sysdeps/generic/math_private.h: Include <fenv.h>.
66652         (default_libc_feholdexcept): New.
66653         (default_libc_feholdexcept_setround): New.
66654         (default_libc_fesetenv, default_libc_feupdateenv): New.
66655         (libc_feholdexcept): Only define if undefined.
66656         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66657         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66658         (libc_feholdexcept_setroundl): Likewise.
66659         (libc_feholdexcept_setround_53bit): Likewise.
66660         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66661         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66662         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66663         (libc_feupdateenv_53bit): Likewise.
66664         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66665         (libc_feholdexcept): Convert from macro to inline function.
66666         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66667         (libc_fesetenv, libc_feupdateenv): Likewise.
66668
66669         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66670         not previously defined.
66671         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66672         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66673         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66674         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66675         * sysdeps/ieee754/flt-32/math_private.h: New file.
66676         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66677         math_private.h below SET_FLOAT_WORD.
66678         (__isnan, __isinf_ns, __finite): Remove.
66679         (__isnanf, __isinf_nsf, __finitef): Remove.
66680
66681 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66682
66683         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66684
66685 2012-03-17  David S. Miller  <davem@davemloft.net>
66686
66687         [BZ #6471]
66688         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66689         for 2.16.
66690
66691 2012-03-16  David S. Miller  <davem@davemloft.net>
66692
66693         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66694         warnings.
66695
66696         [BZ #6471]
66697         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66698         properly.
66699         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66700         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66701         sysdep_routines when subdir is sysvipc.
66702         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66703         __getshmlba helper.
66704
66705         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66706
66707 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66708
66709         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66710         [__LP64__].
66711
66712 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66713
66714         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66715         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66716         (__lround): Renamed to ...
66717         (__llround): This.  Replace long int with long long int.
66718         Define lround functions as aliases of llround functions.
66719         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66720
66721 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66722
66723         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66724         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66725         adresses to uintptr_t.  Replace "long int" and "unsigned long
66726         int" with "greg_t" on va_arg.
66727
66728 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66729
66730         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66731         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66732
66733         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66734         Move e_machine check before EI_CLASS check.  Handle x32
66735         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66736         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66737         SKIP_EM_IA_64 and include
66738         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66739
66740         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66741         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66742         (add_system_dir): New macro.
66743
66744         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66745         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66746
66747 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66748
66749         [BZ #2551]
66750         [BZ #2552]
66751         [BZ #2553]
66752         [BZ #2554]
66753         [BZ #2562]
66754         [BZ #2563]
66755         [BZ #2565]
66756         [BZ #2566]
66757         [BZ #2576]
66758         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66759         (y0): Likewise.
66760         * math/w_j0f.c (j0f): Likewise.
66761         (y0f): Likewise.
66762         * math/w_j0l.c (__j0l): Likewise.
66763         (__y0l): Likewise.
66764         * math/w_j1.c (j1): Likewise.
66765         (y1): Likewise.
66766         * math/w_j1f.c (j1f): Likewise.
66767         (y1f): Likewise.
66768         * math/w_j1l.c (__j1l): Likewise.
66769         (__y1l): Likewise.
66770         * math/w_jn.c (jn): Likewise.
66771         (yn): Likewise.
66772         * math/w_jnf.c (jnf): Likewise.
66773         (ynf): Likewise.
66774         * math/w_jnl.c (__jnl): Likewise.
66775         (__ynl): Likewise.
66776         * math/libm-test.inc (j0_test): Add more tests.
66777         (j1_test): Likewise.
66778         (jn_test): Likewise.  Add trailing semicolon to existing test.
66779         (y0_test): Likewise.
66780         (y1_test): Likewise.
66781         * sysdeps/i386/fpu/libm-test-ulps: Update.
66782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66783
66784         [BZ #13851]
66785         [BZ #13854]
66786         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66787         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66788         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66789         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66790         (__tanl): Set errno for infinite argument.
66791         * sysdeps/i386/fpu/mptan.c: Remove.
66792         * sysdeps/i386/fpu/s_tan.S: Likewise.
66793         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66794         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66795         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66796         * math/libm-test.inc (tan_test): Add more tests and enable more
66797         tests for double and long double.
66798         * sysdeps/i386/fpu/libm-test-ulps: Update.
66799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66800
66801 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66802
66803         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66804         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66805
66806 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66807
66808         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66809         * configure.in: Use it for both main tree and add-ons.
66810         * configure: Regenerated.
66811
66812 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66813
66814         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66815
66816 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66817
66818         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66819         in comment.
66820
66821         [BZ #13851]
66822         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66823         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66824         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66825         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66826         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66827         infinite argument.
66828         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66829         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66830         != 0 for prec == 2.
66831         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66832         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66833         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66834         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66835         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66836         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66837         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66838         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66839         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66840         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66841         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66842         * math/libm-test.inc (cos_test): Add more tests and enable more
66843         tests for long double.
66844         (sin_test): Likewise.
66845         (sincos_test): Likewise.
66846         * sysdeps/i386/fpu/libm-test-ulps: Update.
66847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66848
66849 2012-03-16  David S. Miller  <davem@davemloft.net>
66850
66851         * sysdeps/sparc/fpu/math_private.h: New file.
66852
66853 2012-03-15  David S. Miller  <davem@davemloft.net>
66854
66855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66856         file.
66857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66859         file.
66860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66861         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66862         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66863         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66864         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66865         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66866         sysdep routines.
66867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66868
66869         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66870         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66871
66872         * sysdeps/sparc/sparc-ifunc.h: New file.
66873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66874         sparc-ifunc.h
66875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66877         Likewise.
66878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66879         Likewise.
66880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66884         Likewise.
66885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66890         Likewise.
66891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66892         Likewise.
66893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66897         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66898         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66899         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66900         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66901         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66902         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66903         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66904         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66905         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66906         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66907         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66908         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66909         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66910         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66911         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66912         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66913         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66914         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66915         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66916         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66917
66918 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66919
66920         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66921         scaling.
66922         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66923
66924 2012-03-15  Andreas Jaeger  <aj@suse.de>
66925
66926         [BZ #13852]
66927         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66928         ieee754/flt-32 implementation for sin, cos and sincos.
66929         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66930         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66931         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66932         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66933         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66934         ieee754/flt-32 implementation for tan.
66935
66936         * math/libm-test.inc (cos_test): Enable some large input tests for
66937         float as well
66938         (sin_test): Likewise.
66939         (sincos_test): Likewise.
66940         (tan_test): Add tests for large input.
66941
66942         * sysdeps/i386/fpu/libm-test-ulps: Update.
66943
66944 2012-03-15  Andreas Jaeger  <aj@suse.de>
66945
66946         [BZ #13658]
66947         * math/libm-test.inc (cos_test): Add more test cases.
66948         (sin_test): Likewise.
66949         (sincos_test): Likewise.
66950
66951 2012-03-15  Andreas Jaeger  <aj@suse.de>
66952
66953         [BZ #13837]
66954         * math/libm-test.inc (cos_test): Add a test case for large input
66955         value.
66956         (sin_test): Likewise.
66957         (sincos_test): Likewise.
66958
66959 2012-03-15  Andreas Jaeger  <aj@suse.de>
66960             Joseph Myers  <joseph@codesourcery.com>
66961
66962         [BZ #13658]
66963         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66964         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66965         * sysdeps/i386/fpu/branred.c: Likewise.
66966         * sysdeps/i386/fpu/dosincos.c: Likewise.
66967         * sysdeps/i386/fpu/mpa.c: Likewise.
66968         * sysdeps/i386/fpu/s_cos.S: Likewise.
66969         * sysdeps/i386/fpu/s_sin.S: Likewise.
66970         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66971         * sysdeps/i386/fpu/sincos32.c: Likewise.
66972
66973         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66974         Define.
66975         (libc_feupdateenv_53bit): Define.
66976         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66977         Define.
66978         (libc_feupdateenv_53bit): Define.
66979
66980         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66981         53 bit (without extend i386 double precision).
66982
66983         * math/libm-test.inc (sincos_test): Add tests for large input.
66984         (sin): Likewise.
66985         (cos): Likewise.
66986
66987         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66988
66989 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66990
66991         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66992
66993 2012-03-15  David S. Miller  <davem@davemloft.net>
66994
66995         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66996         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66997         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66998         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67003         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67004         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67005         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67006         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67007         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67008         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67009         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67011         file.
67012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67014         file.
67015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67017         file.
67018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67020         file.
67021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67022         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67023         fmin/fmax sysdep routines.
67024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67025
67026 2012-03-14  David S. Miller  <davem@davemloft.net>
67027
67028         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67029         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67030         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67031         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67032         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67033         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67034         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67035         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67036         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67037         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67038         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67039         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67040         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67041         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67042         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67043         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67044         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67045         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67046         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67047         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67048         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67049         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67050         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67051         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67052         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67053         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67054         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67055         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67056         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67057         routines.
67058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67059         file.
67060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67062         file.
67063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67065         file.
67066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67068         file.
67069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67071         file.
67072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67074         file.
67075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67076         file.
67077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67078         file.
67079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67080         file.
67081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67082         New file.
67083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67084         file.
67085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67086         file.
67087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67089         file.
67090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67092         file.
67093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67095         file.
67096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67098         VIS3 routines.
67099
67100         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67101         New file.
67102
67103         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67104
67105         * sysdeps/sparc/configure.in: New file.
67106         * sysdeps/sparc/configure: Generate.
67107         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67108         * configure: Regenerate.
67109         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67110         * config.make.in (have-as-vis3): New.
67111         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67112         available use -Av9d instead of -Av9a.
67113         * sysdeps/sparc/sparc64/Makefile: Likewise.
67114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67116         New file.
67117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67118         file.
67119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67120         New file.
67121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67122         file.
67123         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67124         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67125         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67126         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67127         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67128
67129         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67130         fzeros/fnegs to load 0x80000000 into a float register instead of
67131         using the stack.
67132         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67133
67134 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67135
67136         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67137         bits/syscall.h.
67138         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67139         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67140         ($(inst_includedir)/bits/syscall.h): Remove rule.
67141         ($(objpfx)bits/syscall.d): Include instead of
67142         $(objpfx)syscall-list.d.
67143         (generated): Change syscall-list.h and syscall-list.d to
67144         bits/syscall.h and bits/syscall.d.
67145
67146 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67147
67148         [BZ #13846]
67149         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67150
67151 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67152
67153         [BZ #13841]
67154         * math/s_csqrt.c: Include <float.h>.
67155         (__csqrt): Scale large or subnormal inputs.
67156         * math/s_csqrtf.c: Likewise.
67157         * math/s_csqrtl.c: Likewise.
67158         * math/libm-test.inc (csqrt_test): Add more tests.
67159         * sysdeps/i386/fpu/libm-test-ulps: Update.
67160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67161
67162         [BZ #13840]
67163         * math/libm-test.inc (hypot_test): Add more tests.
67164
67165 2012-03-13  David S. Miller  <davem@davemloft.net>
67166
67167         [BZ #13840]
67168         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67169         double-precision for the calculation instead of scaling.
67170
67171 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67172
67173         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67174         manipulate bits before adding and subtracting TWO52[sx].
67175         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67176         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67177         Likewise.
67178         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67179
67180 2012-03-13  David S. Miller  <davem@davemloft.net>
67181
67182         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67183         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67184         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67185         rtld-global-offsets.h
67186         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67187
67188         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67189         large parameters.
67190
67191         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67192
67193         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67194         'err' in the ifdef scope in which it is actually used.
67195
67196         * nss/nss_db/db-init.c: Include string.h
67197
67198 2012-03-12  David S. Miller  <davem@davemloft.net>
67199
67200         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67201         masking out of the most significant byte of random value used.
67202         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67203         Fix coding style in previous change.
67204
67205         * sysdeps/unix/sysv/linux/kernel-features.h
67206         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67207         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67208         expression.
67209         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67210         later.
67211
67212 2012-03-11  David S. Miller  <davem@davemloft.net>
67213
67214         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67215         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67216         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67217         for 'resultvar' otherwise things get truncated on 64-bit.
67218
67219         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67220         Fix masking out of the most significant byte of random value used.
67221
67222         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67223
67224 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67225
67226         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67227
67228 2012-03-09  David S. Miller  <davem@davemloft.net>
67229
67230         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67231         variables with appropriate CPP guards.
67232         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67233         from the frame pointer, not the stack pointer.  Correct layout
67234         comments.  Fix test on resulting framesize and the management of
67235         the outregs buffer for pltexit.  Preserve floating point return
67236         values across _dl_call_pltexit call.
67237         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67238         framesize and the management of the outregs buffer for pltexit.
67239         Preserve floating point return values across _dl_call_pltexit
67240         call.
67241         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67242         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67243         (la_sparc64_gnu_pltexit): New functions.
67244         (print_exit): Fix format string for return register value.
67245
67246 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67247
67248         * sunrpc/Makefile (others): Add rpcgen.
67249         ($(objpfx)rpcgen): Remove special build rule and dependency on
67250         libc.
67251         * sunrpc/rpcgen.c: New file.
67252
67253 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67254
67255         [BZ #13673]
67256         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67257         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67258         * sysdeps/i386/crti.S: Likewise.
67259         * sysdeps/i386/crtn.S: Likewise.
67260         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67261         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67262         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67263         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67264         * sysdeps/sh/crti.S: Likewise.
67265         * sysdeps/sh/crtn.S: Likewise.
67266         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67267
67268         [BZ #13673]
67269         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67270         with URL.
67271         * locale/programs/locfile-kw.gperf: Likewise.
67272         * locale/programs/charmap-kw.h: Regenerated.
67273         * locale/programs/locfile-kw.h: Likewise.
67274
67275         [BZ #13673]
67276         * intl/plural.y: Replace FSF snail mail address with URL.
67277         * intl/plural.c: Regenerated.
67278
67279 2012-03-09  Richard Henderson  <rth@twiddle.net>
67280
67281         * include/math_private.h: Remove file.
67282         * math/math_private.h: Move file ...
67283         * sysdeps/generic/math_private.h: ... here.
67284
67285         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67286         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67287         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67288
67289         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67290         and <math_private.h>.
67291         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67292         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67293         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67294         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67295         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67296         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67297         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67298         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67299         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67300         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67301         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67302         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67303         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67304         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67305         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67306         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67307         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67308         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67309         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67310         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67311         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67312         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67313         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67314         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67315         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67316         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67317         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67318         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67319         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67320         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67321         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67322         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67323         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67324         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67325         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67326         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67327         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67328         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67329         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67330         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67331         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67332         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67333         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67334         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67335         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67336         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67337         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67338         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67339         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67340         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67341         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67342         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67343         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67344         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67345         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67346         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67347         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67348         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67349         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67350         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67351         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67352         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67353         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67354         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67355         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67356         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67357         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67358         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67359         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67360         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67361         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67362         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67363         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67364         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67365         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67366         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67367         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67368         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67369         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67370         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67371         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67372         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67373         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67374         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67375         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67376         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67377         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67378         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67379         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67380         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67381         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67382         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67383         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67384         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67385         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67386         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67387         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67388         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67389         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67390         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67391         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67392         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67393         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67394         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67395         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67396         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67397         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67398         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67399         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67400         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67401         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67402         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67403         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67404         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67405         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67406         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67407         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67408         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67409         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67410         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67411         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67412         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67413         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67414         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67415         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67416         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67417         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67418         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67419         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67420         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67421         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67422         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67423         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67424         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67425         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67426         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67427         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67428         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67429         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67430         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67431         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67432         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67433         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67434         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67435         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67436         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67437         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67438         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67439         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67440         * sysdeps/ieee754/k_standard.c: Likewise.
67441         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67442         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67443         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67444         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67445         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67446         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67447         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67448         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67449         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67450         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67451         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67452         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67453         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67454         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67455         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67456         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67457         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67458         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67459         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67460         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67461         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67462         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67463         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67464         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67465         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67466         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67467         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67468         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67469         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67470         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67471         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67472         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67473         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67474         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67475         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67476         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67477         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67478         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67479         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67480         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67481         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67482         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67483         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67484         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67485         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67486         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67487         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67488         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67489         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67490         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67491         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67492         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67493         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67494         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67495         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67496         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67497         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67498         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67499         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67500         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67501         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67502         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67503         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67504         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67505         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67506         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67507         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67508         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67509         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67510         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67511         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67512         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67513         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67514         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67515         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67516         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67517         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67518         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67519         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67520         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67521         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67522         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67523         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67524         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67525         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67526         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67527         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67528         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67529         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67530         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67531         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67532         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67533         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67534         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67535         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67536         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67537         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67538         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67539         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67540         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67541         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67542         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67543         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67544         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67545         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67546         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67547         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67548         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67549         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67550         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67551         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67552         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67553         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67554         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67555         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67556         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67557         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67558         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67559         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67560         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67561         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67562         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67563         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67564         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67565         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67566         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67567         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67568         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67569         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67570         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67571         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67572         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67573         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67574         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67575         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67576         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67577         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67578         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67579         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67580         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67581         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67582         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67583         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67584         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67585         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67586         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67587         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67588         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67589         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67590         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67591         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67592         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67593         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67594         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67595         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67596         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67597         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67598         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67599         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67600         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67601         * sysdeps/ieee754/s_lib_version.c: Likewise.
67602         * sysdeps/ieee754/s_matherr.c: Likewise.
67603         * sysdeps/ieee754/s_signgam.c: Likewise.
67604         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67605         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67606         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67607         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67608         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67609         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67610         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67611         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67612         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67613         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67614         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67615         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67616         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67617         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67618         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67619         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67620         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67621         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67622         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67623         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67624         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67625
67626 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67627
67628         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67629         * sunrpc/rpc_main.c: Likewise.
67630         * sunrpc/rpc_svcout.c: Likewise.
67631
67632 2012-03-09  David S. Miller  <davem@davemloft.net>
67633
67634         * include/math_private.h: New file.
67635
67636 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67637
67638         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67639         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67640         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67641         from <bits/socket_type.h>.
67642         (enum __socket_type): Don't define here.
67643         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67644         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67645         bits/socket_type.h.
67646
67647         [BZ #13566]
67648         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67649         checking __USE_GNU.
67650
67651         * Makerules ($(inst_includedir)/%.h): New rule.
67652         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67653         (install-others): Remove variable setting.
67654         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67655
67656 2012-03-08  Richard Henderson  <rth@twiddle.net>
67657
67658         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67659         from macro to inline function; merge with the
67660         !__LIBC_INTERNAL_MATH_INLINES version.
67661         (__ieee754_sqrtf): Likewise.
67662
67663         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67664         to inline function.
67665         (__rintf, __floor, __floorf): Likewise.
67666
67667         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67668         macro to inline function.
67669         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67670
67671         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67672         not <math/math_private.h>.
67673
67674 2012-03-08  David S. Miller  <davem@davemloft.net>
67675
67676         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67677         copyright year.
67678         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67679
67680 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67681
67682         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67683         normalization.
67684         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67685         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67686
67687 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67688
67689         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67690         be defined individually, they must be defined as a block.  Define
67691         S for printing a string instead of hidint the different by using a
67692         macro for adding the 'l'.
67693         * stdio-common/tst-fphex-wide.c: Adjust.
67694
67695 2012-03-07  Marek Polacek  <polacek@redhat.com>
67696
67697         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67698
67699 2012-03-08  Marek Polacek  <polacek@redhat.com>
67700
67701         [BZ #13806]
67702         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67703         * stdio-common/tst-fphex.c: Define a few macros to make the
67704         test reusable.  Use them.
67705         * stdio-common/tst-fphex-wide.c: New file.
67706
67707 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67708
67709         [BZ #6911]
67710         * manual/macros.texi (gnusystems): New macro.
67711         (nongnusystems): Likewise.
67712         (gnulinuxhurdsystems): Likewise.
67713         (gnuhurdsystems): Likewise..
67714         (gnulinuxsystems): Likewise.
67715         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67716         variants of the GNU system, not "GNU system".
67717         * manual/conf.texi: Likewise.
67718         * manual/errno.texi: Likewise.  Update example of errno macro
67719         expansion.
67720         * manual/filesys.texi: Likewise.
67721         (getumask): Document as specific to GNU/Hurd.
67722         * manual/install.texi: Likewise.  Reword some references to
67723         GNU/Linux.
67724         * manual/intro.texi: Likewise.
67725         * manual/io.texi: Likewise.
67726         (File Name Portability): Detail which constraints are inapplicable
67727         to all GNU systems and which are only inapplicable to GNU/Hurd.
67728         * manual/job.texi: Likewise.
67729         * manual/llio.texi: Likewise.
67730         (O_NOCTTY): Document as present on GNU/Linux.
67731         * manual/maint.texi: Likewise.
67732         * manual/memory.texi: Likewise.
67733         * manual/pattern.texi: Likewise.
67734         * manual/pipe.texi: Likewise.
67735         * manual/process.texi: Likewise.
67736         * manual/resource.texi: Likewise.
67737         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67738         child on GNU/Hurd.
67739         * manual/setjmp.texi: Likewise.
67740         * manual/signal.texi: Likewise.
67741         * manual/startup.texi: Likewise.
67742         * manual/stdio.texi: Likewise.
67743         * manual/terminal.texi: Likewise.
67744         (ONLCR): Document as POSIX.
67745         (OXTABS): Document availability on GNU/Linux as XTABS.
67746         (ONOEOT): Document availability separately from other bits.
67747         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67748         * manual/time.texi: Likewise.
67749         * manual/users.texi: Likewise.
67750         * INSTALL: Regenerated.
67751         * sysdeps/gnu/errlist.c: Regenerated.
67752
67753         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67754         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67755         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67756         puts.
67757         * configure: Regenerated.
67758
67759 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67760
67761         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67762         default includes instead of AC_HEADER_CHECK.
67763         * sysdeps/i386/configure: Regenerated.
67764
67765         [BZ #10716]
67766         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67767         * math/s_cacoshf.c (__cacoshf): Likewise.
67768         * math/s_cacoshl.c (__cacoshl): Likewise.
67769         * math/s_casinh.c (__casinh): Set signs of result from argument.
67770         * math/s_casinhf.c (__casinhf): Likewise.
67771         * math/s_casinhl.c (__casinhl): Likewise.
67772         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67773         (casinh_test): Add more tests.
67774         * sysdeps/i386/fpu/libm-test-ulps: Update.
67775         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67776
67777 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67778
67779         * po/zh_TW.po: Update from translation team.
67780
67781         * login/Makefile (distribute): Remove variable.
67782         * catgets/Makefile: Likewise.
67783         * mach/Makefile: Likewise.
67784         * malloc/Makefile: Likewise.
67785         * misc/Makefile: Likewise.
67786         * iconv/Makefile: Likewise.
67787         * nscd/Makefile: Likewise.
67788         * hurd/Makefile: Likewise.
67789         * manual/Makefile: Likewise.
67790         * locale/Makefile: Likewise.
67791         * intl/Makefile: Likewise.
67792         * conform/Makefile: Likewise.
67793         * nss/Makefile: Likewise.
67794         * time/Makefile: Likewise.
67795         * soft-fp/Makefile: Likewise.
67796         * dirent/Makefile: Likewise.
67797         * gmon/Makefile: Likewise.
67798         * po/Makefile: Likewise.
67799         * rt/Makefile: Likewise.
67800         * socket/Makefile: Likewise.
67801         * math/Makefile: Likewise.
67802         * signal/Makefile: Likewise.
67803         * debug/Makefile: Likewise.
67804         * elf/Makefile: Likewise.
67805         * timezone/Makefile: Likewise.
67806         * stdlib/Makefile: Likewise.
67807         * iconvdata/Makefile: Likewise.
67808         * sunrpc/Makefile: Likewise.
67809         * io/Makefile: Likewise.
67810         * argp/Makefile: Likewise.
67811         * inet/Makefile: Likewise.
67812         * hesiod/Makefile: Likewise.
67813         * grp/Makefile: Likewise.
67814         * csu/Makefile: Likewise.
67815         * wctype/Makefile: Likewise.
67816         * crypt/Makefile: Likewise.
67817         * libio/Makefile: Likewise.
67818         * string/Makefile: Likewise.
67819         * nis/Makefile: Likewise.
67820         * resolv/Makefile: Likewise.
67821         * stdio-common/Makefile: Likewise.
67822         * wcsmbs/Makefile: Likewise.
67823         * dlfcn/Makefile: Likewise.
67824         * posix/Makefile: Likewise.
67825
67826         [BZ #6959]
67827         * timezone/Makefile: Don't install timezone files, just the programs
67828         and scripts.
67829
67830 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67831
67832         * nss/databases.def: Add missing gshadow entry.
67833
67834         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67835
67836 2012-03-06  Marek Polacek  <polacek@redhat.com>
67837
67838         [BZ #13726]
67839         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67840         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67841         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67842         * stdio-common/tst-long-dbl-fphex.c: New file.
67843
67844 2012-03-06  David S. Miller  <davem@davemloft.net>
67845
67846         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67847         (set_obp_int): New function.
67848         (get_obp_int): New function.
67849         (__get_clockfreq_via_dev_openprom): Likewise.
67850         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67851         Avoid unused variable warnings on 'val' and use builtin_expect.
67852         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67853         __builtin_expect.
67854         (INLINE_CLONE_SYSCALL): Likewise.
67855
67856 2012-03-05  David S. Miller  <davem@davemloft.net>
67857
67858         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67859
67860 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67861
67862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67863
67864         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67865         only for |x| >= 40.
67866         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67867
67868 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67869
67870         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67871         Replace gettimeofday with __vdso_gettimeofday.
67872
67873         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67874         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67875         __vdso_clock_gettime and __vdso_getcpu.
67876
67877         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67878         time with __vdso_time.
67879
67880 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67881
67882         * manual/lang.texi (size_t): Note types to which size_t may be
67883         equivalent with the GNU C Library, but do not describe when
67884         differences between them are significant.
67885
67886 2012-03-05  Andreas Jaeger  <aj@suse.de>
67887
67888         * sysdeps/i386/fpu/libm-test-ulps: Update.
67889
67890 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67891
67892         [BZ #3976]
67893         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67894         (__ieee754_pow): Save and restore rounding mode and use
67895         round-to-nearest for main computations.
67896         * math/libm-test.inc (pow_test_tonearest): New function.
67897         (pow_test_towardzero): Likewise.
67898         (pow_test_downward): Likewise.
67899         (pow_test_upward): Likewise.
67900         (main): Call the new functions.
67901         * sysdeps/i386/fpu/libm-test-ulps: Update.
67902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67903
67904         [BZ #3976]
67905         * math/libm-test.inc (cosh_test_tonearest): New function.
67906         (cosh_test_towardzero): Likewise.
67907         (cosh_test_downward): Likewise.
67908         (cosh_test_upward): Likewise.
67909         (sinh_test_tonearest): Likewise.
67910         (sinh_test_towardzero): Likewise.
67911         (sinh_test_downward): Likewise.
67912         (sinh_test_upward): Likewise.
67913         (main): Call the new functions.
67914         * sysdeps/i386/fpu/libm-test-ulps: Update.
67915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67916
67917 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67918
67919         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67920         default stack guard is set in last bytes.
67921         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67922
67923 2012-03-05  Kees Cook  <keescook@chromium.org>
67924
67925         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67926
67927         [BZ #13656]
67928         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67929         possibly allocate from heap instead of stack.
67930         * stdio-common/bug-vfprintf-nargs.c: New file.
67931         * stdio-common/Makefile (tests): Add nargs overflow test.
67932
67933 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67934
67935         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67936
67937 2012-03-03  Marek Polacek  <polacek@redhat.com>
67938
67939         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67940         * math/math_private.h: Likewise.
67941         * stdlib/tst-strtod.c: Likewise.
67942         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67943         * sysdeps/x86_64/bits/atomic.h: Likewise.
67944
67945 2012-03-02  David S. Miller  <davem@davemloft.net>
67946
67947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67951         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67952         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67953         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67954         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67955
67956 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67957
67958         [BZ #13792]
67959         * manual/examples/README: New file, says the example source files
67960         can be used under GPL>=2.
67961         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67962         line containing just "*/".
67963         * manual/examples/add.c: Add copyright header (GPL>=2).
67964         * manual/examples/argp-ex1.c: Likewise.
67965         * manual/examples/argp-ex2.c: Likewise.
67966         * manual/examples/argp-ex3.c: Likewise.
67967         * manual/examples/argp-ex4.c: Likewise.
67968         * manual/examples/atexit.c: Likewise.
67969         * manual/examples/db.c: Likewise.
67970         * manual/examples/dir.c: Likewise.
67971         * manual/examples/dir2.c: Likewise.
67972         * manual/examples/execinfo.c: Likewise.
67973         * manual/examples/filecli.c: Likewise.
67974         * manual/examples/filesrv.c: Likewise.
67975         * manual/examples/fmtmsgexpl.c: Likewise.
67976         * manual/examples/genpass.c: Likewise.
67977         * manual/examples/inetcli.c: Likewise.
67978         * manual/examples/inetsrv.c: Likewise.
67979         * manual/examples/isockad.c: Likewise.
67980         * manual/examples/longopt.c: Likewise.
67981         * manual/examples/memopen.c: Likewise.
67982         * manual/examples/memstrm.c: Likewise.
67983         * manual/examples/mkfsock.c: Likewise.
67984         * manual/examples/mkisock.c: Likewise.
67985         * manual/examples/mygetpass.c: Likewise.
67986         * manual/examples/pipe.c: Likewise.
67987         * manual/examples/popen.c: Likewise.
67988         * manual/examples/rprintf.c: Likewise.
67989         * manual/examples/search.c: Likewise.
67990         * manual/examples/select.c: Likewise.
67991         * manual/examples/setjmp.c: Likewise.
67992         * manual/examples/sigh1.c: Likewise.
67993         * manual/examples/sigusr.c: Likewise.
67994         * manual/examples/stpcpy.c: Likewise.
67995         * manual/examples/strdupa.c: Likewise.
67996         * manual/examples/strftim.c: Likewise.
67997         * manual/examples/strncat.c: Likewise.
67998         * manual/examples/subopt.c: Likewise.
67999         * manual/examples/swapcontext.c: Likewise.
68000         * manual/examples/termios.c: Likewise.
68001         * manual/examples/testopt.c: Likewise.
68002         * manual/examples/testpass.c: Likewise.
68003         * manual/examples/timeval_subtract.c: Likewise.
68004
68005         [BZ #13792]
68006         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68007         function to ...
68008         * manual/timeval_subtract.c.texi: ... here, new file.
68009
68010 2012-03-02  David S. Miller  <davem@davemloft.net>
68011
68012         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68013
68014 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68015
68016         [BZ #3976]
68017         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68018         (__sin): Save and restore rounding mode and use round-to-nearest
68019         for all computations.
68020         (__cos): Save and restore rounding mode and use round-to-nearest
68021         for all computations.
68022         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68023         <fenv.h>.
68024         (tan): Save and restore rounding mode and use round-to-nearest for
68025         all computations.
68026         * math/libm-test.inc (cos_test_tonearest): New function.
68027         (cos_test_towardzero): Likewise.
68028         (cos_test_downward): Likewise.
68029         (cos_test_upward): Likewise.
68030         (sin_test_tonearest): Likewise.
68031         (sin_test_towardzero): Likewise.
68032         (sin_test_downward): Likewise.
68033         (sin_test_upward): Likewise.
68034         (tan_test_tonearest): Likewise.
68035         (tan_test_towardzero): Likewise.
68036         (tan_test_downward): Likewise.
68037         (tan_test_upward): Likewise.
68038         (main): Call the new functions.
68039         * sysdeps/i386/fpu/libm-test-ulps: Update.
68040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68041
68042         [BZ #10135]
68043         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68044         small n, then large n, before computing and testing k+n.
68045         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68046         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68047         Likewise.
68048         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68049         Likewise.
68050         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68051         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68052         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68053         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68054         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68055         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68056         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68057         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68058         * math/libm-test.inc (scalbn_test): Add more tests.
68059         (scalbln_test): Likewise.
68060
68061         * manual/filesys.texi (mode_t): Describe constraints on size and
68062         signedness, not exact equivalence to a particular type.
68063         (ino_t): Likewise.
68064         (ino64_t): Likewise.
68065         (dev_t): Likewise.
68066         (nlink_t): Likewise.
68067         (blkcnt_t): Likewise.
68068         (blkcnt64_t): Likewise.
68069         * manual/llio.texi (off_t): Likewise.
68070
68071         [BZ #3976]
68072         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68073         (__ieee754_exp): Save and restore rounding mode and use
68074         round-to-nearest for all computations.
68075         * math/libm-test.inc (exp_test_tonearest): New function.
68076         (exp_test_towardzero): Likewise.
68077         (exp_test_downward): Likewise.
68078         (exp_test_upward): Likewise.
68079         (main): Call the new functions.
68080         * sysdeps/i386/fpu/libm-test-ulps: Update.
68081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68082
68083 2012-03-01  Chris Demetriou  <cgd@google.com>
68084
68085         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68086         have predictable order.
68087
68088 2012-03-01  David S. Miller  <davem@davemloft.net>
68089
68090         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68091
68092         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68093         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68094         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68095         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68096
68097         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68098         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68099         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68100         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68101         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68102         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68103         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68104         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68105         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68106
68107         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68108
68109         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68110         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68111         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68112
68113         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68114         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68115         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68116         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68117         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68118         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68119         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68120         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68121         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68122         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68123         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68124         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68125         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68126         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68127         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68128         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68129         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68130         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68131         * sysdeps/sparc/elf/configure: Regenerated.
68132
68133 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68134
68135         * configure.in (AS, LD): Require binutils 2.20 or later.
68136         * configure: Regenerated.
68137         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68138         as required minimum version.
68139         * INSTALL: Regenerated.
68140
68141         [BZ #2541]
68142         [BZ #4108]
68143         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68144         before squaring exponent.
68145         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68146         bottom long double and 27 bits of top long double before squaring
68147         exponent.
68148         * math/libm-test.inc (erfc_test): Add more tests.
68149         * sysdeps/i386/fpu/libm-test-ulps: Update.
68150         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68152
68153 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68154
68155         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68156         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68157         containing bit-fields.
68158         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68159         * soft-fp/single.h (_FP_UNION_S): Likewise.
68160         * soft-fp/double.h (_FP_UNION_D): Likewise.
68161
68162 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68163
68164         [BZ #13786]
68165         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68166         not include ../strcmp.S.
68167         [USE_AS_STRNCASECMP_L]: Likewise.
68168         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68169         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68170         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68171         (__strncasecmp_l_ia32): Define as alias to
68172         __strncasecmp_l_nonascii.
68173
68174         [BZ #5794]
68175         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68176         * sysdeps/i386/fpu/libm-test-ulps: Update.
68177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68178
68179         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68181
68182 2012-02-29  Jeff Law  <law@redhat.com>
68183
68184         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68185         out of bounds read.
68186
68187 2012-02-29  Marek Polacek  <polacek@redhat.com>
68188
68189         [BZ #13706]
68190         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68191         * elf/Makefile: Add rules to run tst-unused-dep.out.
68192
68193 2012-02-28  David S. Miller  <davem@davemloft.net>
68194
68195         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68196         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68197         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68198         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68199         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68200         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68201
68202 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68203
68204         * math/libm-test.inc (llround_test): Move one test from
68205         lround_test.  Use TEST_f_L in moved test.
68206         (lround_test): Move misplaced test to llround_test.  Add testcase
68207         from bug 2561.
68208
68209 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68210
68211         * sysdeps/x86_64/fpu/e_expf.S: New file.
68212         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68213
68214 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68215
68216         [BZ #13637]
68217         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68218         of remain_len that may cause incomplete multi-byte character and
68219         false match.
68220         * posix/bug-regex33.c: New file.
68221         * posix/Makefile (tests): Add bug-regex33.
68222
68223 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68224
68225         * manual/macros.texi: New file.
68226         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68227         * manual/libc.texinfo: Include macros.texi.
68228         * manual/creatute.texi: Likewise.
68229         * manual/install.texi: Likewise.
68230         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68231         @glibcadj{} in references to the GNU C Library.
68232         * manual/charset.texi: Likewise.
68233         * manual/conf.texi: Likewise.
68234         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68235         when not using those macros.
68236         * manual/creature.texi: Likewise.
68237         * manual/crypt.texi: Likewise.
68238         * manual/errno.texi: Likewise.
68239         * manual/filesys.texi: Likewise.
68240         * manual/header.texi: Likewise.
68241         * manual/install.texi: Likewise.
68242         * manual/intro.texi: Likewise.
68243         * manual/io.texi: Likewise.
68244         * manual/job.texi: Likewise.
68245         * manual/lang.texi: Likewise.
68246         * manual/libc.texiinfo: Likewise.
68247         * manual/llio.texi: Likewise.
68248         * manual/locale.texi: Likewise.
68249         * manual/maint.texi: Likewise.
68250         * manual/math.texi: Likewise.
68251         * manual/memory.texi: Likewise.
68252         * manual/message.texi: Likewise.
68253         * manual/nss.texi: Likewise.
68254         * manual/pattern.texi: Likewise.
68255         * manual/process.texi: Likewise.
68256         * manual/resource.texi: Likewise.
68257         * manual/search.texi: Likewise.
68258         * manual/setjmp.texi: Likewise.
68259         * manual/signal.texi: Likewise.
68260         * manual/socket.texi: Likewise.
68261         * manual/startup.texi: Likewise.
68262         * manual/stdio.texi: Likewise.
68263         * manual/string.texi: Likewise.
68264         * manual/sysinfo.texi: Likewise.
68265         * manual/syslog.texi: Likewise.
68266         * manual/terminal.texi: Likewise.
68267         * manual/time.texi: Likewise.
68268         * manual/users.texi: Likewise.
68269         * INSTALL: Regenerated.
68270         * NOTES: Regenerated.
68271         * sysdeps/gnu/errlist.c: Regenerated.
68272
68273 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68274
68275         * include/dirent.h: Include <dirstream.h> before
68276         <dirent/dirent.h>.
68277
68278 2012-02-28  David S. Miller  <davem@davemloft.net>
68279
68280         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68281         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68282         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68283         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68284
68285 2012-02-27  David S. Miller  <davem@davemloft.net>
68286
68287         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68288         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68289         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68290         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68291
68292         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68293         frame pointer instead of stack pointer relative arg slot.
68294         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68295         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68296         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68297
68298 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68299
68300         [BZ #3992]
68301         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68302
68303 2012-02-27  David S. Miller  <davem@davemloft.net>
68304
68305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68309         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68310         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68311         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68312         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68313
68314 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68315
68316         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68317         later.  Allow versions 5-9.
68318         * configure: Regenerated.
68319         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68320         required minimum version and 4.6 as recommended version.  Do not
68321         mention bugs in GCC 2.7 and 2.8.
68322         * INSTALL: Regenerated.
68323
68324 2012-02-27  David S. Miller  <davem@davemloft.net>
68325
68326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68330         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68331         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68332         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68333         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68334
68335         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68336         manipulate bits before adding and subtracting TWO112[sx].
68337         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68338
68339 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68340
68341         [BZ #13775]
68342         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68343         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68344         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68345         being in POSIX, because they are in 1003.1-2008.
68346
68347         * rt/tst-aio.c: Include <fcntl.h>.
68348         * rt/tst-aio7.c: Likewise.
68349         * rt/tst-aio64.c: Likewise.
68350
68351         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68352
68353 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68354
68355         * manual/install.texi (--with-headers): Describe headers as
68356         interface headers, not private headers.
68357         (Specific advice for GNU/Linux systems): Describe use of headers
68358         from "make headers_install", not private headers from older
68359         kernels.
68360         * INSTALL: Regenerated.
68361         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68362         Change to 2.6.19.
68363         * sysdeps/unix/sysv/linux/configure: Regenerated.
68364
68365         * manual/llio.texi (fclean): Remove documentation.
68366
68367         * manual/Makefile (libc-texi-generated): New variable.  Include
68368         version.texi.
68369         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68370         $(libc-texi-generated), not duplicated list of files.
68371         (version.texi, stamp-version): New rules.
68372         (realclean): Remove $(libc-texi-generated), not individual files
68373         from that list.  Do not remove dir-add.texinfo.
68374         * manual/libc.texinfo: Comment out uses of edition numbers and
68375         references to printed manual.  Remove last-updated dates.
68376         (EDITION): Comment out.
68377         (ISBN): Likewise.
68378         (VERSION, UPDATED): Remove.
68379         (version.texi): Include.
68380
68381 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68382
68383         * sysdeps/posix/spawni.c: Include <signal.h>.
68384         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68385         * sysdeps/pthread/aio_fsync.c: Likewise.
68386
68387 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68388
68389         * conform/Makefile (tests): Run only when not cross-compiling and
68390         when fast-check is not defined.
68391
68392         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68393         * conform/data/limits.h-data: Fixes for POSIX2008.
68394         * conform/run-conformtest.sh: Run all tests.
68395         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68396         headers.
68397         * include/bits/dlfcn.h: Likewise.
68398         * include/langinfo.h: Likewise.
68399         * include/monetary.h: Likewise.
68400         * include/sys/poll.h: Likewise.
68401
68402         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68403         for __USE_GNU.
68404         * posix/spawn.h: Define __need_sigset_t.
68405         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68406         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68407         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68408         to get sigevent_t only.
68409         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68410         only for __USE_GNU.
68411         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68412         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68413         process_vm_writev only for __USE_GNU.
68414         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68415
68416         * conform/Makefile: For now ignore errors from run-conformtest.
68417         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68418         POSIX to avoid namespace pollution.  Don't prepend headers.
68419         * conform/data/aio.h-data: Fixes for POSIX testing.
68420         * conform/data/fcntl.h-data: Likewise.
68421         * conform/data/glob.h-data: Likewise.
68422         * conform/data/grp.h-data: Likewise.
68423         * conform/data/pthread.h-data: Likewise.
68424         * conform/data/pwd.h-data: Likewise.
68425         * conform/data/signal.h-data: Likewise.
68426         * conform/data/spawn.h-data: Likewise.
68427         * conform/data/stdio.h-data: Likewise.
68428         * conform/data/stdlib.h-data: Likewise.
68429         * conform/data/stropts.h-data: Likewise.
68430         * conform/data/sys/mman.h-data: Likewise.
68431         * conform/data/sys/stat.h-data: Likewise.
68432         * conform/data/sys/types.h-data: Likewise.
68433         * conform/data/sys/wait.h-data: Likewise.
68434         * conform/data/time.h-data: Likewise.
68435         * conform/data/unistd.h-data: Likewise.
68436         * conform/data/utime.h-data: Likewise.
68437
68438         * io/sys/stat.h: fchmod was always in POSIX.
68439         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68440         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68441         * rt/aio.h: Define __need_timespec before including <time.h>.
68442         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68443         struct.  Add forward declaration of pthread_attr_t and use it in
68444         sigevent.
68445         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68446         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68447         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68448         always remove CLK_TCK definition.
68449
68450 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68451
68452         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68453
68454 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68455
68456         * conform/run-conformtest.sh: New file.
68457         * conform/Makefile: Run run-conformtest for tests.
68458         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68459         support.
68460
68461         * conform/data/uchar.h-data: New file.
68462         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68463         * conform/data/arpa/inet.h-data: Likewise.
68464         * conform/data/assert.h-data: Likewise.
68465         * conform/data/complex.h-data: Likewise.
68466         * conform/data/cpio.h-data: Likewise.
68467         * conform/data/ctype.h-data: Likewise.
68468         * conform/data/dirent.h-data: Likewise.
68469         * conform/data/dlfcn.h-data: Likewise.
68470         * conform/data/errno.h-data: Likewise.
68471         * conform/data/fcntl.h-data: Likewise.
68472         * conform/data/float.h-data: Likewise.
68473         * conform/data/fmtmsg.h-data: Likewise.
68474         * conform/data/fnmatch.h-data: Likewise.
68475         * conform/data/ftw.h-data: Likewise.
68476         * conform/data/glob.h-data: Likewise.
68477         * conform/data/grp.h-data: Likewise.
68478         * conform/data/iconv.h-data: Likewise.
68479         * conform/data/inttypes.h-data: Likewise.
68480         * conform/data/langinfo.h-data: Likewise.
68481         * conform/data/libgen.h-data: Likewise.
68482         * conform/data/limits.h-data: Likewise.
68483         * conform/data/locale.h-data: Likewise.
68484         * conform/data/math.h-data: Likewise.
68485         * conform/data/monetary.h-data: Likewise.
68486         * conform/data/mqueue.h-data: Likewise.
68487         * conform/data/ndbm.h-data: Likewise.
68488         * conform/data/net/if.h-data: Likewise.
68489         * conform/data/netdb.h-data: Likewise.
68490         * conform/data/netinet/in.h-data: Likewise.
68491         * conform/data/nl_types.h-data: Likewise.
68492         * conform/data/poll.h-data: Likewise.
68493         * conform/data/pthread.h-data: Likewise.
68494         * conform/data/pwd.h-data: Likewise.
68495         * conform/data/regex.h-data: Likewise.
68496         * conform/data/sched.h-data: Likewise.
68497         * conform/data/search.h-data: Likewise.
68498         * conform/data/semaphore.h-data: Likewise.
68499         * conform/data/setjmp.h-data: Likewise.
68500         * conform/data/signal.h-data: Likewise.
68501         * conform/data/spawn.h-data: Likewise.
68502         * conform/data/stdarg.h-data: Likewise.
68503         * conform/data/stdio.h-data: Likewise.
68504         * conform/data/stdlib.h-data: Likewise.
68505         * conform/data/string.h-data: Likewise.
68506         * conform/data/strings.h-data: Likewise.
68507         * conform/data/stropts.h-data: Likewise.
68508         * conform/data/sys/ipc.h-data: Likewise.
68509         * conform/data/sys/mman.h-data: Likewise.
68510         * conform/data/sys/msg.h-data: Likewise.
68511         * conform/data/sys/resource.h-data: Likewise.
68512         * conform/data/sys/select.h-data: Likewise.
68513         * conform/data/sys/sem.h-data: Likewise.
68514         * conform/data/sys/shm.h-data: Likewise.
68515         * conform/data/sys/socket.h-data: Likewise.
68516         * conform/data/sys/stat.h-data: Likewise.
68517         * conform/data/sys/statvfs.h-data: Likewise.
68518         * conform/data/sys/time.h-data: Likewise.
68519         * conform/data/sys/timeb.h-data: Likewise.
68520         * conform/data/sys/times.h-data: Likewise.
68521         * conform/data/sys/types.h-data: Likewise.
68522         * conform/data/sys/uio.h-data: Likewise.
68523         * conform/data/sys/un.h-data: Likewise.
68524         * conform/data/sys/utsname.h-data: Likewise.
68525         * conform/data/sys/wait.h-data: Likewise.
68526         * conform/data/syslog.h-data: Likewise.
68527         * conform/data/tar.h-data: Likewise.
68528         * conform/data/termios.h-data: Likewise.
68529         * conform/data/utime.h-data: Likewise.
68530         * conform/data/utmpx.h-data: Likewise.
68531         * conform/data/varargs.h-data: Likewise.
68532         * conform/data/wchar.h-data: Likewise.
68533         * conform/data/wctype.h-data: Likewise.
68534         * conform/data/wordexp.h-data: Likewise.
68535
68536         * include/stropts.h: New file.
68537         * include/uchar.h: New file.
68538         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68539         * include/assert.h: Likewise.
68540         * include/ctype.h: Likewise.
68541         * include/dirent.h: Likewise.
68542         * include/dlfcn.h: Likewise.
68543         * include/fcntl.h: Likewise.
68544         * include/fnmatch.h: Likewise.
68545         * include/glob.h: Likewise.
68546         * include/grp.h: Likewise.
68547         * include/libio.h: Likewise.
68548         * include/locale.h: Likewise.
68549         * include/math.h: Likewise.
68550         * include/net/if.h: Likewise.
68551         * include/netdb.h: Likewise.
68552         * include/netinet/in.h: Likewise.
68553         * include/pthread.h: Likewise.
68554         * include/pwd.h: Likewise.
68555         * include/regex.h: Likewise.
68556         * include/sched.h: Likewise.
68557         * include/search.h: Likewise.
68558         * include/setjmp.h: Likewise.
68559         * include/signal.h: Likewise.
68560         * include/stdio.h: Likewise.
68561         * include/stdlib.h: Likewise.
68562         * include/string.h: Likewise.
68563         * include/sys/cdefs.h: Likewise.
68564         * include/sys/mman.h: Likewise.
68565         * include/sys/msg.h: Likewise.
68566         * include/sys/resource.h: Likewise.
68567         * include/sys/select.h: Likewise.
68568         * include/sys/socket.h: Likewise.
68569         * include/sys/stat.h: Likewise.
68570         * include/sys/statvfs.h: Likewise.
68571         * include/sys/time.h: Likewise.
68572         * include/sys/times.h: Likewise.
68573         * include/sys/uio.h: Likewise.
68574         * include/sys/utsname.h: Likewise.
68575         * include/sys/wait.h: Likewise.
68576         * include/termios.h: Likewise.
68577         * include/time.h: Likewise.
68578         * include/ulimit.h: Likewise.
68579         * include/unistd.h: Likewise.
68580         * include/utime.h: Likewise.
68581         * include/wchar.h: Likewise.
68582         * include/wctype.h: Likewise.
68583         * include/wordexp.h: Likewise.
68584
68585         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68586
68587         * time/time.h: TIME_UTC must be a macro.
68588         Make timespec_get available for ISO C11 only as well.
68589
68590 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68591
68592         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68593         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68594
68595 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68596
68597         * configure.in: Use -o not -a in test for unsupported multi-arch.
68598
68599 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68600
68601         * manual/texinfo.tex: Update to version 2012-01-19.16.
68602
68603 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68604
68605         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68606
68607 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68608
68609         [BZ #13738]
68610         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68611         * manual/fdl-1.3.texi: New file.
68612         * manual/fdl-1.1.texi: File removed.
68613
68614         [BZ #13738]
68615         * manual/libc.texinfo (FDL_VERSION): New @set.
68616         Use it for mention of FDL in cover text.
68617         (Documentation License): Use it in @include file name.
68618
68619 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68620             Roland McGrath  <roland@hack.frob.com>
68621
68622         [BZ #5461]
68623         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68624         (not LONG_LONG_MAX and LONG_LONG_MIN.
68625         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68626         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68627         name.
68628         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68629
68630 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68631
68632         [BZ #2547]
68633         [BZ #11365]
68634         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68635         manipulate bits before adding and subtracting TWO23[sx].
68636         * math/libm-test.inc (nearbyint_test): Add more tests.
68637
68638 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68639
68640         [BZ #2548]
68641         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68642         bits before adding and subtracting TWO23[sx].
68643         * math/libm-test.inc (rint_test): Add more tests.
68644         (rint_test_tonearest): Likewise.
68645         (rint_test_towardzero): Likewise.
68646         (rint_test_downward): Likewise.
68647         (rint_test_upward: Likewise.
68648
68649 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68650
68651         [BZ #10110]
68652         * include/stdc-predef.h: New file.  Extracted from features.h.
68653         * include/features.h: Include stdc-predef.h.
68654         * Makefile (headers): Add stdc-predef.h.
68655         * CONFORMANCE (Compiler limitations): Update.
68656
68657 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68658
68659         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68660
68661 2012-02-21  David S. Miller  <davem@davemloft.net>
68662
68663         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68664         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68665
68666 2012-02-20  David S. Miller  <davem@davemloft.net>
68667
68668         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68669         using a normal save/restore sequence, rather than allocating a
68670         dummy stack frame just to store a frame pointer and restore.
68671         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68672
68673 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68674
68675         * manual/install.texi: Fix stray word in line-wrapped comment.
68676
68677 2012-02-20  David S. Miller  <davem@davemloft.net>
68678
68679         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68680         both binutils and gcc support GOTDATA.
68681
68682         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68683         "rd %pc" in the PIC register setup sequences.
68684
68685         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68686         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68687         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68688         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68689         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68690         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68691         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68692         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68693         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68694         (SYSCALL_ERROR_HANDLER): Likewise.
68695         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68696         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68697         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68698         (SYSCALL_ERROR_HANDLER): Likewise.
68699
68700         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68701         (HAVE_GCC_GOTDATA): New.
68702         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68703         relocation support in both binutils and gcc.
68704         * sysdeps/sparc/elf/configure: Regenerate.
68705
68706         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68707         * sysdeps/sparc/sparc32/elf/configure: Delete.
68708         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68709         * sysdeps/sparc/sparc64/elf/configure: Delete.
68710         * sysdeps/sparc/elf/configure.in: New file.
68711         * sysdeps/sparc/elf/configure: Generate.
68712
68713         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68714         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68715         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68716         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68717         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68718
68719 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68720
68721         * manual/install.texi: Do not mention specific glibc version
68722         numbers.
68723         * manual/libc.texinfo (VERSION, UPDATED): Update.
68724         (@copying): Use @copyright{} and range of years.
68725
68726 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68727
68728         [BZ #13695]
68729         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68730         [crti.S not in sysdirs] (generated): Do not append.
68731         [crti.S not in sysdirs] (omit-deps): Likewise.
68732         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68733         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68734         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68735         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68736         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68737         Likewise.
68738         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68739         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68740         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68741         * csu/defs.awk: Remove file.
68742         * sysdeps/generic/initfini.c: Likewise.
68743         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68744         variable.
68745         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68746         Likewise.
68747
68748 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68749
68750         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68751         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68752         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68753         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68754         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68755         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68756         <bits/epoll.h>.
68757         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68758         (__EPOLL_PACKED): Define to empty if not defined by
68759         <bits/epoll.h>.
68760         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68761         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68762         bits/epoll.h.
68763
68764 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68765
68766         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68767         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68768         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68769         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68770         <bits/timerfd.h>.
68771         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68772         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68773         bits/timerfd.h.
68774
68775 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68776
68777         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68778         in C locale.
68779         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68780         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68781         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68783
68784 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68785
68786         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68787         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68788
68789 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68790
68791         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68792         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68793         defined.
68794         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68795         Likewise.
68796         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68797         entry for 2.16.
68798
68799 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68800
68801         * math/w_acos.c: Use non-signaling floating-point comparisons.
68802         * math/w_acosf.c: Likewise.
68803         * math/w_acosh.c: Likewise.
68804         * math/w_acoshf.c: Likewise.
68805         * math/w_acoshl.c: Likewise.
68806         * math/w_acosl.c: Likewise.
68807         * math/w_asin.c: Likewise.
68808         * math/w_asinf.c: Likewise.
68809         * math/w_asinl.c: Likewise.
68810         * math/w_atanh.c: Likewise.
68811         * math/w_atanhf.c: Likewise.
68812         * math/w_atanhl.c: Likewise.
68813         * math/w_exp2.c: Likewise.
68814         * math/w_exp2f.c: Likewise.
68815         * math/w_exp2l.c: Likewise.
68816         * math/w_j0.c: Likewise.
68817         * math/w_j0f.c: Likewise.
68818         * math/w_j0l.c: Likewise.
68819         * math/w_j1.c: Likewise.
68820         * math/w_j1f.c: Likewise.
68821         * math/w_j1l.c: Likewise.
68822         * math/w_jn.c: Likewise.
68823         * math/w_jnf.c: Likewise.
68824         * math/w_log.c: Likewise.
68825         * math/w_log10.c: Likewise.
68826         * math/w_log10f.c: Likewise.
68827         * math/w_log10l.c: Likewise.
68828         * math/w_log2.c: Likewise.
68829         * math/w_log2f.c: Likewise.
68830         * math/w_log2l.c: Likewise.
68831         * math/w_logf.c: Likewise.
68832         * math/w_logl.c: Likewise.
68833         * math/w_sqrt.c: Likewise.
68834         * math/w_sqrtf.c: Likewise.
68835         * math/w_sqrtl.c: Likewise.
68836         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68837         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68838         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68839         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68840         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68841
68842 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68843
68844         [BZ #9739]
68845         * manual/string.texi (strnlen): Use correct parameter name in
68846         equivalent expression.
68847
68848 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68849
68850         [BZ #11174]
68851         * manual/users.texi (seteuid): Consistently use neweuid for
68852         argument name.
68853
68854 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68855
68856         [BZ #13704]
68857         * manual/nss.texi (Services in the NSS configuration): Correct
68858         list of services in example configuration file.
68859
68860 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68861
68862         [BZ #11322]
68863         * manual/arith.texi: Remove statements about negative zero
68864         behaving identically to zero.
68865
68866 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68867
68868         [BZ #5993]
68869         * manual/install.texi: Do not document upgrading from libc5.
68870
68871 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68872
68873         [BZ #4596]
68874         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68875
68876 2012-02-18  David S. Miller  <davem@davemloft.net>
68877
68878         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68879         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68880         %o7 across the call.
68881         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68882         instead.
68883         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68884         SETUP_PIC_REG_LEAF.
68885         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68886         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68887         * sysdeps/sparc/crtn.S: Likewise.
68888
68889 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68890
68891         * aout/Makefile: Remove.
68892
68893 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68894
68895         [BZ #13058]
68896         * manual/examples/argp-ex1.c (main): Format definition in GNU
68897         style.
68898         * manual/examples/argp-ex2.c (main): Likewise.
68899         * manual/examples/argp-ex3.c (main): Likewise.
68900         * manual/examples/argp-ex4.c (main): Likewise.
68901         * manual/examples/longopt.c (main): Use new-style prototype
68902         definition.
68903         * manual/examples/strncat.c (main): Specify return type and use
68904         (void) for arguments.
68905         * manual/examples/subopt.c (main): Use char **argv argument.
68906
68907 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68908
68909         [BZ #5077]
68910         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68911         rounding modes.
68912
68913 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68914
68915         [BZ #6907]
68916         * manual/string.texi (strchr): Change when strchrnul is
68917         recommended.
68918
68919 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68920
68921         [BZ #174]
68922         * manual/locale.texi (setlocale): Document LOCPATH.
68923
68924 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68925
68926         [BZ #10210]
68927         * manual/process.texi (execle): Move @dots{} before last argument.
68928
68929 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68930
68931         [BZ #12047]
68932         * manual/charset.texi (Generic Charset Conversion): Fix typo
68933         (LC_TYPE -> LC_CTYPE).
68934
68935 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68936
68937         [BZ #5805]
68938         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68939         (scalbnf): Likewise.
68940         (scalbnl): Likewise.
68941         (scalbln): Likewise.
68942         (scalblnf): Likewise.
68943         (scalblnl): Likewise.
68944         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68945         (vwarnx): Likewise.
68946         (verr): Likewise.
68947         (verrx): Likewise.
68948         * manual/filesys.texi (telldir): Use braces around return type.
68949         * manual/llio.texi (mmap): Add space after comma.
68950         (mmap64): Likewise.
68951         * manual/math.texi (jn): Use @var{} on parameter names.
68952         (jnf): Likewise.
68953         (jnl): Likewise.
68954         (yn): Likewise.
68955         (ynf): Likewise.
68956         (ynl): Likewise.
68957         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68958         line.
68959         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68960         "...".
68961         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68962         (sched_get_priority_max): Likewise.
68963         * manual/signal.texi (sigvec): Add space after comma.
68964         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68965         names.
68966         (if_indextoname): Likewise.
68967         (if_freenameindex): Likewise.
68968         (sendto): Use ',' instead of '.' in prototype.
68969         * manual/startup.texi (syscall): Use @dots{} instead of literal
68970         "...".
68971         * manual/stdio.texi (__fpending): Separate initial words of
68972         paragraph from @deftypefun line.
68973         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68974         "...".
68975         (vsyslog): Use @var{} on parameter names.
68976         * manual/terminal.texi (stty): Use @var{} on parameter names.
68977         * manual/users.texi (getutmp): Use @var{} on parameter names.
68978         (getutmpx): Likewise.
68979
68980 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68981
68982         [BZ #6884]
68983         * manual/stdio.texi (fopen): Fix typos in description of
68984         ",ccs=STRING".
68985
68986 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68987
68988         [BZ #4026]
68989         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68990         get clock_id definition.
68991
68992 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68993
68994         [BZ #4822]
68995         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68996         (madvise): Cast every argument to void on its own.
68997
68998 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68999
69000         [BZ #9902]
69001         * manual/startup.texi (Exit Status): Fix typo.
69002
69003 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69004
69005         [BZ #10140]
69006         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69007         * manual/examples/argp-ex2.c: Likewise.
69008         * manual/examples/argp-ex3.c: Likewise.
69009
69010 2012-02-16  Richard Henderson  <rth@redhat.com>
69011
69012         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69013         * sysdeps/s390/s390-32/initfini.c: Remove.
69014         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69015         * sysdeps/s390/s390-64/initfini.c: Remove.
69016
69017 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69018
69019         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69020         compiler output for sysdeps/generic/initfini.c.
69021         * sysdeps/sh/elf/initfini.c: Remove file.
69022
69023 2012-02-16  David S. Miller  <davem@davemloft.net>
69024
69025         [BZ #11494]
69026         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69027
69028         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69029         * sysdeps/sparc/crti.S: New file.
69030         * sysdeps/sparc/crtn.S: New file.
69031         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69032         * sysdeps/sparc/sparc64/Makefile: Likewise.
69033
69034 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69035
69036         [BZ #3335]
69037         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69038
69039 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69040
69041         [BZ #4822]
69042         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69043
69044         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69045         (write, read, close): Likewise.
69046         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69047
69048 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69049
69050         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69051         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69052         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69053         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69054         <bits/signalfd.h>.
69055         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69056         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69057         bits/signalfd.h.
69058
69059 2012-02-14  Marek Polacek  <polacek@redhat.com>
69060
69061         * sysdeps/x86_64/crti.S: New file.
69062         * sysdeps/x86_64/crtn.S: New file.
69063         * sysdeps/x86_64/elf/initfini.c: Remove file.
69064
69065 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69066
69067         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69068         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69069         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69070         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69071         <bits/inotify.h>.
69072         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69073         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69074         bits/inotify.h.
69075
69076 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69077
69078         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69079         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69080         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69081         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69082         <bits/eventfd.h>.
69083         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69084         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69085         bits/eventfd.h.
69086
69087 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69088
69089         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69090         __feraiseexcept instead of feraiseexcept.
69091
69092         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69093         nanosleep invocations.
69094         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69095         strings, and add error checking for a nanosleep invocations.
69096
69097 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         Replace FSF snail mail address with URLs, as per GNU coding standards.
69100         Most of the snail mail addresses were wrong anyway, and omitting
69101         them makes the source code easier to maintain.  Almost all of the
69102         changes are to license notices and to locale LC_IDENTIFICATION
69103         addresses, except for this one:
69104         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69105         not its snail mail address.
69106
69107 2012-02-09  Richard Henderson  <rth@twiddle.net>
69108
69109         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69110         of kernel-features.h.
69111
69112         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69113
69114 2012-02-08  Marek Polacek  <polacek@redhat.com>
69115
69116         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69117         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69118         * sysdeps/gnu/_G_config.h: Likewise.
69119         * sysdeps/generic/_G_config.h: Likewise.
69120
69121 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69122
69123         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69124         tests.
69125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69126
69127         * sysdeps/powerpc/powerpc32/crti.S: New file.
69128         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69129         * sysdeps/powerpc/powerpc64/crti.S: New file.
69130         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69131
69132         * Makeconfig (have-initfini): Don't set.
69133         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69134         * configure.in (nopic_initfini): Don't substitute.
69135         * config.h.in (HAVE_INITFINI): Don't #undef.
69136         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69137         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69138
69139 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69140
69141         Support crti.S and crtn.S provided directly by architectures.
69142         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69143         [crti.S in sysdirs] (omit-deps): Likewise.
69144         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69145         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69146         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69147         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69148         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69149         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69150         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69151         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69152         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69153         compiler output for sysdeps/generic/initfini.c.
69154         * sysdeps/i386/elf/Makefile: Remove file.
69155         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69156
69157 2012-02-07  Marek Polacek  <polacek@redhat.com>
69158
69159         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69160         * sysdeps/gnu/_G_config.h: Likewise.
69161         * sysdeps/mach/hurd/_G_config.h: Likewise.
69162
69163 2012-02-07  Marek Polacek  <polacek@redhat.com>
69164
69165         * math/Makefile (tests): Add tst-CMPLX2.
69166         * math/tst-CMPLX2.c: New file.
69167
69168 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69169
69170         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69171
69172         * math/libm-test.inc (jn_test): Add missing L suffix.
69173
69174 2012-02-06  Marek Polacek  <polacek@redhat.com>
69175
69176         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69177         * sysdeps/i386/fpu/e_powf.S: Likewise.
69178         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69179         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69180         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69181         * sysdeps/i386/fpu/e_pow.S: Likewise.
69182         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69183         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69184         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69185         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69186         * sysdeps/i386/fpu/e_log2.S: Likewise.
69187         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69188         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69189         * sysdeps/i386/fpu/e_powl.S: Likewise.
69190         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69191         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69192         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69193         * sysdeps/i386/fpu/e_logl.S: Likewise.
69194         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69195         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69196         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69197         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69198         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69199         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69200         * sysdeps/i386/fpu/e_log.S: Likewise.
69201         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69202         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69203         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69204         * sysdeps/i386/fpu/e_logf.S: Likewise.
69205         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69206         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69207         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69208         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69209         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69210         * sysdeps/i386/fpu/e_log10.S: Likewise.
69211         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69212         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69213         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69214         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69215         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69216         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69217         * sysdeps/i386/asm-syntax.h: Likewise.
69218         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69219         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69220         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69221         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69222         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69223         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69224         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69225         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69226         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69227         * sysdeps/powerpc/sysdep.h: Likewise.
69228         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69229         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69230
69231 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69232
69233         [BZ #411]
69234         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69235
69236 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69237
69238         * sysdeps/i386/sysdep.h: Include <features.h>.
69239         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69240         version.
69241
69242 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69243
69244         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69245         Define.
69246         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69247         LOAD_PIC_REG_STR.
69248
69249 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69250
69251         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69252         (SETUP_PIC_REG): Use GET_PC_THUNK.
69253         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69254         macro.
69255
69256 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69257
69258         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69259         for non-PIC compilation.
69260         (SETUP_PIC_REG): Add .p2align directive.
69261         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69262         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69263         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69264         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69265         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69266         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69267         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69268         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69269         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69270         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69271         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69272         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69273         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69274         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69275         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69276         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69277         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69278         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69279         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69280         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69281         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69282         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69283         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69284         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69285         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69286         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69287         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69288         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69289         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69290         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69291         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69292         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69293         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69294         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69295         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69296         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69297         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69298         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69299         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69300         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69301         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69302
69303 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69304
69305         * math/tst-CMPLX.c: Include <stdio.h>.
69306
69307 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69308
69309         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69310         float.
69311         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69312         * sysdeps/sparc/bits/mathdef.h: Likewise.
69313
69314 2012-01-31  Marek Polacek  <polacek@redhat.com>
69315
69316         * libio/libio.h: Don't define _PARAMS.
69317         * locale/programs/config.h: Don't define PARAMS.
69318         * stdlib/strtol_l.c: Likewise.
69319         (__strtol_l): Remove PARAMS from the prototype.
69320
69321 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69322
69323         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69324         names.  Just use the correct names.  Remove unnecessary wrapper
69325         functions.
69326         * malloc/arena.c: Likewise.
69327         * malloc/hooks.c: Likewise.
69328
69329         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69330         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69331         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69332
69333 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69334
69335         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69336         into tail calls.
69337         (update_get_addr): New function.
69338         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69339         GET_ADDR_MODULE parameter.
69340
69341 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69342
69343         * crypt/cert.c: Remove __STDC__ conditionals.
69344         * crypt/crypt-entry.c: Likewise.
69345         * crypt/crypt_util.c: Likewise.
69346         * libio/filedoalloc.c: Likewise.
69347         * libio/fileops.c: Likewise.
69348         * libio/genops.c: Likewise.
69349         * libio/iofclose.c: Likewise.
69350         * libio/iofdopen.c: Likewise.
69351         * libio/iofopen.c: Likewise.
69352         * libio/iofopen64.c: Likewise.
69353         * libio/iogetdelim.c: Likewise.
69354         * libio/iopopen.c: Likewise.
69355         * libio/obprintf.c: Likewise.
69356         * libio/oldfileops.c: Likewise.
69357         * libio/oldiofclose.c: Likewise.
69358         * libio/oldiofdopen.c: Likewise.
69359         * libio/oldiofopen.c: Likewise.
69360         * libio/oldiopopen.c: Likewise.
69361         * libio/wfiledoalloc.c: Likewise.
69362         * libio/wgenops.c: Likewise.
69363         * locale/programs/xmalloc.c: Likewise.
69364         * misc/syslog.c: Likewise.
69365         * stdio-common/xbug.c: Likewise.
69366         * string/memchr.c: Likewise.
69367         * string/memcmp.c: Likewise.
69368         * string/memrchr.c: Likewise.
69369         * string/rawmemchr.c: Likewise.
69370         * sysdeps/posix/getcwd.c: Likewise.
69371         * time/strftime_l.c: Likewise.
69372
69373 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69374
69375         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69376         * config.make.in (config-cflags-sse2avx): Define.
69377         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69378         Fix typo.
69379
69380 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69381
69382         * scripts/config.guess: Update from upstream config git repository.
69383         * scripts/config.sub: Likewise.
69384
69385 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69386
69387         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69388         (EM_NUM): Update.
69389         (R_TILEPRO_*, R_TILEGX_*): New macros.
69390
69391         * scripts/firstversions.awk: Fix bug in version range handling.
69392
69393         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69394
69395         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69396
69397         * include/sys/epoll.h: New file.
69398         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69399         libc_hidden_def.
69400
69401 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69402
69403         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69404         Avoid unnecessary __WORDSIZE == 64 test.
69405         (fmaxf): Use VEX format if possible.
69406         (fmax): Likewise.
69407         (fminf): Likewise.
69408         (fmin): Likewise.
69409
69410         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69411         * math/math_private.h: Remove libc_fegetround* and
69412         libc_fesetround*.
69413         * sysdeps/i386/configure.in: Check for -msse2avx.
69414         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69415         also if SSE2AVX is defined.
69416         Remove libc_fegetround* and libc_fesetround*.
69417         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69418         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69419         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69420         of HAS_YMM_USABLE.
69421         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69422         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69423         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69424         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69425         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69426
69427         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69428
69429 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69430
69431         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69432         size is not set.
69433         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69434
69435 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69436
69437         [BZ #13618]
69438         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69439         relocation.
69440         * Makeconfig (libm): Define.
69441         * elf/Makefile: Add rules to build and run tst-relsort1.
69442         * elf/tst-relsort1.c: New file.
69443         * elf/tst-relsort1mod1.c: New file.
69444         * elf/tst-relsort1mod2.c: New file.
69445
69446 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69447
69448         * math/s_ldexp.c: Remove __STDC__ conditionals.
69449         * math/s_ldexpf.c: Likewise.
69450         * math/s_ldexpl.c: Likewise.
69451         * math/s_nextafter.c: Likewise.
69452         * math/s_nexttowardf.c: Likewise.
69453         * math/s_significand.c: Likewise.
69454         * math/s_significandf.c: Likewise.
69455         * math/s_significandl.c: Likewise.
69456         * math/w_jnl.c: Likewise.
69457         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69458         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69459         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69460         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69461         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69462         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69463         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69464         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69465         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69466         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69467         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69468         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69469         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69470         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69471         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69472         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69473         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69474         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69475         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69476         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69477         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69478         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69479         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69480         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69481         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69482         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69483         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69484         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69485         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69486         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69487         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69488         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69489         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69490         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69491         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69492         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69493         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69494         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69495         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69496         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69497         * sysdeps/ieee754/k_standard.c: Likewise.
69498         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69499         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69500         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69501         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69502         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69503         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69504         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69505         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69506         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69507         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69508         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69509         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69510         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69511         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69512         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69513         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69514         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69515         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69516         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69517         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69518         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69519         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69520         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69521         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69522         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69523         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69524         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69525         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69526         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69527         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69528         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69529         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69530         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69531         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69532         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69533         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69534         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69535         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69536         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69537         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69538         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69539         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69540         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69541         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69542         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69543         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69544         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69545         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69546         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69547         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69548         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69549         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69550         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69551         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69552         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69553         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69554         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69555         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69556         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69557         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69558         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69559         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69560         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69561         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69562         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69563         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69564         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69565         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69566         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69567         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69568         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69569         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69570         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69571         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69572         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69573         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69574         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69575         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69576         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69577         * sysdeps/ieee754/s_matherr.c: Likewise.
69578         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69579         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69580         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69581         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69582
69583 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69584
69585         * crypt/md5.h: Remove __STDC__ conditionals.
69586         * libio/libioP.h: Likewise.
69587         * locale/programs/config.h: Likewise.
69588         * sysdeps/generic/sysdep.h: Likewise.
69589         * sysdeps/i386/asm-syntax.h: Likewise.
69590         * sysdeps/s390/asm-syntax.h: Likewise.
69591         * sysdeps/unix/sysdep.h: Likewise.
69592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69594
69595 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69596
69597         * libio/libio.h: Remove __STDC__ conditionals.
69598         * malloc/obstack.h: Likewise.
69599         * math/complex.h: Likewise.
69600         * math/math.h: Likewise.
69601         * sysdeps/generic/_G_config.h: Likewise.
69602         * sysdeps/gnu/_G_config.h: Likewise.
69603         * sysdeps/mach/hurd/_G_config.h: Likewise.
69604         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69605         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69606         * sysdeps/sparc/bits/mathdef.h: Likewise.
69607
69608 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69609
69610         [BZ #13583]
69611         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69612         Clean up HAS_* macros.
69613         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69614         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69615         possible.
69616         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69617         HAS_AVX.
69618         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69619         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69620         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69621         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69622         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69623
69624 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69625
69626         * elf/tst-unique3.cc (gets): Remove declaration.
69627         * elf/tst-unique3lib.cc (gets): Likewise.
69628         * elf/tst-unique3lib2.cc (gets): Likewise.
69629         * elf/tst-unique4.cc (gets): Likewise.
69630
69631 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69632
69633         * include/stdio.h: Add C++ protection.  Add gets declarations and
69634         definitions.
69635         * debug/tst-chk1.c: Don't declare gets here.
69636         * stdio-common/tst-gets.c: Likewise.
69637
69638 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69639
69640         * posix/glob: Remove directory.
69641
69642 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69643
69644         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69645
69646 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69647
69648         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69649         of the non-standard EPFNOSUPPORT.
69650
69651 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69652
69653         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69654         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69655         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69656
69657 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69658
69659         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69660
69661 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69662
69663         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69664         transient errors.
69665         * nscd/grpcache.c (cache_addgr): Likewise.
69666         * nscd/hstcache.c (cache_addhst): Likewise.
69667         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69668         * nscd/pwdcache.c (cache_addpw): Likewise.
69669         * nscd/servicescache.c (cache_addserv): Likewise.
69670
69671 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69672
69673         * malloc/malloc.c: Various cleanups.
69674         * malloc/hooks.c: Likewise.
69675
69676         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69677         * stdlib/bug-fmtmsg1.c: New file.
69678
69679         * stdlib/fmtmsg.c (init): Add missing unlock.
69680         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69681
69682 2012-01-12  Marek Polacek  <polacek@redhat.com>
69683
69684         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69685         and _GNU_SOURCE.
69686
69687 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69688
69689         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69690         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69691         macro to ensure uniqueness of label name.
69692         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69693         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69694
69695 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69696
69697         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69698
69699         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69700         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69701         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69702         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69703
69704 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69705
69706         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69707
69708         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69709         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69710         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69711
69712         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69713
69714         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69715         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69716         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69717         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69718
69719         * math/bits/math-finite.h: Add ldexp support.
69720
69721 2012-01-10  Marek Polacek  <polacek@redhat.com>
69722
69723         * locale/programs/localedef.h (show_archive_content): Add noreturn
69724         attribute.
69725
69726 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69727
69728         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69729
69730 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69731
69732         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69733
69734         * io/Makefile (headers): Add bits/poll2.h.
69735
69736 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69737
69738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69739         typo #include statement.
69740
69741 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69742
69743         * include/sys/cdefs.h: Define __attribute_alloc_size.
69744         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69745         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69746         * elf/pldd.c: Likewise.
69747         * iconv/iconv_charmap.c: Likewise.
69748         * iconv/iconvconfig.c: Likewise.
69749         * iconv/strtab.c: Likewise.
69750         * locale/programs/locale.c: Likewise.
69751         * locale/programs/localedef.h: Likewise.
69752         * locale/programs/simple-hash.c: Likewise.
69753         * nscd/nscd.h: Likewise.
69754         * nss/makedb.c: Likewise.
69755         * sysdeps/generic/ldconfig.h: Likewise.
69756         * locale/programs/localedef.c: Remove xmalloc prototype.
69757         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69758
69759 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69760
69761         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69762         appropriate.
69763
69764 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69765
69766         * math/Makefile (tests): Add tst-CMPLX.
69767         * math/tst-CMPLX.c: New file.
69768
69769         * math/complex.h (CMPLXL): Fix typo.
69770
69771         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69772         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69773         GLIBC_2.16.
69774         * debug/tst-chk1.c: Add poll and ppoll tests.
69775         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69776         * include/sys/poll.h: Add hidden proto for ppoll.
69777         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69778         * sysdeps/mach/hurd/ppoll.c: Likewise.
69779         * io/ppoll.c: Likewise.
69780         * debug/poll_chk.c: New file.
69781         * debug/ppoll_chk.c: New file.
69782         * include/bits/poll2.h: New file.
69783         * io/bits/poll2.h: New file.
69784
69785         [BZ #1350]
69786         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69787
69788         * configure.in: static is always set to yes.  Remove.
69789         * config.make.in: Don't set build-static.
69790         * Makeconfig: Remove use of build-static.
69791         * dlfcn/Makefile: Likewise.
69792         * elf/Makefile: Likewise.
69793         * math/Makefile: Likewise.
69794         * misc/Makefile: Likewise.
69795         * nptl/Makefile: Likewise.
69796         * sysdeps/mach/hurd/Makefile: Likewise.
69797
69798         * configure.in: PWD_P is not used anymore.
69799         * config.make.in: Remove PWD_P entry.
69800
69801         * configure.in: Remove last remnants of RANLIB.
69802         No need to check for signed size_t anymore.
69803         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69804         and IA-64.
69805         Remove __builtin_expect test because we require at least gcc 3.4.
69806         * aclocal.m4: Likewise.
69807
69808         * wcsmbs/mbrtoc16.c: Implement using towc function.
69809         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69810         * wcsmbs/wcsmbsload.c: Likewise.
69811         * iconv/gconv_simple.c: Likewise.
69812         * iconv/gconv_int.h: Likewise.
69813         * iconv/gconv_builtin.h: Likewise.
69814         * iconv/iconv_prog.c: Remove CHAR16 handling.
69815
69816         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69817
69818         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69819
69820         * configure.in: Remove --with-elf and --enable-bounded options.
69821         Dont set base_machine for ia64.  More non-ELF conditions removed.
69822         Remove testing and setting of leading underscore information.
69823         * config.make.in (build-bounded): Set to no.
69824         * config.h.in: Remove NO_UNDERSCORES entry.
69825         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69826         them.
69827         * csu/start.c: Remove !NO_UNDERSCORE code.
69828         * locale/localeinfo.h: Likewise.
69829         * sysdeps/generic/machine-gmon.h: Likewise.
69830         * sysdeps/generic/sysdep.h: Likewise.
69831         * sysdeps/i386/sysdep.h: Likewise.
69832         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69833         * sysdeps/mach/sysdep.h: Likewise.
69834         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69835         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69836         * sysdeps/sh/sysdep.h: Likewise.
69837         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69838         * sysdeps/unix/i386/sysdep.S: Likewise.
69839         * sysdeps/unix/sparc/start.c: Likewise.
69840         * sysdeps/unix/sparc/sysdep.S: Likewise.
69841         * sysdeps/unix/sparc/sysdep.h: Likewise.
69842         * sysdeps/unix/start.c: Likewise.
69843         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69844         * sysdeps/x86_64/sysdep.h: Likewise.
69845
69846 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69847
69848         [BZ #13553]
69849         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69850         for non-gcc.
69851         * argp/argp-fmtstream.h: Use const instead __const.
69852         * argp/argp.h: Likewise.
69853         * assert/assert.h: Likewise.
69854         * bits/fenv.h: Likewise.
69855         * bits/sched.h: Likewise.
69856         * bits/sigset.h: Likewise.
69857         * bits/sigthread.h: Likewise.
69858         * catgets/nl_types.h: Likewise.
69859         * conform/data/pthread.h-data: Likewise.
69860         * crypt/crypt-private.h: Likewise.
69861         * crypt/crypt.h: Likewise.
69862         * crypt/crypt_util.c: Likewise.
69863         * ctype/ctype.h: Likewise.
69864         * debug/execinfo.h: Likewise.
69865         * debug/mbsnrtowcs_chk.c: Likewise.
69866         * debug/mbsrtowcs_chk.c: Likewise.
69867         * debug/wcsnrtombs_chk.c: Likewise.
69868         * debug/wcsrtombs_chk.c: Likewise.
69869         * debug/wcstombs_chk.c: Likewise.
69870         * dirent/dirent.h: Likewise.
69871         * dlfcn/dlfcn.h: Likewise.
69872         * elf/neededtest4.c: Likewise.
69873         * grp/grp.h: Likewise.
69874         * gshadow/gshadow.h: Likewise.
69875         * iconv/gconv.h: Likewise.
69876         * iconv/gconv_int.h: Likewise.
69877         * iconv/gconv_simple.c: Likewise.
69878         * iconv/iconv.h: Likewise.
69879         * iconv/loop.c: Likewise.
69880         * iconv/skeleton.c: Likewise.
69881         * include/aio.h: Likewise.
69882         * include/aliases.h: Likewise.
69883         * include/argz.h: Likewise.
69884         * include/arpa/inet.h: Likewise.
69885         * include/assert.h: Likewise.
69886         * include/dirent.h: Likewise.
69887         * include/dlfcn.h: Likewise.
69888         * include/execinfo.h: Likewise.
69889         * include/fcntl.h: Likewise.
69890         * include/fenv.h: Likewise.
69891         * include/glob.h: Likewise.
69892         * include/grp.h: Likewise.
69893         * include/libintl.h: Likewise.
69894         * include/mntent.h: Likewise.
69895         * include/netdb.h: Likewise.
69896         * include/pwd.h: Likewise.
69897         * include/rpc/netdb.h: Likewise.
69898         * include/sched.h: Likewise.
69899         * include/search.h: Likewise.
69900         * include/shadow.h: Likewise.
69901         * include/signal.h: Likewise.
69902         * include/stdio.h: Likewise.
69903         * include/stdlib.h: Likewise.
69904         * include/string.h: Likewise.
69905         * include/sys/socket.h: Likewise.
69906         * include/sys/stat.h: Likewise.
69907         * include/sys/statfs.h: Likewise.
69908         * include/sys/statvfs.h: Likewise.
69909         * include/sys/syslog.h: Likewise.
69910         * include/sys/time.h: Likewise.
69911         * include/sys/uio.h: Likewise.
69912         * include/time.h: Likewise.
69913         * include/unistd.h: Likewise.
69914         * include/utmp.h: Likewise.
69915         * include/wchar.h: Likewise.
69916         * include/wctype.h: Likewise.
69917         * inet/aliases.h: Likewise.
69918         * inet/arpa/inet.h: Likewise.
69919         * inet/netinet/ether.h: Likewise.
69920         * inet/netinet/in.h: Likewise.
69921         * intl/libintl.h: Likewise.
69922         * io/bits/fcntl2.h: Likewise.
69923         * io/fcntl.h: Likewise.
69924         * io/ftw.h: Likewise.
69925         * io/sys/poll.h: Likewise.
69926         * io/sys/stat.h: Likewise.
69927         * io/sys/statfs.h: Likewise.
69928         * io/sys/statvfs.h: Likewise.
69929         * io/utime.h: Likewise.
69930         * libio/bits/stdio.h: Likewise.
69931         * libio/bits/stdio2.h: Likewise.
69932         * libio/libio.h: Likewise.
69933         * libio/libioP.h: Likewise.
69934         * libio/stdio.h: Likewise.
69935         * locale/lc-ctype.c: Likewise.
69936         * locale/locale.h: Likewise.
69937         * login/utmp.h: Likewise.
69938         * malloc/arena.c: Likewise.
69939         * malloc/malloc.c: Likewise.
69940         * malloc/malloc.h: Likewise.
69941         * malloc/mcheck.c: Likewise.
69942         * malloc/mtrace.c: Likewise.
69943         * math/bits/mathcalls.h: Likewise.
69944         * math/fenv.h: Likewise.
69945         * math/math_private.h: Likewise.
69946         * misc/bits/error.h: Likewise.
69947         * misc/bits/syslog.h: Likewise.
69948         * misc/err.h: Likewise.
69949         * misc/error.h: Likewise.
69950         * misc/fstab.h: Likewise.
69951         * misc/mntent.h: Likewise.
69952         * misc/regexp.h: Likewise.
69953         * misc/search.h: Likewise.
69954         * misc/sgtty.h: Likewise.
69955         * misc/sys/mman.h: Likewise.
69956         * misc/sys/syslog.h: Likewise.
69957         * misc/sys/uio.h: Likewise.
69958         * misc/sys/xattr.h: Likewise.
69959         * misc/ttyent.h: Likewise.
69960         * nis/rpcsvc/ypclnt.h: Likewise.
69961         * nss/nss.h: Likewise.
69962         * posix/bits/unistd.h: Likewise.
69963         * posix/fnmatch.h: Likewise.
69964         * posix/glob.h: Likewise.
69965         * posix/sched.h: Likewise.
69966         * posix/spawn.h: Likewise.
69967         * posix/sys/wait.h: Likewise.
69968         * posix/unistd.h: Likewise.
69969         * posix/wordexp.h: Likewise.
69970         * pwd/pwd.h: Likewise.
69971         * resolv/netdb.h: Likewise.
69972         * resource/sys/resource.h: Likewise.
69973         * rt/aio.h: Likewise.
69974         * rt/bits/mqueue2.h: Likewise.
69975         * rt/mqueue.h: Likewise.
69976         * shadow/shadow.h: Likewise.
69977         * signal/signal.h: Likewise.
69978         * socket/send.c: Likewise.
69979         * socket/sendto.c: Likewise.
69980         * socket/sys/socket.h: Likewise.
69981         * stdio-common/printf.h: Likewise.
69982         * stdlib/bits/stdlib.h: Likewise.
69983         * stdlib/fmtmsg.h: Likewise.
69984         * stdlib/monetary.h: Likewise.
69985         * stdlib/stdlib.h: Likewise.
69986         * stdlib/ucontext.h: Likewise.
69987         * streams/stropts.h: Likewise.
69988         * string/argz.h: Likewise.
69989         * string/bits/string2.h: Likewise.
69990         * string/string.h: Likewise.
69991         * string/strings.h: Likewise.
69992         * sunrpc/rpc/auth.h: Likewise.
69993         * sunrpc/rpc/auth_des.h: Likewise.
69994         * sunrpc/rpc/clnt.h: Likewise.
69995         * sunrpc/rpc/netdb.h: Likewise.
69996         * sunrpc/rpc/pmap_clnt.h: Likewise.
69997         * sunrpc/rpc/xdr.h: Likewise.
69998         * sysdeps/generic/inttypes.h: Likewise.
69999         * sysdeps/generic/net/if.h: Likewise.
70000         * sysdeps/generic/sys/swap.h: Likewise.
70001         * sysdeps/gnu/net/if.h: Likewise.
70002         * sysdeps/gnu/utmpx.h: Likewise.
70003         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70004         * sysdeps/i386/i486/bits/string.h: Likewise.
70005         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70006         * sysdeps/s390/bits/string.h: Likewise.
70007         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70008         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70009         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70010         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70011         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70012         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70013         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70014         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70015         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70016         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70017         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70018         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70019         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70020         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70021         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70022         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70023         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70024         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70025         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70026         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70027         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70028         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70029         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70030         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70031         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70032         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70033         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70034         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70035         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70036         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70037         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70038         * sysvipc/sys/ipc.h: Likewise.
70039         * sysvipc/sys/msg.h: Likewise.
70040         * sysvipc/sys/sem.h: Likewise.
70041         * sysvipc/sys/shm.h: Likewise.
70042         * termios/termios.h: Likewise.
70043         * time/sys/time.h: Likewise.
70044         * time/time.h: Likewise.
70045         * wcsmbs/bits/wchar2.h: Likewise.
70046         * wcsmbs/uchar.h: Likewise.
70047         * wcsmbs/wchar.h: Likewise.
70048         * wctype/wctype.h: Likewise.
70049
70050         [BZ #13551]
70051         * Makeconfig: Remove all but ELF support including AIX support.
70052         * Makerules: Likewise.
70053         * config.h.in: Likewise.
70054         * config.make.in: Likewise.
70055         * configure: Likewise.
70056         * configure.in: Likewise.
70057         * csu/Makefile: Likewise.
70058         * csu/version.c: Likewise.
70059         * debug/Makefile: Likewise.
70060         * dlfcn/Makefile: Likewise.
70061         * elf/Makefile: Likewise.
70062         * extra-lib.mk: Likewise.
70063         * iconv/Makefile: Likewise.
70064         * include/libc-symbols.h: Likewise.
70065         * include/shlib-compat.h: Likewise.
70066         * resolv/Makefile: Likewise.
70067         * resolv/res_libc.c: Likewise.
70068         * rt/Makefile: Likewise.
70069         * sysdeps/i386/asm-syntax.h: Likewise.
70070         * sysdeps/i386/sysdep.h: Likewise.
70071         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70072         * sysdeps/mach/sysdep.h: Likewise.
70073         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70074         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70075         * sysdeps/s390/asm-syntax.h: Likewise.
70076         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70077         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70078         * sysdeps/sh/sysdep.h: Likewise.
70079         * sysdeps/unix/sparc/sysdep.h: Likewise.
70080         * sysdeps/wordsize-32/divdi3.c: Likewise.
70081         * sysdeps/x86_64/sysdep.h: Likewise.
70082
70083         * argp/Versions: Remove _argp_unlock_xxx.
70084
70085         [BZ #13559]
70086         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70087         * abilist/libBrokenLocale.abilist: Likewise.
70088         * abilist/libanl.abilist: Likewise.
70089         * abilist/libc.abilist: Likewise.
70090         * abilist/libcrypt.abilist: Likewise.
70091         * abilist/libdl.abilist: Likewise.
70092         * abilist/libm.abilist: Likewise.
70093         * abilist/libnsl.abilist: Likewise.
70094         * abilist/libpthread.abilist: Likewise.
70095         * abilist/libresolv.abilist: Likewise.
70096         * abilist/librt.abilist: Likewise.
70097         * abilist/libthread_db.abilist: Likewise.
70098         * abilist/libutil.abilist: Likewise.
70099         * abilist/libnss_db.abilist: New file.
70100
70101         * scripts/abilist.awk: Add support for indirect functions.
70102
70103         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70104
70105         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70106
70107         * shlib-versions: Remove entries for ports architectures.
70108
70109         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70110         files in ports.
70111         * elf/stackguard-macros.h: Remove support for IA-64.
70112         * elf/tst-auditmod1.c: Likewise.
70113         * sysdeps/generic/ldsodefs.h: Likewise.
70114
70115         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70116         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70117         configure files.
70118
70119         [BZ #13552]
70120         * configure.in: Remove --enable-omitfp support.
70121         * FAQ.in: Adjust.
70122         * config.make.in: Likewise.
70123         * Makeconfig: Likewise.
70124         * manual/install.texi: Likewise.
70125
70126         In case anyone cares, the IA-64 architecture could move to ports.
70127         * sysdeps/ia64/*: Removed.
70128         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70129         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70130
70131         [BZ #13555]
70132         * configure.in: Remove entries for unsupported architectures.
70133
70134         [BZ #13533]
70135         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70136         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70137         routines.
70138         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70139         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70140         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70141         fall back to using wcrtomb.
70142         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70143         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70144         renaming.
70145         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70146         * wcsmbs/tst-c16c32-1.c: New file.
70147
70148         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70149         local variable.
70150
70151         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70152
70153         * elf/tst-unique3.cc: Add explicit declaration of gets.
70154         * elf/tst-unique3lib.cc: Likewise.
70155         * elf/tst-unique3lib2.cc: Likewise.
70156         * elf/tst-unique4.cc: Likewise.
70157
70158         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70159
70160 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70161
70162         [BZ #13566]
70163         * assert/assert.h (static_assert): Don't define for C++.
70164         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70165         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70166
70167 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70168
70169         * iconv/loop.c (single loop): Fix assertion in storing of
70170         remaining bytes.
70171
70172         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70173
70174 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70175
70176         * posix/getconf.c: Update copyright year.
70177         * nss/getent.c: Likewise.
70178         * nss/makedb.c: Likewise.
70179         * iconv/iconvconfig.c: Likewise.
70180         * iconv/iconv_prog.c: Likewise.
70181         * elf/ldconfig.c: Likewise.
70182         * elf/pldd.c: Likewise.
70183         * elf/sotruss.ksh: Likewise.
70184         * catgets/gencat.c: Likewise.
70185         * csu/version.c: Likewise.
70186         * elf/ldd.bash.in: Likewise.
70187         * elf/sprof.c (print_version): Likewise.
70188         * locale/programs/locale.c: Likewise.
70189         * locale/programs/localedef.c: Likewise.
70190         * login/programs/pt_chown.c: Likewise.
70191         * nscd/nscd.c (print_version): Likewise.
70192         * debug/xtrace.sh: Likewise.
70193         * malloc/memusage.sh: Likewise.
70194         * malloc/mtrace.pl: Likewise.
70195         * debug/catchsegv.sh: Likewise.
70196
70197 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70198
70199         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70200         pure attribute.
70201
70202 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70203
70204         [BZ #13533]
70205         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70206         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70207         transformations.
70208         * iconv/gconv_int.h: Likewise.
70209         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70210         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70211         from libc for GLIBC_2.16.
70212         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70213         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70214         * wcsmbs/uchar.h: Really define mbstate_t.
70215         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70216         * wcsmbs/c16rtomb.c: New file.
70217         * wcsmbs/mbrtoc16.c: New file.
70218         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70219         for C/POSIX locale.
70220         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70221         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70222
70223         * wcsmbs/wchar.h: Add missing __restrict.
70224
70225 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70226
70227         [BZ #13532]
70228         * time/Makefile (routines): Add timespec_get.
70229         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70230         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70231         timespec for ISO C11.
70232         * time/timespec_get.c: New file.
70233         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70234         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70235
70236         [BZ #13531]
70237         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70238         * stdlib/stdlib.h: Declare aligned_alloc.
70239         * Versions.def: Add GLIBC_2.16 for libc.
70240         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70241
70242         [BZ 13527]
70243         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70244         ISO C11.
70245
70246         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70247         code.
70248
70249         [BZ #13528]
70250         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70251
70252         [BZ #13529]
70253         * assert/assert.h (static_assert): Define.
70254
70255         * version.h: Update for 2.16 development version.
70256
70257         [BZ #13526]
70258         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70259         _ISOC11_SOURCE.
70260
70261         * version.h (RELEASE): Bump for 2.15 release.
70262         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70263
70264         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70265         Patch by Marek Polacek <mpolacek@redhat.com>.
70266
70267         * bits/byteswap.h: Protect long long constants with __extension__.
70268         * sysdeps/i386/bits/byteswap.h: Likewise.
70269         * sysdeps/ia64/bits/byteswap.h: Likewise.
70270         * sysdeps/s390/bits/byteswap.h: Likewise.
70271         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70272
70273 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70274
70275         [BZ #13540]
70276         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70277         destination buffer.
70278         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70279
70280 2011-12-23  Marek Polacek  <polacek@redhat.com>
70281
70282         * elf/dl-addr.c (determine_info): Add inline keyword.
70283         * elf/tst-auditmod4b.c (check_avx): Likewise.
70284         * elf/tst-auditmod6b.c (check_avx): Likewise.
70285         * elf/tst-auditmod6c.c (check_avx): Likewise.
70286         * elf/tst-auditmod7b.c (check_avx): Likewise.
70287
70288 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70289
70290         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70291         !__SSE_MATH__.
70292
70293 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70294
70295         [BZ #13540]
70296         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70297         processing for last bytes.
70298
70299 2011-08-06  Bruno Haible  <bruno@clisp.org>
70300
70301         [BZ #13061]
70302         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70303         U+0385, not to U+1FEE.
70304
70305         [BZ #13062]
70306         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70307         entry for U+00A5 U+0301.
70308
70309 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70310
70311         [BZ #13166]
70312         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70313         buffer for the output is too small.
70314
70315         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70316         optimization.
70317
70318         [BZ #13185]
70319         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70320         SSE flags if possible.
70321
70322 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70323
70324         [BZ #13540]
70325         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70326         processing for last bytes.
70327
70328 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70329
70330         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70331         (syscall-list-default-options, syscall-list-default-condition)
70332         (syscall-list-includes): Define.
70333         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70334         list of ABIs and options and #if conditions for each ABI.  Do not
70335         handle common syscalls between ABIs specially.
70336         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70337         Remove.
70338         (syscall-list-variants, syscall-list-32bit-options)
70339         (syscall-list-32bit-condition, syscall-list-64bit-options)
70340         (syscall-list-64bit-condition): Define.
70341         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70342         (syscall-list-variants, syscall-list-32bit-options)
70343         (syscall-list-32bit-condition, syscall-list-64bit-options)
70344         (syscall-list-64bit-condition): Define.
70345         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70346         Remove.
70347         (syscall-list-variants, syscall-list-32bit-options)
70348         (syscall-list-32bit-condition, syscall-list-64bit-options)
70349         (syscall-list-64bit-condition): Define.
70350         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70351         Remove.
70352         (syscall-list-variants, syscall-list-32bit-options)
70353         (syscall-list-32bit-condition, syscall-list-64bit-options)
70354         (syscall-list-64bit-condition): Define.
70355
70356 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70357
70358         * locale/iso-639.def: Add brx entry.
70359
70360         [BZ #13328]
70361         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70362         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70363
70364         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70365         __feraiseexcept_renamed.
70366
70367 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70368
70369         [BZ #13538]
70370         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70371         EPOLLET with unsigned values.
70372         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70373         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70374
70375         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70376         to large cancellation.
70377         * math/s_cacoshf.c: Likewise.
70378         * math/s_cacoshl.c: Likewise.
70379
70380 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70381
70382         [BZ #13305]
70383         [BZ #12786]
70384         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70385         * math/s_cacoshf.c: Likewise.
70386         * math/s_cacoshl.c: Likewise.
70387
70388 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70389
70390         [BZ #13439]
70391         * iconv/gconv.h: Define __GCONV_SWAP.
70392         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70393         * iconvdata/utf-16.c: Likewise.
70394         * iconvdata/utf-32.c: Likewise.
70395
70396 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70397
70398         [BZ #13524]
70399         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70400         numerator after shifting it by one limb.
70401
70402 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70403
70404         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70405         under [__USE_EXTERN_INLINES].
70406
70407 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70408
70409         [BZ #13446]
70410         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70411
70412 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70413
70414         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70415         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70416         optimized code.
70417         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70418         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70419         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70420         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70421         for strncasecmp/strncasecmp_l compilation.
70422         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70423         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70424
70425 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70426
70427         [BZ #13484]
70428         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70429         of __asm__.
70430
70431 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70432
70433         [BZ #13506]
70434         * time/tzfile.c (__tzfile_read): Check values from file header.
70435
70436 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70437
70438         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70439         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70440         * powerpc/powerpc32/dl-start.S: Likewise.
70441         * powerpc/powerpc32/elf/start.S: Likewise.
70442         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70443         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70444         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70445         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70446         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70447         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70448         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70449         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70450         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70451         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70452         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70453         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70454         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70455         * powerpc/powerpc32/memset.S: Likewise.
70456         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70457         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70458         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70459         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70460         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70461         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70462         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70463         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70464         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70465         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70466         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70467         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70468         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70469
70470 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70471
70472         * math/libm-test.inc: Added more nearbyint tests.
70473         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70474         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70475         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70476         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70477
70478 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70479
70480         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70481         FD_CLOEXEC.
70482
70483 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70484
70485         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70486         Add wcscpy-ssse3 wcscpy-c.
70487         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70488         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70489         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70490         * sysdeps/x86_64/wcschr.S: New file.
70491         * sysdeps/x86_64/wcsrchr.S: New file.
70492         * string/test-strcmp.c: Remove checking of wcscmp function for
70493         wrong alignments.
70494         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70495         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70496         wcsrchr-sse2 wcsrchr-c.
70497         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70498         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70499         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70500         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70501         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70502         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70503         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70504         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70505         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70506         * wcsmbc/wcschr.c (WCSCHR): New macro.
70507
70508 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70509
70510         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70511         * wcsmbs/test-wcsrchr.c: New file.
70512         * string/test-strrchr.c: Add wcsrchr support.
70513         (WIDE): New macro.
70514         * wcsmbs/test-wcscpy.c: New file.
70515         * string/test-strcpy.c: Add wcscpy support.
70516         (WIDE): New macro.
70517
70518 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70519
70520         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70521         the inner loop.
70522
70523 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70524
70525         [BZ #13472]
70526         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70527
70528 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70529
70530         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70531         Minor optimizations.
70532
70533         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70534         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70535         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70536
70537 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70538
70539         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70540         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70541         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70542         for gcc to avoid warnings.
70543         * inet/Makefile (tests): Add tst-checks.
70544         * inet/tst-checks.c: New file.
70545
70546         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70547         warning.
70548
70549         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70550         __wmemcmp_sse2.
70551
70552         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70553         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70554
70555         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70556
70557 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70558
70559         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70560         problem.
70561
70562         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70563
70564 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70565
70566         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70567         conditional on GCC version.
70568         (__arch_compare_and_exchange_val_8_acq)
70569         (__arch_compare_and_exchange_val_16_acq)
70570         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70571         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70572         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70573
70574 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70575
70576         * sysdeps/sh/backtrace.c: New file.
70577
70578 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70579
70580         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70581         parenthesis.
70582
70583 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70584
70585         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70586         falling back to utime.
70587
70588 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70589
70590         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70591         expectations for float.
70592
70593 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70594
70595         * locale/weight.h (findidx): Add parameter len.
70596         * locale/weightwc.h (findidx): Likewise.
70597         * posix/fnmatch_loop.c (FCT): Adjust caller.
70598         * posix/regcomp.c (build_equiv_class): Likewise.
70599         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70600         * posix/regexec.c (check_node_accept_bytes): Likewise.
70601         * string/strcoll_l.c (STRCOLL): Likewise.
70602         * string/strxfrm_l.c (STRXFRM): Likewise.
70603
70604 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70605
70606         * Makefile.in: Remove CVSOPT handling.
70607         * configure.in: Remove use of AC_REVISION.
70608         * iconvdata/Makefile (distribute): No need to filter out CVS.
70609         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70610         handling.
70611
70612 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70613
70614         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70615         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70616         [USE_AS_STRNCASECMP_L]: Likewise.
70617         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70618         NO_TLS_DIRECT_SEG_REFS.
70619         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70620         Fix argument offsets for non-PIC.
70621         [USE_AS_STRNCASECMP_L]: Likewise.
70622         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70623         NO_TLS_DIRECT_SEG_REFS.
70624
70625 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70626
70627         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70628         O_CLOEXEC.
70629         * locale/loadlocale.c (_nl_load_locale): Likewise.
70630
70631 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70632
70633         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70634         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70635         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70636         (SYSCALL_GETTIME): Set errno on error.
70637
70638         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70639         count references to noai6ai_cached.
70640
70641 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70642
70643         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70644
70645         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70646         FD_CLOEXEC for /proc/self/maps.
70647
70648         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70649         FD_CLOEXEC for /proc/meminfo.
70650
70651         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70652         gai.conf.
70653
70654         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70655         FD_CLOEXEC for given file.
70656
70657         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70658
70659         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70660         FD_CLOEXEC for /etc/hosts.
70661         (_gethtent): Likewise.
70662
70663         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70664
70665         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70666         cancellation and set FD_CLOEXEC for /etc/netgroup.
70667
70668         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70669         reading /etc/publickey.
70670
70671         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70672         allow cancellation when reading /etc/group.
70673
70674         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70675         cancellation.
70676         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70677
70678         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70679         when using data file.
70680
70681         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70682
70683         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70684         (write_nis_obj): Use "c" and "e" in fopen.
70685
70686         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70687
70688         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70689
70690         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70691
70692         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70693
70694         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70695         locale.alias.
70696
70697         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70698
70699         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70700
70701         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70702
70703         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70704         file parsing and set FD_CLOEXEC.
70705
70706 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70707
70708         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70709
70710 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70711
70712         * malloc/arena.c (arena_get2): Don't call reused_arena when
70713         _int_new_arena failed.
70714
70715 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70716
70717         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70718         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70719         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70720         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70721         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70722         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70723         to compile strcasecmp and strncasecmp.
70724         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70725         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70726
70727         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70728
70729 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70730
70731         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70732         locale-defines.sym to gen-as-const-headers.
70733         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70734         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70735         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70736         to compile strcasecmp and strncasecmp.
70737         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70738         strcasecmp_l and strncasecmp_l.
70739         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70740         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70741         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70742         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70743         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70744         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70745         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70746         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70747         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70748         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70749         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70750
70751 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70752
70753         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70754         result of SYSDEP_GETTIME_CPU to retval.
70755         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70756         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70757
70758         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70759         variable.
70760
70761         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70762         mantissa words.
70763         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70764
70765         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70766         from unused variable.
70767
70768         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70769         DWARF definitions.
70770         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70771         for assembling.
70772
70773         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70774         over namespaces.
70775
70776         * sunrpc/rpc_prot.c (rejected): Fix case value.
70777
70778         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70779         unsigned long long int to avoid warnings in shift.
70780
70781         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70782         of use of trans.
70783         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70784         variable tmp.
70785
70786         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70787         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70788         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70789
70790         * nis/nis_table.c (nis_list): Use variable of correct type for
70791         result of __follow_path call.
70792
70793 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70794
70795         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70796         of math functions ceil, trunc, floor, round, and sqrt, when
70797         avaliable on the platform.
70798         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70799         name clash.
70800         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70801         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70802         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70803
70804 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70805
70806         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70807         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70808
70809 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70810
70811         * include/unistd.h: Fix __readlink return type.
70812         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70813
70814 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70815
70816         * stdlib/ucontext.h: Undo last change for makecontext.
70817
70818 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70819
70820         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70821
70822         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70823         * setjmp/setjmp.h: Mark functions as non-leaf.
70824         * setjmp/bits/setjmp2.h: Likewise.
70825         * stdlib/ucontext.h: Likewise.
70826
70827 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70828
70829         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70830         (reused_arena): Don't check arena limit.
70831         (arena_get2): Atomically check arena limit.
70832
70833 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70834
70835         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70836         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70837
70838         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70839         instructions.
70840
70841 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70842
70843         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70844         handler when locking.
70845
70846         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70847         Fix size of allocated buffer.
70848
70849 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70850
70851         [BZ #10103]
70852         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70853         declarations for long double functions.
70854         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70855
70856         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70857
70858 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70859
70860         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70861         installed.
70862
70863         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70864         is disabled.
70865
70866 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70867
70868         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70869
70870 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70871
70872         * include/alloca.h (stackinfo_alloca_round): Define.
70873         (extend_alloca): Use it.
70874         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70875         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70876         here.
70877
70878         * scripts/check-local-headers.sh: Ignore libaudit.h.
70879
70880         * nscd/Makefile (extra-objs): Make recursively expanded.
70881
70882 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70883
70884         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70885         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70886
70887         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70888         * posix/tst-rfc3484-2.c: Likewise.
70889         * posix/tst-rfc3484-3.c: Likewise.
70890
70891         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70892         process_vm_writev.
70893         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70894         process_vm_writev.
70895         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70896         process_vm_writev from libc using GLIBC_2.15 version.
70897
70898         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70899
70900 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70901
70902         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70903         stack usage.
70904
70905 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70906
70907         [BZ #13367]
70908         * nss/getent.c (initgroups_keys): Show error message in case no group
70909         names are given.
70910
70911         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70912         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70913         __bump_nl_timestamp.
70914         * nscd/connections (nscd_init): When host database is served open
70915         netlink socket and request notification about configuration changes.
70916         (main_loop_poll): Track netlink file descriptor and bump timestamp
70917         in case data becomes available.
70918         (main_loop_epoll): Likewise.
70919         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70920         (database_pers_head): Add extra_data fileds.
70921         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70922         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70923         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70924         Adjust caller.
70925         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70926         in6ai data, call __free_in6ai.
70927         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70928         Add -DHAVE_NETLINK.
70929         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70930         interface information.  Reuse previous data if netlink timestamp
70931         is not changed.
70932         (__bump_nl_timestamp): New function.
70933         (__free_in6ai): New function.
70934
70935 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70936
70937         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70938         close_not_cancel_no_status here.
70939         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70940
70941 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70942
70943         [BZ #13276]
70944         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70945         return value.
70946
70947         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70948         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70949         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70950
70951 2011-07-03  Andreas Jaeger  <aj@suse.de>
70952
70953         [BZ #10709]
70954         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70955         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70956         * math/libm-test.inc (sin_test): Add test case.
70957
70958 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70959
70960         [BZ #13337]
70961         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70962         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70963
70964         * elf/chroot_canon.c (chroot_canon): Cleanups.
70965
70966         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70967
70968         [BZ #13335]
70969         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70970         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70971
70972         * string/test-strchr.c: Make usable for strchrnul testing.
70973         * string/test-strchrnul.c: New file.
70974         * string/Makefile (strop-tests): Add strchrnul.
70975
70976         * po/it.po: Update from translation team.
70977         * po/es.po: Likewise.
70978
70979 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70980
70981         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70982         the three constants needed as parameters.  Drop the others.
70983         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70984         __m128i_strloadu_tolower.
70985         Create and initialize variable zero and use it in all the places
70986         where _mm_setzero_si128 was used.
70987
70988         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70989         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70990         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70991         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70992         anymore.
70993         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70994         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70995         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70996         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70997         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70998         __mpranred, __mptan.
70999         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71000         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71001         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71002         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71003         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71004         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71005         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71006         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71007         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71008
71009 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71010
71011         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71012         redefine if SHARED.
71013         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71014
71015         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71016         wide char related routines to wcsmbs subdir.
71017
71018 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71019
71020         [BZ #13344]
71021         * misc/sys/cdefs.h (__THROWNL): Define.
71022         * posix/unistd.h: Use __THREADNL instead of __THREAD
71023         for memory synchronization functions.
71024
71025 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71026
71027         [BZ #13349]
71028         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71029         doesn't exist.
71030         * manual/stdio.texi (Obstack Streams): Node removed.
71031
71032 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71033
71034         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71035         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71036         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71037
71038         * math/math_private.h (math_force_eval): Allow non-addressable
71039         arguments.
71040         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71041
71042 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71043
71044         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71045         file is not needed.
71046
71047         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71048         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71049         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71050         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71051         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71052         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71053         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71054         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71055         Add AVX variants.
71056         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71057         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71058         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71059         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71060         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71061         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71062         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71063         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71064         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71065         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71066         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71067         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71068         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71069         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71070         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71071         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71072         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71073         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71074         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71075
71076         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71077         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71078
71079         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71080         place.  Use VEX encoding when compiling for AVX.
71081
71082 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71083
71084         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71085         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71086
71087         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71088
71089 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71090
71091         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71092         useless if() expression.
71093         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71094         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71095         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71096         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71097         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71098         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71099         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71100         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71101         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71102         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71103         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71104         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71105         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71106         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71107         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71108         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71109         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71110         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71111         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71112
71113         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71114
71115 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71116
71117         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71118         condition.
71119         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71120
71121 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71122
71123         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71124         .text section.  Avoid duplicate constants.
71125         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71126         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71127         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71128         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71129         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71130         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71131         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71132         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71133         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71134         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71135         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71136         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71137         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71138         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71139         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71140         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71141         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71142         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71143         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71144         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71145         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71146         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71147         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71148         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71149         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71150         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71151         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71152         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71153         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71154         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71155         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71156         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71157         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71158         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71159         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71160         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71161         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71162         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71163         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71164         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71165         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71166         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71167         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71168         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71169         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71170
71171 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71172
71173         * sysdeps/x86_64/dla.h: Move to ...
71174         * sysdeps/x86_64/fpu/dla.h: ...here.
71175         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71176         situations.  Use __builtin_fma only for gcc 4.6 and up.
71177
71178         * config.make.in: Add have-mfma4 entry.
71179         * configure.in: Substitute libc_cv_cc_fma4.
71180         * math/Makefile (dbl-only-routines): Add sincostab.
71181         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71182         Use __sincostab not sincos.
71183         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71184         name is a macro.
71185         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71186         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71187         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71188         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71189         using __copysign.
71190         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71191         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71192         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71193         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71194         and __inv.
71195         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71196         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71197         __copysign.
71198         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71199         define aliases when function name is a macro.
71200         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71201         sysdeps/ieee754/dbl-64/sincos.tbl.
71202         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71203         fma4-enabled routines.
71204         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71205         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71206         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71207         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71208         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71209         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71210         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71211         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71212         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71213         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71214         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71215         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71216         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71217         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71218         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71219         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71220         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71221         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71222         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71223         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71224         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71225         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71226         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71227         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71228         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71229         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71230         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71231         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71232         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71233         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71234
71235         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71236         rename.
71237         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71238         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71239         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71240         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71241         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71242         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71243         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71244         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71245
71246 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71247
71248         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71249
71250 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71251
71252         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71253
71254         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71255         prediction.
71256         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71257
71258         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71259         Remove unused variable magic_bits.
71260         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71261
71262         * string/strnlen.c: Define and use STRNLEN macro.
71263         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71264         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71265         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71266         * wcsmbs/wcslen.c: Define and use WCSLEN.
71267         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71268         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71269         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71270         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71271         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71272         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71273         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71274
71275 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71276
71277         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71278         strnlen-sse2-no-bsf.
71279         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71280         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71281         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71282         Add strnlen support.
71283         (USE_AS_STRNLEN): New macro.
71284         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71285         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71286         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71287         * sysdeps/x86_64/wcslen.S: New file.
71288
71289 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71290
71291         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71292         XMM-moves are used for copying on small sizes.
71293
71294 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71295
71296         * wcsmbs/Makefile (strop-tests): Add wcschr.
71297         * wcsmbs/test-wcschr.c: New file.
71298         * string/test-strchr.c: Update.
71299         Add wcschr support.
71300         (WIDE): New macro.
71301
71302 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71303
71304         * wcsmbs/Makefile (strop-tests): Add wcslen.
71305         * wcsmbs/test-wcslen.c: New file.
71306         * string/test-strlen.c: Update.
71307         Add wcslen support.
71308         (WIDE): New macro.
71309
71310 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71311
71312         * po/it.po: Update from translation team.
71313
71314 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71315
71316         * sysdeps/x86_64/wcscmp.S: Update.
71317         Fix wrong comparison semantics.
71318         wcscmp shall use signed comparison not unsigned.
71319         Don't use substraction to avoid overflow bug.
71320         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71321         * wcsmbc/wcscmp.c: Likewise.
71322         * string/test-strcmp.c: Likewise.
71323         Add new tests to check cases with negative values.
71324
71325 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71326
71327         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71328         * sysdeps/x86_64/dla.h: ...here.  New file.
71329         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71330         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71331         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71332         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71333         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71334         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71335         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71336         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71337         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71338
71339 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71340
71341         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71342         __ynl_finite aliases.
71343
71344 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71345
71346         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71347
71348         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71349         define DLA_FMA.
71350         [DLA_FMA] (EMULV): Use DLA_FMA.
71351         [DLA_FMA] (MUL12): Use EMULV.
71352         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71353         that are not needed.
71354         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71355         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71356         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71357         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71358         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71359         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71360         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71361
71362 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71363
71364         * math/s_nan.c: Undef __nan.
71365         * math/s_nanf.c: Undef __nanf.
71366         * math/s_nanl.c: Undef __nanl.
71367         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71368         "math_private.h".
71369
71370 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71371
71372         * math/s_catan.c: Add branch predictions.
71373         * math/s_catanf.c: Likewise.
71374         * math/s_catanh.c: Likewise.
71375         * math/s_catanhf.c: Likewise.
71376         * math/s_catanhl.c: Likewise.
71377         * math/s_catanl.c: Likewise.
71378         * math/s_cexp.c: Likewise.
71379         * math/s_cexpf.c: Likewise.
71380         * math/s_cexpl.c: Likewise.
71381         * math/s_clog.c: Likewise.
71382         * math/s_clog10.c: Likewise.
71383         * math/s_clog10f.c: Likewise.
71384         * math/s_clog10l.c: Likewise.
71385         * math/s_clogf.c: Likewise.
71386         * math/s_clogl.c: Likewise.
71387         * math/s_csqrt.c: Likewise.
71388         * math/s_csqrtf.c: Likewise.
71389         * math/s_csqrtl.c: Likewise.
71390         * math/s_ctanf.c: Likewise.
71391         * math/s_ctanh.c: Likewise.
71392         * math/s_ctanhf.c: Likewise.
71393         * math/s_ctanhl.c: Likewise.
71394         * math/s_ctanl.c: Likewise.
71395
71396         * math/math_private.h: Define __nan, __nanf, __nanl.
71397         * math/s_cacosh.c: Include <math_private.h>.
71398         * math/s_cacoshl.c: Likewise.
71399         * math/s_casinh.c: Likewise.
71400         * math/s_casinhf.c: Likewise.
71401         * math/s_casinhl.c: Likewise.
71402         * math/s_ccos.c: Rely entire on ccosh.
71403         * math/s_ccosf.c: Rely entire on ccoshf.
71404         * math/s_ccosl.c: Rely entirely on ccoshl.
71405         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71406         Remove tests for FE_INVALID.
71407         * math/s_ccoshf.c: Likewise.
71408         * math/s_ccoshl.c: Likewise.
71409         * math/s_csin.c: Likewise.
71410         * math/s_csinf.c: Likewise.
71411         * math/s_csinh.c Likewise.
71412         * math/s_csinhf.c: Likewise.
71413         * math/s_csinhl.c: Likewise.
71414         * math/s_csinl.c: Likewise.
71415         * math/s_ctan.c: Likewise.
71416         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71417         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71418         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71419
71420 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71421
71422         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71423         compilation problems.
71424
71425         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71426         __builtin_expect.
71427
71428 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71429
71430         * sysdeps/i386/configure.in: Test for -mfma4 option.
71431         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71432         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71433         COMMON_CPUID_INDEX_80000001.
71434         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71435         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71436         use it if FMA3 is not supported.
71437         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71438
71439         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71440         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71441
71442 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71443
71444         [BZ #12892]
71445         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71446         it would create a cycle with a link time dependency.
71447
71448 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71449
71450         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71451         instruction.
71452         * string/Makefile (strop-tests): Add rawmemchr.
71453         * string/test-rawmemchr.c: New file.
71454
71455         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71456         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71457         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71458         when compiling str{,n}casecmp and when AVX is available.  Hook up
71459         new optimized code in initializers.
71460
71461 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71462
71463         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71464         __feraiseexcept instead of feraiseexcept.
71465
71466 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71467
71468         * math/math_private.h: Define defaults for libc_fetestexcept and
71469         libc_feupdateenv.
71470         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71471         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71472         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71473         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71474         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71475         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71476         libc_fetestexcept and libc_feupdateenv.
71477
71478         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71479         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71480         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71481         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71482         libc_feholdexcept_setround.
71483
71484         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71485         Add s_nearbyint-c and s_nearbyintf-c.
71486         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71487         nearbyintf inlines.
71488         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71489         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71490         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71491         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71492
71493         * math/math_private.h: Define defaults for libc_fegetround,
71494         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71495         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71496         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71497         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71498         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71499         standard functions.
71500         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71501         Remove comments and hacks for old compiler versions.
71502         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71503         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71504         libc_feholdexceptl.
71505
71506 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71507
71508         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71509         (__feraiseexcept_renamed): Add __NTH.
71510         (feraiseexcept): Add __NTH.  Rename local variables to fix
71511         namespace violations.
71512
71513 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71514
71515         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71516
71517         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71518
71519         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71520         recently added interfaces.
71521         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71522
71523         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71524         about macro parameter expansion.
71525
71526         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71527         __NO_MATH_INLINES is defined.  Cleanups.
71528
71529         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71530         and __floorf is target has SSE4.1.
71531         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71532         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71533         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71534         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71535
71536         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71537         name.
71538         (floorf): Likewise.
71539
71540         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71541
71542 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71543
71544         * misc/sys/cdefs.h: Fix last change.
71545
71546         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71547         database lookup.
71548
71549 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71550
71551         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71552
71553         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71554         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71555         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71556         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71557         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71558         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71559         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71560         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71561         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71562         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71563         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71564         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71565         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71566         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71567         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71568         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71569         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71570         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71571         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71572         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71573         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71574         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71575
71576         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71577         ceil, ceilf, floor, floorf.
71578
71579         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71580         Perform IRELATIVE relocations last.
71581
71582         * elf/do-rel.h: Add another parameter nrelative, replacing the
71583         local variable with the same name.  Change name of the function
71584         to end in Rel or Rela (uppercase).
71585         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71586         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71587         elf_dynamic_do_##reloc function.
71588
71589 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71590
71591         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71592         is sufficient, at least on modern CPUs.
71593
71594         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71595
71596         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71597         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71598
71599         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71600         __expl_finite.
71601         * math/bits/math-finite.h: Add entries for exp.
71602         * math/e_expl.c: Add __*_finite alias.
71603         * sysdeps/i386/fpu/e_exp.S: Likewise.
71604         * sysdeps/i386/fpu/e_expf.S: Likewise.
71605         * sysdeps/i386/fpu/e_expl.c: Likewise.
71606         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71607         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71608         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71609         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71610         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71611         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71612         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71613
71614         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71615         is sufficient, at least on modern CPUs.
71616
71617         * ctype/ctype-info.c (__ctype_init): Define.
71618         * include/ctype.h (__ctype_init): Declare.
71619         (__ctype_b_loc): The variable is always initialized.
71620         (__ctype_toupper_loc): Likewise.
71621         (__ctype_tolower_loc): Likewise.
71622         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71623         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71624
71625 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71626
71627         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71628
71629         * configure.in: Also look in $cxxmachine/include for C++ system
71630         headers.
71631
71632 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71633
71634         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71635         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71636         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71637         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71638         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71639         (USE_AS_WMEMCMP): New macro.
71640         Fixing indents.
71641         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71642         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71643         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71644         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71645         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71646         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71647         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71648         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71649         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71650         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71651         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71652         (USE_AS_WMEMCMP): New macro.
71653         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71654         * sysdeps/string/test-memcmp.c: Update.
71655         Fix simple_wmemcmp.
71656         Add new tests.
71657         * wcsmbs/wmemcmp.c: Update.
71658         (WMEMCMP): New macro.
71659         Fix overflow bug.
71660
71661 2011-10-12  Andreas Jaeger  <aj@suse.de>
71662
71663         [BZ #13268]
71664         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71665
71666 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71667
71668         * libio/iofwide.c (do_length): Avoid warning.
71669
71670         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71671
71672 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71673
71674         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71675
71676         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71677         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71678         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71679         * sysdeps/i386/i686/fpu/e_log.S: New file.
71680         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71681         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71682
71683         * ctype/ctype.h: Add support for inlined isXXX functions when
71684         compiling C++ code.
71685
71686 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71687
71688         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71689
71690         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71691
71692 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71693
71694         [BZ #13291]
71695         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71696
71697 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71698
71699         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71700         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71701         feraiseexcept.
71702
71703         * sysdeps/x86_64/memrchr.S: Check for zero size.
71704
71705         * string/stratcliff.c: Add memrchr tests.
71706
71707 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71708
71709         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71710         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71711         rawmemchr-sse2 rawmemchr-sse2-bsf.
71712         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71713         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71714         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71715         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71716         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71717         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71718         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71719         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71720         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71721         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71722         * string/memrchr.c (MEMRCHR): New macro.
71723
71724 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71725
71726         Add integration with gcc's -ffinite-math-only and optimize wrapper
71727         functions in libm.
71728         * Versions.def: Define GLIBC_2.15 version for libm.
71729         * math/Makefile (headers): Add bits/math-finite.h.
71730         * math/bits/math-finite.h: New file.
71731         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71732         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71733         * math/e_acoshl.c: Add __*_finite alias.
71734         * math/e_acosl.c: Likewise.
71735         * math/e_asinl.c: Likewise.
71736         * math/e_atan2l.c: Likewise.
71737         * math/e_atanhl.c: Likewise.
71738         * math/e_coshl.c: Likewise.
71739         * math/e_exp10.c: Likewise.
71740         * math/e_exp10f.c: Likewise.
71741         * math/e_exp10l.c: Likewise.
71742         * math/e_exp2l.c: Likewise.
71743         * math/e_fmodl.c: Likewise.
71744         * math/e_gammal_r.c: Likewise.
71745         * math/e_hypotl.c: Likewise.
71746         * math/e_j0l.c: Likewise.
71747         * math/e_j1l.c: Likewise.
71748         * math/e_jnl.c: Likewise.
71749         * math/e_lgammal_r.c: Likewise.
71750         * math/e_log10l.c: Likewise.
71751         * math/e_log2l.c: Likewise.
71752         * math/e_logl.c: Likewise.
71753         * math/e_powl.c: Likewise.
71754         * math/e_sinhl.c: Likewise.
71755         * math/e_sqrtl.c: Likewise.
71756         * math/e_scalb.c: Completely rewritten and optimized.
71757         * math/e_scalbf.c: Likewise.
71758         * math/e_scalbl.c: Likewise.
71759         * math/w_acos.c: Likewise.
71760         * math/w_acosf.c: Likewise.
71761         * math/w_acosl.c: Likewise.
71762         * math/w_acosh.c: Likewise.
71763         * math/w_acoshf.c: Likewise.
71764         * math/w_acoshl.c: Likewise.
71765         * math/w_asin.c: Likewise.
71766         * math/w_asinf.c: Likewise.
71767         * math/w_asinl.c: Likewise.
71768         * math/w_atan2.c: Likewise.
71769         * math/w_atan2f.c: Likewise.
71770         * math/w_atan2l.c: Likewise.
71771         * math/w_atanh.c: Likewise.
71772         * math/w_atanhf.c: Likewise.
71773         * math/w_atanhl.c: Likewise.
71774         * math/w_exp10.c: Likewise.
71775         * math/w_exp10f.c: Likewise.
71776         * math/w_exp10l.c: Likewise.
71777         * math/w_fmod.c: Likewise.
71778         * math/w_fmodf.c: Likewise.
71779         * math/w_fmodl.c: Likewise.
71780         * math/w_j0.c: Likewise.
71781         * math/w_j0f.c: Likewise.
71782         * math/w_j0l.c: Likewise.
71783         * math/w_j1.c: Likewise.
71784         * math/w_j1f.c: Likewise.
71785         * math/w_j1l.c: Likewise.
71786         * math/w_jn.c: Likewise.
71787         * math/w_jnf.c: Likewise.
71788         * math/w_log.c: Likewise.
71789         * math/w_logf.c: Likewise.
71790         * math/w_logl.c: Likewise.
71791         * math/w_log10.c: Likewise.
71792         * math/w_log10f.c: Likewise.
71793         * math/w_log10l.c: Likewise.
71794         * math/w_log2.c: Likewise.
71795         * math/w_log2f.c: Likewise.
71796         * math/w_log2l.c: Likewise.
71797         * math/w_pow.c: Likewise.
71798         * math/w_powf.c: Likewise.
71799         * math/w_powl.c: Likewise.
71800         * math/w_remainder.c: Likewise.
71801         * math/w_remainderf.c: Likewise.
71802         * math/w_remainderl.c: Likewise.
71803         * math/w_scalb.c: Likewise.
71804         * math/w_scalbf.c: Likewise.
71805         * math/w_scalbl.c: Likewise.
71806         * math/w_sqrt.c: Likewise.
71807         * math/w_sqrtf.c: Likewise.
71808         * math/w_sqrtl.c: Likewise.
71809         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71810         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71811         used.
71812         * math/math_private.h: Declare __kernel_standard_f.
71813         * math/w_cosh.c: Remove cruft and optimize a bit.
71814         * math/w_coshf.c: Likewise.
71815         * math/w_coshl.c: Likewise.
71816         * math/w_exp2.c: Likewise.
71817         * math/w_exp2f.c: Likewise.
71818         * math/w_exp2l.c: Likewise.
71819         * math/w_hypot.c: Likewise.
71820         * math/w_hypotf.c: Likewise.
71821         * math/w_hypotl.c: Likewise.
71822         * math/w_lgamma.c: Likewise.
71823         * math/w_lgamma_r.c: Likewise.
71824         * math/w_lgammaf.c: Likewise.
71825         * math/w_lgammaf_r.c: Likewise.
71826         * math/w_lgammal.c: Likewise.
71827         * math/w_lgammal_r.c: Likewise.
71828         * math/w_sinh.c: Likewise.
71829         * math/w_sinhf.c: Likewise.
71830         * math/w_sinhl.c: Likewise.
71831         * math/w_tgamma.c: Likewise.
71832         * math/w_tgammaf.c: Likewise.
71833         * math/w_tgammal.c: Likewise.
71834         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71835         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71836         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71837         Minor optimizations.  Pretty printing.  Remove cruft.
71838         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71839         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71840         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71841         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71842         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71843         * sysdeps/i386/fpu/e_asin.S: Likewise.
71844         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71845         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71846         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71847         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71848         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71849         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71850         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71851         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71852         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71853         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71854         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71855         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71856         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71857         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71858         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71859         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71860         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71861         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71862         * sysdeps/i386/fpu/e_log.S: Likewise.
71863         * sysdeps/i386/fpu/e_log10.S: Likewise.
71864         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71865         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71866         * sysdeps/i386/fpu/e_log2.S: Likewise.
71867         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71868         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71869         * sysdeps/i386/fpu/e_logf.S: Likewise.
71870         * sysdeps/i386/fpu/e_logl.S: Likewise.
71871         * sysdeps/i386/fpu/e_pow.S: Likewise.
71872         * sysdeps/i386/fpu/e_powf.S: Likewise.
71873         * sysdeps/i386/fpu/e_powl.S: Likewise.
71874         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71875         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71876         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71877         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71878         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71879         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71880         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71881         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71882         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71883         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71884         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71885         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71886         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71887         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71888         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71889         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71890         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71891         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71892         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71893         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71894         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71895         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71896         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71897         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71898         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71899         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71900         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71901         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71902         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71903         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71904         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71905         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71906         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71907         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71908         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71909         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71910         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71911         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71912         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71913         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71914         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71915         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71916         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71917         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71918         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71919         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71920         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71921         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71922         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71923         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71924         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71925         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71926         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71927         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71928         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71929         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71930         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71931         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71932         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71933         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71934         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71935         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71936         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71937         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71938         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71939         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71940         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71941         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71942         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71943         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71944         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71945         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71946         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71947         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71948         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71949         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71950         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71951         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71952         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71953         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71954         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71955         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71956         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71957         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71958         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71959         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71960         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71961         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71962         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71963         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71964         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71965         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71966         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71967         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71968         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71969         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71970         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71971         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71972         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71973         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71974         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71975         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71976         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71977         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71978         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71979         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71980         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71981         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71982         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71983         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71984         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71985         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71986         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71987         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71988         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71989         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71990         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71991         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71992         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71993         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71994         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71995         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71996         (__isnanf): Likewise.
71997         (__isinf_ns): Likewise.
71998         (__isinf_nsf): Likewise.
71999         (__finite): Likewise.
72000         (__finitef): Likewise.
72001         (__ieee754_sqrt): Define as macro.
72002         (__ieee754_sqrtf): Define as macro.
72003         (__ieee754_sqrtl): Define as macro.
72004         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72005         inlined copy.
72006         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72007         __FINITE_MATH_ONLY__ consistent.
72008         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72009
72010 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72011
72012         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72013         of rawmemchr.
72014
72015         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72016
72017 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72018
72019         * po/ja.po: Update from translation team.
72020
72021 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72022
72023         * locale/programs/locarchive.c (prepare_address_space): New function.
72024         (create_archive, enlarge_archive, open_archive): Use it.
72025
72026         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72027         inside [SHARED], where it is used.
72028
72029         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72030
72031         * nss/getent.c (netgroup_keys): Remove unused variable.
72032         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72033
72034 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72035
72036         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72037         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72038         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72039         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72040         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72041         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72042         * math/Makefile (libm-calls): Add s_isinf_ns.
72043         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72044         * math/multc3.c: Likewise.
72045         * math/s_casin.c: Likewise.
72046         * math/s_casinf.c: Likewise.
72047         * math/s_casinl.c: Likewise.
72048         * math/s_ccos.c: Likewise.
72049         * math/s_ccosf.c: Likewise.
72050         * math/s_ccosl.c: Likewise.
72051         * math/s_ctan.c: Likewise.
72052         * math/s_ctanf.c: Likewise.
72053         * math/s_ctanh.c: Likewise.
72054         * math/s_ctanhf.c: Likewise.
72055         * math/s_ctanhl.c: Likewise.
72056         * math/s_ctanl.c: Likewise.
72057         * math/w_fmod.c: Likewise.
72058         * math/w_fmodf.c: Likewise.
72059         * math/w_fmodl.c: Likewise.
72060         * math/w_remainder.c: Likewise.
72061         * math/w_remainderf.c: Likewise.
72062         * math/w_remainderl.c: Likewise.
72063         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72064         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72065         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72066         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72067         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72068         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72069         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72070         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72071
72072         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72073         of the number.
72074         * stdio-common/printf_fphex.c: Likewise.
72075         * stdio-common/printf_size.c: Likewise.
72076
72077         * math/e_exp10.c: Include math_private.h using <...> not "...".
72078         * math/e_exp10f.c: Likewise.
72079         * math/e_exp10l.c: Likewise.
72080         * math/e_exp2l.c: Likewise.
72081         * math/e_j0l.c: Likewise.
72082         * math/e_j1l.c: Likewise.
72083         * math/e_jnl.c: Likewise.
72084         * math/e_lgammal_r.c: Likewise.
72085         * math/e_rem_pio2l.c: Likewise.
72086         * math/e_scalb.c: Likewise.
72087         * math/e_scalbf.c: Likewise.
72088         * math/e_scalbl.c: Likewise.
72089         * math/k_cosl.c: Likewise.
72090         * math/k_sinl.c: Likewise.
72091         * math/k_tanl.c: Likewise.
72092         * math/s_cacoshf.c: Likewise.
72093         * math/s_catan.c: Likewise.
72094         * math/s_catanf.c: Likewise.
72095         * math/s_catanh.c: Likewise.
72096         * math/s_catanhf.c: Likewise.
72097         * math/s_catanhl.c: Likewise.
72098         * math/s_catanl.c: Likewise.
72099         * math/s_ccosh.c: Likewise.
72100         * math/s_ccoshf.c: Likewise.
72101         * math/s_ccoshl.c: Likewise.
72102         * math/s_cexp.c: Likewise.
72103         * math/s_cexpf.c: Likewise.
72104         * math/s_cexpl.c: Likewise.
72105         * math/s_clog.c: Likewise.
72106         * math/s_clog10.c: Likewise.
72107         * math/s_clog10f.c: Likewise.
72108         * math/s_clog10l.c: Likewise.
72109         * math/s_clogf.c: Likewise.
72110         * math/s_clogl.c: Likewise.
72111         * math/s_csin.c: Likewise.
72112         * math/s_csinf.c: Likewise.
72113         * math/s_csinh.c: Likewise.
72114         * math/s_csinhf.c: Likewise.
72115         * math/s_csinhl.c: Likewise.
72116         * math/s_csinl.c: Likewise.
72117         * math/s_csqrt.c: Likewise.
72118         * math/s_csqrtf.c: Likewise.
72119         * math/s_csqrtl.c: Likewise.
72120         * math/s_ctan.c: Likewise.
72121         * math/s_ctanf.c: Likewise.
72122         * math/s_ctanh.c: Likewise.
72123         * math/s_ctanhf.c: Likewise.
72124         * math/s_ctanhl.c: Likewise.
72125         * math/s_ctanl.c: Likewise.
72126         * math/s_ldexp.c: Likewise.
72127         * math/s_ldexpf.c: Likewise.
72128         * math/s_ldexpl.c: Likewise.
72129         * math/s_significand.c: Likewise.
72130         * math/s_significandf.c: Likewise.
72131         * math/s_significandl.c: Likewise.
72132         * math/w_acos.c: Likewise.
72133         * math/w_acosf.c: Likewise.
72134         * math/w_acosh.c: Likewise.
72135         * math/w_acoshf.c: Likewise.
72136         * math/w_acoshl.c: Likewise.
72137         * math/w_acosl.c: Likewise.
72138         * math/w_asin.c: Likewise.
72139         * math/w_asinf.c: Likewise.
72140         * math/w_asinl.c: Likewise.
72141         * math/w_atan2.c: Likewise.
72142         * math/w_atan2f.c: Likewise.
72143         * math/w_atan2l.c: Likewise.
72144         * math/w_atanh.c: Likewise.
72145         * math/w_atanhf.c: Likewise.
72146         * math/w_atanhl.c: Likewise.
72147         * math/w_cosh.c: Likewise.
72148         * math/w_coshf.c: Likewise.
72149         * math/w_coshl.c: Likewise.
72150         * math/w_dremf.c: Likewise.
72151         * math/w_exp10.c: Likewise.
72152         * math/w_exp10f.c: Likewise.
72153         * math/w_exp10l.c: Likewise.
72154         * math/w_exp2.c: Likewise.
72155         * math/w_exp2f.c: Likewise.
72156         * math/w_fmod.c: Likewise.
72157         * math/w_fmodf.c: Likewise.
72158         * math/w_fmodl.c: Likewise.
72159         * math/w_hypot.c: Likewise.
72160         * math/w_hypotf.c: Likewise.
72161         * math/w_hypotl.c: Likewise.
72162         * math/w_j0.c: Likewise.
72163         * math/w_j0f.c: Likewise.
72164         * math/w_j0l.c: Likewise.
72165         * math/w_j1.c: Likewise.
72166         * math/w_j1f.c: Likewise.
72167         * math/w_j1l.c: Likewise.
72168         * math/w_jn.c: Likewise.
72169         * math/w_jnf.c: Likewise.
72170         * math/w_jnl.c: Likewise.
72171         * math/w_lgamma.c: Likewise.
72172         * math/w_lgamma_r.c: Likewise.
72173         * math/w_lgammaf.c: Likewise.
72174         * math/w_lgammaf_r.c: Likewise.
72175         * math/w_lgammal.c: Likewise.
72176         * math/w_lgammal_r.c: Likewise.
72177         * math/w_log.c: Likewise.
72178         * math/w_log10.c: Likewise.
72179         * math/w_log10f.c: Likewise.
72180         * math/w_log10l.c: Likewise.
72181         * math/w_log2.c: Likewise.
72182         * math/w_log2f.c: Likewise.
72183         * math/w_log2l.c: Likewise.
72184         * math/w_logf.c: Likewise.
72185         * math/w_logl.c: Likewise.
72186         * math/w_pow.c: Likewise.
72187         * math/w_powf.c: Likewise.
72188         * math/w_powl.c: Likewise.
72189         * math/w_remainder.c: Likewise.
72190         * math/w_remainderf.c: Likewise.
72191         * math/w_remainderl.c: Likewise.
72192         * math/w_scalb.c: Likewise.
72193         * math/w_scalbf.c: Likewise.
72194         * math/w_scalbl.c: Likewise.
72195         * math/w_sinh.c: Likewise.
72196         * math/w_sinhf.c: Likewise.
72197         * math/w_sinhl.c: Likewise.
72198         * math/w_sqrt.c: Likewise.
72199         * math/w_sqrtf.c: Likewise.
72200         * math/w_sqrtl.c: Likewise.
72201         * math/w_tgamma.c: Likewise.
72202         * math/w_tgammaf.c: Likewise.
72203         * math/w_tgammal.c: Likewise.
72204
72205         * po/ja.po: Update from translation team.
72206
72207 2011-09-29  Andreas Jaeger  <aj@suse.de>
72208
72209         [BZ #13179]
72210         * sunrpc/netname.c (netname2host): Fix logic.
72211
72212         [BZ #6779]
72213         [BZ #6783]
72214         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72215         correctly.
72216         * math/w_remainder.c (__remainder): Likewise.
72217         * math/w_remainderf.c (__remainderf): Likewise.
72218         * math/libm-test.inc (remainder_test): Add test cases.
72219
72220 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72221
72222         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72223         sdiv_qrnnd.
72224
72225 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72226
72227         * string/test-memcmp.c: Avoid unncessary #defines.
72228         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72229
72230 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72231
72232         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72233         Use new sse2 version for core i3 - i7 as it's faster
72234         than sse42 version.
72235         (bit_Prefer_PMINUB_for_stringop): New.
72236         * sysdeps/x86_64/rawmemchr.S: Update.
72237         Replace with faster SSE2 version.
72238         * sysdeps/x86_64/memrchr.S: New file.
72239         * sysdeps/x86_64/memchr.S: Update.
72240         Replace with faster SSE2 version.
72241
72242 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72243
72244         * elf/dl-load.c (lose): Add cast to avoid warning.
72245
72246 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72247
72248         * po/ca.po: Update from translation team.
72249
72250         * inet/getnetgrent_r.c: Hook up nscd.
72251         * nscd/Makefile (routines): Add nscd_netgroup.
72252         (nscd-modules): Add netgroupcache.
72253         (CFLAGS-netgroupcache.c): Define.
72254         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72255         (cache_search): Add const to second parameter.
72256         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72257         INNETGR.
72258         (dbs): Add netgrdb entry.
72259         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72260         (verify_persistent_db): Handle netgrdb.
72261         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72262         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72263         GETFDNETGR.
72264         (netgroup_response_header): Define.
72265         (innetgroup_response_header): Define.
72266         (datahead): Add netgroup_response_header and innetgroup_response_header
72267         elements.
72268         * nscd/nscd.conf: Add entries for netgroup cache.
72269         * nscd/nscd.h (dbtype): Add netgrdb.
72270         (_PATH_NSCD_NETGROUP_DB): Define.
72271         (netgroup_iov_disabled): Declare.
72272         (xmalloc, xcalloc, xrealloc): Move declarations here.
72273         (cache_search): Adjust prototype.
72274         Add netgroup-related prototypes.
72275         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72276         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72277         (__nscd_innetgr): Declare.
72278         * nscd/selinux.c (perms): Use access_vector_t as element type and
72279         add netgroup-related initializers.
72280         * nscd/netgroupcache.c: New file.
72281         * nscd/nscd_netgroup.c: New file.
72282         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72283         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72284         For four parameters use innetgr.
72285         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72286         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72287         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72288         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72289
72290         * nscd/connections.c (register_traced_file): Don't register file
72291         for disabled databases.
72292
72293 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72294
72295         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72296
72297         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72298         from tree and freeing node.
72299
72300 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72301
72302         * nss/nsswitch.c (__nss_database_lookup): Handle
72303         nss_parse_service_list out of memory case.
72304
72305 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72306
72307         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72308         out of memory case.
72309
72310 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72311
72312         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72313         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72314         pass it down.
72315         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72316         elf_machine_rela, elf_machine_lazy_rel.
72317         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72318         (ELF_DYNAMIC_DO_REL): Likewise.
72319         (ELF_DYNAMIC_DO_RELA): Likewise.
72320         (ELF_DYNAMIC_RELOCATE): Likewise.
72321         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72322         to ELF_DYNAMIC_DO_REL.
72323         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72324         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72325         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72326         elf_machine_rela.
72327         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72328         skip_ifunc, don't call ifunc function if non-zero.
72329         (elf_machine_rela): Likewise.
72330         (elf_machine_lazy_rel): Likewise.
72331         (elf_machine_lazy_rela): Likewise.
72332         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72333         (elf_machine_lazy_rel): Likewise.
72334         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72335         Likewise.
72336         (elf_machine_lazy_rel): Likewise.
72337         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72338         Likewise.
72339         (elf_machine_lazy_rel): Likewise.
72340         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72341         (elf_machine_lazy_rel): Likewise.
72342         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72343         (elf_machine_lazy_rel): Likewise.
72344         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72345         (elf_machine_lazy_rel): Likewise.
72346         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72347         (elf_machine_lazy_rel): Likewise.
72348         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72349         (elf_machine_lazy_rel): Likewise.
72350         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72351         (elf_machine_lazy_rel): Likewise.
72352
72353 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72354
72355         * nss/nss_files/files-init.c (_nss_files_init): Use static
72356         initialization for all the *_traced_file variables.
72357
72358 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72359
72360         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72361
72362 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72363
72364         [BZ #13226]
72365         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72366
72367 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72368
72369         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72370         Reread the line before reparsing it.
72371
72372 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72373
72374         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72375
72376 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72377             Maxim Kuvyrkov  <maxim@codesourcery.com>
72378             Joseph Myers  <joseph@codesourcery.com>
72379
72380         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72381         if needed for __stack_chk_guard.
72382
72383 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72384
72385         * sysdeps/posix/spawni.c (script_execute): Always define it.
72386         It will be optimized away if unused.
72387         (maybe_script_execute): New function.
72388         (__spawni): Call it.
72389
72390         * Makerules: Don't include tls.make.
72391         (config-tls): Always set to thread.
72392         * tls.make.c: File removed.
72393
72394 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72395
72396         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72397         * config.make.in (CPPFLAGS-config): New substituted variable.
72398
72399 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72400
72401         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72402
72403         [BZ #13192]
72404         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72405         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72406
72407 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72408
72409         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72410         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72411         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72412         (CALL_FAIL): Likewise.
72413         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72414         (CALL_FAIL): Macro removed.
72415         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72416
72417 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72418
72419         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72420         for __FINITE_MATH_ONLY__ == 1.
72421
72422 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72423
72424         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72425         __ieee754_sqrt instead of sqrt.
72426         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72427         __ieee754_sqrtf instead of sqrtf.
72428         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72429         __floorf instead of floorf.
72430         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72431         __floorf, __truncf instead of floorf, truncf.
72432
72433 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72434
72435         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72436
72437         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72438         __extern_always_inline.
72439         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72440         32-bit.
72441
72442 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72443
72444         * elf/rtld.c (dl_main): Also relocate in dependency order when
72445         doing symbol dependency testing.
72446
72447 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72448
72449         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72450         Always define `refsym'.
72451
72452 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72453
72454         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72455         (__FD_ELT): Renamed from __FDELT.
72456         * misc/bits/select2.h (__FD_ELT): Likewise.
72457         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72458         __FD_MASK instead of __FDELT, __FDMASK.
72459         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72460         Likewise.
72461         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72462         Likewise.
72463
72464         * elf/Makefile (gen-ldd): Fix pattern.
72465
72466         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72467         (init_tls): Likewise.
72468
72469 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72470
72471         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72472
72473 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72474
72475         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72476         `struct cmsghdr *' instead of `void *'.
72477         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72478         Likewise.
72479
72480 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72481
72482         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72483         if non-absolute.
72484         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72485         ldd_rewrite_script.
72486
72487 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72488
72489         * configure.in: Remove --with-tls option.
72490         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72491         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72492         out in case it is missing.
72493         * sysdeps/ia64/elf/configure.in: Likewise.
72494         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72495         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72496         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72497         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72498         * sysdeps/sh/elf/configure.in: Likewise.
72499         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72500         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72501         * sysdeps/x86_64/elf/configure.in: Likewise.
72502         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72503         * sysdeps/mach/hurd/tls.h: Likewise.
72504
72505         [BZ #13067]
72506         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72507
72508         [BZ #13090]
72509         * configure.in: Fix use of AC_INIT.
72510
72511         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72512
72513 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72514
72515         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72516         __set_errno.
72517         * malloc/hooks.c: Likewise.
72518
72519         [BZ #11929]
72520         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72521         variables statically.
72522         (narenas): Initialize.
72523         (list_lock): Initialize.
72524         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72525         initializtion of main_arena and list_lock.  Small cleanups.
72526         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72527         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72528         Add initializers to main_arena and mp_.
72529         (malloc_state): Remove pagesize member.  Change all users to use
72530         GLRO(dl_pagesize).
72531
72532         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72533         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72534         is always initialized.
72535
72536         * malloc/malloc.c: Removed unused configurations and dead code.
72537         * malloc/arena.c: Likewise.
72538         * malloc/hooks.c: Likewise.
72539         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72540
72541         * include/tls.h: Removed.  USE___THREAD must always be defined.
72542         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72543         * elf/dl-libc.c: Likewise.
72544         * elf/dl-tsd.c: Likewise.
72545         * include/errno.h: Likewise.
72546         * include/netdb.h: Likewise.
72547         * include/resolv.h: Likewise.
72548         * inet/herrno-loc.c: Likewise.
72549         * inet/herrno.c: Likewise.
72550         * malloc/arena.c: Likewise.
72551         * malloc/hooks.c: Likewise.
72552         * malloc/malloc.c: Likewise.
72553         * resolv/res-state.c: Likewise.
72554         * resolv/res_libc.c: Likewise.
72555         * sysdeps/i386/dl-machine.h: Likewise.
72556         * sysdeps/ia64/dl-machine.h: Likewise.
72557         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72558         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72559         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72560         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72561         * sysdeps/sh/dl-machine.h: Likewise.
72562         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72563         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72564         * sysdeps/unix/i386/sysdep.S: Likewise.
72565         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72566         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72567         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72568         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72569         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72570         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72571         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72572         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72573         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72574         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72575         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72576         * sysdeps/x86_64/dl-machine.h: Likewise.
72577         * tls.make.c: Likewise.
72578
72579         * configure.in: Remove --with-__thread option.  Make tests for
72580         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72581         tls_model attribute fail if no support is available.  Remove
72582         USE_IN_LIBIO.
72583         * Makeconfig: Adjust for dropped configure option.  All features are
72584         now mandatory.
72585         * Makerules: Likewise.
72586         * Versions.def: Likewise.
72587         * argp/argp-fmtstream.c: Likewise.
72588         * argp/argp-fmtstream.h: Likewise.
72589         * argp/argp-help.c: Likewise.
72590         * assert/assert.c: Likewise.
72591         * config.h.in: Likewise.
72592         * config.make.in: Likewise.
72593         * configure: Likewise.
72594         * configure.in: Likewise.
72595         * csu/Versions: Likewise.
72596         * csu/init.c: Likewise.
72597         * elf/tst-audit2.c: Likewise.
72598         * elf/tst-tls10.c: Likewise.
72599         * elf/tst-tls10.h: Likewise.
72600         * elf/tst-tls11.c: Likewise.
72601         * elf/tst-tls12.c: Likewise.
72602         * elf/tst-tls14.c: Likewise.
72603         * elf/tst-tlsmod11.c: Likewise.
72604         * elf/tst-tlsmod12.c: Likewise.
72605         * elf/tst-tlsmod13.c: Likewise.
72606         * elf/tst-tlsmod13a.c: Likewise.
72607         * elf/tst-tlsmod14a.c: Likewise.
72608         * elf/tst-tlsmod15b.c: Likewise.
72609         * elf/tst-tlsmod16a.c: Likewise.
72610         * elf/tst-tlsmod16b.c: Likewise.
72611         * elf/tst-tlsmod7.c: Likewise.
72612         * elf/tst-tlsmod8.c: Likewise.
72613         * elf/tst-tlsmod9.c: Likewise.
72614         * gmon/gmon.c: Likewise.
72615         * grp/fgetgrent_r.c: Likewise.
72616         * grp/putgrent.c: Likewise.
72617         * hurd/fopenport.c: Likewise.
72618         * include/libc-symbols.h: Likewise.
72619         * include/tls.h: Likewise.
72620         * intl/gettextP.h: Likewise.
72621         * intl/loadinfo.h: Likewise.
72622         * locale/global-locale.c: Likewise.
72623         * locale/localeinfo.h: Likewise.
72624         * mach/devstream.c: Likewise.
72625         * malloc/arena.c: Likewise.
72626         * malloc/set-freeres.c: Likewise.
72627         * misc/err.c: Likewise.
72628         * misc/getttyent.c: Likewise.
72629         * misc/mntent_r.c: Likewise.
72630         * posix/getopt.c: Likewise.
72631         * posix/wordexp.c: Likewise.
72632         * pwd/fgetpwent_r.c: Likewise.
72633         * resolv/Versions: Likewise.
72634         * resolv/res_hconf.c: Likewise.
72635         * shadow/fgetspent_r.c: Likewise.
72636         * shadow/putspent.c: Likewise.
72637         * stdio-common/printf_fphex.c: Likewise.
72638         * stdio-common/tmpfile.c: Likewise.
72639         * stdlib/abort.c: Likewise.
72640         * stdlib/fmtmsg.c: Likewise.
72641         * sunrpc/auth_unix.c: Likewise.
72642         * sunrpc/clnt_perr.c: Likewise.
72643         * sunrpc/clnt_tcp.c: Likewise.
72644         * sunrpc/clnt_udp.c: Likewise.
72645         * sunrpc/clnt_unix.c: Likewise.
72646         * sunrpc/openchild.c: Likewise.
72647         * sunrpc/svc_simple.c: Likewise.
72648         * sunrpc/svc_tcp.c: Likewise.
72649         * sunrpc/svc_udp.c: Likewise.
72650         * sunrpc/svc_unix.c: Likewise.
72651         * sunrpc/xdr.c: Likewise.
72652         * sunrpc/xdr_array.c: Likewise.
72653         * sunrpc/xdr_rec.c: Likewise.
72654         * sunrpc/xdr_ref.c: Likewise.
72655         * sunrpc/xdr_stdio.c: Likewise.
72656
72657 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72658
72659         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72660
72661 2011-07-03  Andreas Jaeger  <aj@suse.de>
72662
72663         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72664         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72665         regenerate with gen-libm-tests.pl.
72666
72667 2010-05-12  Petr Baudis  <pasky@suse.cz>
72668
72669         [BZ #11589]
72670         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72671         around j0() zero points by switching to j1().
72672         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72673         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72674         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72675         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72676
72677 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72678
72679         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72680         instead of 0.
72681         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72682         instead of 0.
72683         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72684         Patch in part by Pavel Roskin <proski@gnu.org>.
72685
72686         [BZ #13138]
72687         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72688         realloc.
72689         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72690         Free memory block if necessary.
72691
72692         [BZ #12847]
72693         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72694         be NULL.  Don't lock in this case.
72695
72696 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72697
72698         * elf/elf.h (ELFOSABI_GNU): New macro.
72699         (ELFOSABI_LINUX): Define to that.
72700
72701 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72702
72703         * string/strncat.c (strncat): Undef the symbol in case it has been
72704         defined in bits/string.h.
72705
72706 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72707
72708         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72709
72710         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72711         link map.
72712
72713 2011-08-17  Andreas Jaeger  <aj@suse.de>
72714
72715         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72716
72717 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72718             Ian Lance Taylor  <iant@google.com>
72719
72720         * math/libm-test.inc (lround_test): New testcase.
72721         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72722
72723 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72724
72725         * Makefile: Remove support for automatic cvs check-ins.
72726         * Makerules: Likewise.
72727         * config.make.in: Likewise.
72728         * configure.in: Likewise.
72729         * intl/Makefile: Likewise.
72730         * locale/Makefile: Likewise.
72731         * po/Makefile: Likewise.
72732         * posix/Makefile: Likewise.
72733         * sysdeps/gnu/Makefile: Likewise.
72734         * sysdeps/mach/hurd/Makefile: Likewise.
72735         * sysdeps/sparc/sparc32/Makefile: Likewise.
72736
72737         [BZ #13118]
72738         * posix/Makefile (bug-regex32-ENV): Define.
72739         Patch by John Stanley <jpsinthemix@verizon.net>.
72740
72741         * misc/Makefile (headers): Add bits/select2.h.
72742         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72743         * misc/bits/select2.h: New file.
72744         * include/bits/select2.h: New file.
72745         * debug/Makefile (routines): Add fdelt_chk.
72746         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72747         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72748         FD_ISSET.
72749         * debug/fdelt_chk.c: New file.
72750
72751         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72752         * wcsmbs/test-wmemcmp.c: Likewise.
72753         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72754         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72755
72756 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72757
72758         * string/Makefile (strop-tests): Add memcmp.
72759         * string/test-wmemcmp.c: New file.
72760         * string/test-memcmp.c: Add wmemcmp support.
72761
72762 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72763
72764         [BZ #13153]
72765         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72766         2011-07-19 change.
72767
72768         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72769         garbage value in a __mach_port_mod_refs call in the cases of the
72770         task-self and thread-self ports.
72771
72772 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72773
72774         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72775
72776 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72777
72778         * elf/dl-load.c (lose): Check for non-null L.
72779
72780 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72781
72782         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72783
72784         * elf/dl-libc.c (dlerror_run): Pass back error code from
72785         dl_catch_error.
72786
72787         [BZ #13123]
72788         * elf/dl-load.c (lose): Free l_origin if it is valid.
72789
72790         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72791         names.
72792         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72793         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72794         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72795         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72796         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72797         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72798
72799 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72800
72801         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72802         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72803         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72804         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72805         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72806         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72807         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72808         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72809         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72810         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72811
72812 2011-08-15  Alan Modra  <amodra@gmail.com>
72813
72814         [BZ #13092]
72815         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72816         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72817         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72818         ppc_mcount to static-only-routines.
72819         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72820         __mcount_internal.
72821         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72822         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72823
72824 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72825
72826         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72827         for finite and infinity parameters.
72828
72829 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72830
72831         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72832         and add nop instructions for throughput optimization.
72833         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72834
72835 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72836
72837         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72838         aligned copy for power7 with vector-scalar instructions.
72839         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72840
72841 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72842
72843         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72844         AVX check.
72845
72846 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72847
72848         [BZ #13144]
72849         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72850         last change.
72851
72852 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72853
72854         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72855         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72856         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72857         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72858         clock_gettime.
72859
72860 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72861
72862         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72863         Forgot to demangle the pointer.
72864
72865         * sysdeps/i386/sysdep.h: Define atom_text_section.
72866         * sysdeps/x86_64/sysdep.h: Likewise.
72867         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72868         section with atom_text_section.
72869         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72870         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72871         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72872         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72873         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72874
72875         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72876         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72877         already be defined.  Change to take two parameters and don't assign
72878         result to variable.  Adjust all users.
72879         Define INTERNAL_GETTIME if not already defined.
72880         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72881         call.
72882         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72883         HAVE_CLOCK_GETTIME_VSYSCALL.
72884         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72885
72886         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72887         gettimeofday vsyscall, just use time.
72888
72889 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72890
72891         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72892         <errno.h>.
72893
72894 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72895
72896         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72897         syscall on x86-64.
72898         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72899         syscall.
72900         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72901         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72902         syscall if possible.
72903
72904 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72905
72906         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72907         e_ident.  Don't pass to find_mapsXX.
72908         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72909
72910 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72911
72912         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72913         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72914         * sysdeps/x86_64/multiarch/strchr.S: Update.
72915         Check bit_slow_BSF bit.
72916         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72917         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72918         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72919
72920 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72921
72922         [BZ #13134]
72923         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72924         before glibc 2.15.
72925         (tryshell): Define.
72926         (__spawni): Change last parameter to be flag.  Test
72927         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72928         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72929         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72930         * posix/spawni.c: Likewise.
72931         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72932         * posix/spawnp.c: Likewise.  Change normal version to use
72933         SPAWN_XFLAGS_USE_PATH.
72934         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72935         SPAWN_XFLAGS_TRY_SHELL.
72936
72937         [BZ #13150]
72938         * posix/glob.h: Remove gcc 1.x support.
72939
72940         [BZ #13068]
72941         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72942
72943 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72944
72945         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72946         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72947         strrchr-sse2-bsf
72948         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72949         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72950         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72951         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72952         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72953         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72954
72955 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72956
72957         * sysdeps/x86_64/wcscmp.S: New file.
72958
72959         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72960         wcscmp-c wcscmp-sse2
72961         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72962         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72963         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72964         * wcsmbs/wcscmp.c: Allow renaming.
72965
72966 2011-09-05  David S. Miller  <davem@davemloft.net>
72967
72968         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72969         stack slot, rather than the struct return pointer slot.
72970         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72971         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72972         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72973         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72974
72975 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72976
72977         * po/ja.po: Update from translation team.
72978
72979         [BZ #13144]
72980         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72981         kernel in 64-bit binaries.
72982
72983 2011-09-01  David S. Miller  <davem@davemloft.net>
72984
72985         * elf/elf.h (HWCAP_SPARC_*): Move to..
72986         * sysdeps/sparc/sysdep.h: this new file and add new values.
72987         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72988         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72989         _DL_HWCAP_COUNT to 24.
72990         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72991         entries.
72992         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72993         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72994         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72995         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72996         instead of magic constants.
72997         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72998
72999 2011-08-31  David S. Miller  <davem@davemloft.net>
73000
73001         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73002         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73003         Reimplement to do errno handling inline.
73004         (SYSCALL_ERROR_HANDLER): New macro.
73005         (__SYSCALL_STRING): Do not do errno handling in asm.
73006         (__CLONE_SYSCALL_STRING): Delete.
73007         (__INTERNAL_SYSCALL_STRING): Delete.
73008         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73009         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73010         (PSEUDO): Reimplement to do errno handling inline.
73011         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73012         (SYSCALL_ERROR_HANDLER): New macro.
73013         (__SYSCALL_STRING): Do not do errno handling in asm.
73014         (__CLONE_SYSCALL_STRING): Delete.
73015         (__INTERNAL_SYSCALL_STRING): Delete.
73016         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73017         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73018         i386.
73019         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73020         (inline_syscall*): Add 'err' argument.
73021         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73022         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73023         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73024         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73025
73026         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73027         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73028
73029 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73030
73031         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73032
73033 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73034
73035         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73036         directive.
73037
73038 2011-08-24  David S. Miller  <davem@davemloft.net>
73039
73040         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73041
73042 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73043
73044         * elf/Makefile: Add rules to build and run unload8 test.
73045         * elf/unload8.c: New file.
73046         * elf/unload8mod1.c: New file.
73047         * elf/unload8mod1x.c: New file.
73048         * elf/unload8mod2.c: New file.
73049         * elf/unload8mod3.c: New file.
73050
73051         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73052         it wasn't used.
73053
73054 2011-08-23  David S. Miller  <davem@davemloft.net>
73055
73056         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73057         subtract stack bias.
73058         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73059         %sp not %fp in calculations.
73060         (_JMPBUF_UNWINDS_ADJ): Likewise.
73061
73062         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73063         (aio_suspend): Call it to force an exception region around the
73064         AIO_MISC_WAIT() invocation.
73065
73066 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73067
73068         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73069         backslash.
73070
73071 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73072
73073         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73074         protection macro.
73075         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73076         and <dl-machine.h>.
73077         (Elf64_FuncDesc): Remove.
73078
73079 2011-08-22  David S. Miller  <davem@davemloft.net>
73080
73081         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73082         sigaltstack check, add missing cfi directives.
73083         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73084         missing cfi directives, and sigaltstack handling.
73085
73086 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73087
73088         [BZ #11724]
73089         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73090         object is seen twice.
73091         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73092
73093         * elf/Makefile (distribute): Add tst-initorder2.c.
73094         (tests): Add tst-initorder2.
73095         (modules-names): Add tst-initorder2a tst-initorder2b
73096         tst-initorder2c tst-initorder2d.  Add rules to build them.
73097         ($(objpfx)tst-initorder2.out): New rule.
73098         * elf/tst-initorder2.c: New file.
73099         * elf/tst-initorder2.exp: New file.
73100
73101 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73102
73103         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73104
73105         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73106         dependencies back to end of function.
73107
73108         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73109         $(elfobjdir)/ld.so.
73110
73111 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73112
73113         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73114         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73115         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73116         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73117         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73118         of __vdso_gettimeofday.
73119         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73120         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73121         attribute_hidden.
73122         (_libc_vdso_platform_setup): Remove initialization of
73123         __vdso_gettimeofday and __vdso_time.
73124
73125 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73126
73127         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73128         and fgetc_unlocked.
73129         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73130         getc_unlocked.
73131
73132         * elf/dl-open.c (add_to_global): Report additions to the global scope
73133         for LD_DEBUG=scopes.
73134         (dl_open_worker): Also print scope of newly loaded dependencies.
73135         (_dl_show_scope): Indicate if there is no scope.
73136
73137         [BZ #13114]
73138         * stdio-common/Makefile (tests): Add bug24.
73139         * stdio-common/bug24.c: New file.
73140
73141 2011-08-19  Andreas Jaeger  <aj@suse.de>
73142
73143         [BZ #13114]
73144         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73145         non-existant file when using close-on-exec mode.
73146
73147 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73148
73149         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73150         the very first instruction.
73151
73152         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73153         the CFI state in the end.
73154         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73155         inclusion of dl-trampoline.h.
73156         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73157
73158 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73159
73160         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73161         expectations for long double.
73162
73163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73164         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73165
73166 2011-08-14  David S. Miller  <davem@davemloft.net>
73167
73168         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73169         artificual limit depends upon the system page size.
73170
73171 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73172
73173         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73174         * resolv/Makefile: Define CFLAGS-libresolv.
73175
73176 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73177
73178         * nss/makedb.c (compute_tables): Make variables used in nested
73179         function static.
73180
73181 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73182
73183         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73184         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73185         if buffer was too small.
73186
73187         * elf/pldd.c (main): Attach to all threads in the process.
73188         Rewrite /proc handling to use *at functions.
73189
73190 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73191
73192         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73193         specifies first scope to show.
73194         (dl_open_worker): Update callers.  Move printing scope of new
73195         object to before the relocation.
73196         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73197         * sysdeps/generic/ldsodefs.h: Update declaration.
73198
73199         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73200         string for the scope number.
73201
73202 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73203
73204         * nscd/servicescache.c (cache_addserv): Make sure written is always
73205         initialized.
73206
73207 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73208
73209         * sysdeps/i386/i486/bits/atomic.h
73210         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73211         statement expression, so as to suppress "set but not used" warning.
73212         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73213
73214         * string/strncat.c (STRNCAT): Use prototype definition.
73215
73216         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73217         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73218         -Iprograms here.
73219         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73220         (localedef-modules): Add localedef.
73221         (locale-modules): Add locale.
73222
73223         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73224         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73225         to avoid a warning.
73226
73227 2011-08-14  David S. Miller  <davem@davemloft.net>
73228
73229         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73230         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73231
73232 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73233
73234         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73235         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73236         * elf/rtld.c (dl_main): Set l_name of vDSO.
73237         Call _dl_show_scope when DL_DEBUG_SCOPES.
73238         (process_dl_debug): Recognize scopes flag and also set it for all.
73239         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73240         Declare _dl_show_scope.
73241
73242         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73243         (do_dlopen): Pass caller_dlopen to dl_open.
73244         (__libc_dlopen_mode): Initialize caller_dlopen.
73245
73246         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73247         of libc.  Make tolower call locale-independent.  Optimize a bit by
73248         using isdigit instead of isalnum.
73249         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73250
73251 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73252
73253         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73254         was a dependency or dynamically loaded.
73255
73256 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73257
73258         * intl/l10nflist.c: Allow architecture-specific pop function.
73259         * sysdeps/x86_64/l10nflist.c: New file.
73260
73261         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73262         classification.
73263
73264 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73265
73266         * include/dirent.h: Add libc_hidden_proto for scandirat and
73267         scandirat64.  Don't declare __scandirat64.
73268         * dirent/scandirat.c: Add libc_hidden_def.
73269         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73270         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73271
73272 2011-08-10  David S. Miller  <davem@davemloft.net>
73273
73274         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73275         enum.
73276         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73277         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73278         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73279
73280 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73281
73282         * Versions.def [libc]: Add GLIBC_2.15.
73283         * dirent/Makefile (routines): Add scandirat and scandirat64.
73284         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73285         GLIBC_2.15.
73286         * dirent/dirent.h: Declare scandirat and scandirat64.
73287         * dirent/scandirat.c: New file.
73288         * dirent/scandirat64.c: New file.
73289         * sysdeps/wordsize-64/scandirat.c: New file.
73290         * sysdeps/wordsize-64/scandirat64.c: New file.
73291         * dirent/opendir.c: Define opendirat.
73292         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73293         using scandirat.
73294         * dirent/scandir64.c: Adjust for scandir.c change.
73295         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73296         __scandirat64, and __scandir_cancel_handler.
73297         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73298         additional parameter and use openat instead of open (outside of ld.so).
73299         Add new __opendir as wrapper around __opendirat.
73300         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73301         here without requiring old scandirat implementation.
73302
73303 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73304
73305         * dirent/scandir.c (cancel_handler): Renamed to
73306         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73307         defined.  Adjust users.
73308         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73309         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73310
73311 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73312
73313         * string/test-string.h (IMPL): Use __STRING to expand name and then
73314         stringify it.
73315
73316         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73317         of cleanups.
73318
73319 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73320
73321         * string/Makefile: Update.
73322         (strop-tests): Append strncat.
73323         * string/test-wcscmp.c: New file.
73324         New comprehensive test for wcscmp.
73325         * string/test-strcmp.c: Update.
73326         (WIDE): New define.
73327
73328 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73329
73330         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73331         line.
73332
73333 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73334
73335         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73336         encoding to ACE if AI_IDN.
73337
73338 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73339
73340         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73341         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73342
73343 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73344
73345         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73346         Fix overflow bug in strncat.
73347         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73348
73349         * string/test-strncat.c: Update.
73350         Add new tests for checking overflow bugs.
73351
73352 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73353
73354         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73355         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73356         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73357         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73358         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73359         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73360         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73361         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73362         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73363
73364         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73365         (USE_AS_STRCAT): Define.
73366         Add strcat and strncat support.
73367         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73368
73369 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73370
73371         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73372         __n bigger than INT_MAX+1.
73373         (__strncmp_g): Likewise.
73374
73375 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73376
73377         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73378         * libio/stido.h: Likewise.
73379
73380         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73381         (AF_NFC): Define.
73382         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73383         (AF_NFC): Define.
73384
73385         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73386         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73387         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73388         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73389         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73390
73391         [BZ #13021]
73392         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73393         installed.
73394
73395         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73396         typo.
73397         (_dl_x86_64_save_sse): Likewise.
73398
73399 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73400
73401         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73402         OSXSAVE.
73403         (_dl_x86_64_save_sse): Likewise.
73404
73405         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73406
73407         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73408
73409 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73410
73411         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73412         change.
73413         (_dl_x86_64_save_sse): Use correct AVX check.
73414
73415 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73416
73417         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73418         bug in strncpy/strncat.
73419         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73420
73421 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73422
73423         * string/tester.c (test_strcat): Add tests for different alignments
73424         of source and destination.
73425         (test_strncat): Likewise.
73426
73427 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73428
73429         [BZ #12852]
73430         * posix/glob.c (glob): Check passed in values before using them in
73431         expressions to avoid some overflows.
73432         (glob_in_dir): Likewise.
73433
73434         [BZ #13007]
73435         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73436         check for AVX enablement so that we don't crash with old kernels and
73437         new hardware.
73438         * elf/tst-audit4.c: Add same checks here.
73439         * elf/tst-audit6.c: Likewise.
73440
73441         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73442
73443 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73444
73445         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73446
73447 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73448
73449         * po/cs.po: Update from translation team.
73450         * po/bg.po: Likewise.
73451
73452 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73453
73454         * misc/sys/cdefs.h: Add support for const attribute.
73455         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73456         to gnu_dev_{major,minor,makedev} functions.
73457
73458 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73459
73460         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73461
73462 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73463
73464         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73465         strlen results.
73466
73467 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73468
73469         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73470         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73471         register in order to avoid conflicts with the soft frame pointer
73472         being held in r11 when necessary.
73473         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73474         (INTERNAL_VSYSCALL_NCS): Likewise.
73475
73476 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73477
73478         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73479         * elf/dl-fini.c (_dl_fini): Adjust caller.
73480         * elf/dl-close.c (_dl_close_worker): Likewise.
73481         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73482
73483 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73484
73485         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73486         "aux_cache->nlibs < 0".
73487
73488         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73489         in the reload-count case.
73490
73491 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73492
73493         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73494         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73495         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73496         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73497         * sysdeps/x86_64/multiarch/strcat.S: New file.
73498         * sysdeps/x86_64/multiarch/strncat.S: New file.
73499         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73500         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73501         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73502         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73503         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73504         (USE_AS_STRCAT): Define.
73505         Add strcat and strncat support.
73506         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73507         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73508         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73509         * string/strncat.c: Update.
73510         (USE_AS_STRNCAT): Define.
73511         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73512         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73513         and i7.
73514         * sysdeps/x86_64/multiarch/init-arch.h
73515         (bit_Prefer_PMINUB_for_stringop): New.
73516         (index_Prefer_PMINUB_for_stringop): Likewise.
73517         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73518         bit_Prefer_PMINUB_for_stringop.
73519
73520 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73521
73522         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73523         buffer64.
73524         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73525         of casting of buffer.
73526         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73527         buffer32 and buffer64.
73528         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73529         writes instead of casting of buffer.
73530         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73531         buffer32.
73532         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73533         casting of buffer.
73534
73535 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73536
73537         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73538
73539 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73540
73541         * nscd/nscd.c (termination_handler): Don't do anything for a database
73542         if it has not yet been initialized.
73543
73544 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73545
73546         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73547
73548 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73549
73550         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73551
73552 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73553
73554         * po/nl.po: Update from translation team.
73555         * po/sv.po: Likewise.
73556
73557 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73558
73559         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73560         now disallowed by GCC.
73561
73562         * configure.in (use-default-link): Default to yes if a test -shared
73563         link meets our qualifications.
73564         * configure: Regenerated.
73565
73566         * config.make.in (output-format): New variable.
73567         * configure.in: Check for ld --print-output-format support.
73568         * configure: Regenerated.
73569         * Makerules ($(common-objpfx)format.lds)
73570         [$(output-format) != unknown]: Just use $(output-format),
73571         instead of the linker-script munging.
73572
73573 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73574
73575         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73576         of $(common-objpfx)shlib.lds.
73577         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73578
73579         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73580         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73581
73582         * configure.in (-z relro check): Adjust test code to add a large
73583         writable data section after it.
73584         * configure: Regenerated.
73585
73586 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73587
73588         * configure.in (-z relro check): Fix test code to make the variable
73589         truly const.
73590         * configure: Regenerated.
73591
73592 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73593
73594         * nscd/nscd.h (struct traced_file): Define.
73595         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73596         elements.  Add traced_files.
73597         (inotify_fd): Declare.
73598         (register_traced_file): Declare.
73599         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73600         (inotify_fd): Export.
73601         (resolv_conf_descr): Remove.
73602         (nscd_init): Move inotify descriptor creation to main.
73603         Don't register files for notification here.
73604         (register_traced_file): New function.
73605         (invalidate_cache): Don't use reset_res to determine whether to call
73606         res_init, go through the list of registered files.
73607         (main_loop_poll): The inotify descriptors are now stored in the
73608         structures for the traced files.
73609         (main_loop_epoll): Likewise.
73610         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73611         to __nss_disable_nscd.
73612         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73613         for a database anymore.  Check the records for all the registered
73614         files instead.
73615         * nss/Makefile (libnss_files-routines): Add files-init.
73616         (libnss_db-routines): Add db-init.
73617         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73618         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73619         * nss/nss_db/db-init.c: New file.
73620         * nss/nss_files/files-init.c: New file.
73621         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73622         __nss_lookup_function.
73623         (__nss_lookup_function): Call nss_load_library.
73624         (nss_load_all_libraries): New function.
73625         (__nss_disable_nscd): Take parameter with callback function for files
73626         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73627         used for the cached services.
73628         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73629         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73630         options for features to all the files in nscd.
73631
73632         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73633
73634 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73635
73636         * csu/elf-init.c (__libc_csu_init): Comment typo.
73637
73638 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73639
73640         * po/pl.po: Update from translation team.
73641         * po/ja.po: Likewise.
73642         * po/ru.po: Likewise.
73643         * po/ko.po: Likewise.
73644         * po/fr.po: Likewise.
73645
73646 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73647
73648         * configure.in (.ctors/.dtors header and trailer check):
73649         Use an empirical test on a built program.
73650         * configure: Regenerated.
73651
73652         * configure.in (-z relro check): Use an empirical test on a built DSO.
73653         Detect, but do not require, on ia64.
73654         * configure: Regenerated.
73655
73656         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73657         Update tests that use readelf to use $READELF instead.
73658         * configure: Regenerated.
73659
73660 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73661
73662         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73663         if the result is not used.
73664
73665 2011-07-05  Andreas Jaeger  <aj@suse.de>
73666
73667         [BZ#9696]
73668         * stdlib/tst-strtod.c: Add testcase.
73669
73670 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73671
73672         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73673         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73674         The latter has a higher limit.  Take additional parameter to pass to
73675         the new function.
73676         (__pathconf): Pass file to __statfs_link_max.
73677         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73678         __statfs_link_max.
73679         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73680         __statfs_link_max.
73681
73682         [BZ #12868]
73683         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73684         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73685         Handle Lustre.
73686         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73687         (__statfs_filesize_max): Likewise.
73688         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73689
73690 2011-07-05  Andreas Jaeger  <aj@suse.de>
73691
73692         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73693
73694 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73695
73696         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73697         `status' variable.
73698         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73699         Likewise.
73700
73701 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73702
73703         * Makefile (strop-tests): Add strncat.
73704         * string/test-strncat.c: New file.
73705
73706 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73707
73708         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73709
73710 2011-06-21  Andreas Jaeger  <aj@suse.de>
73711
73712         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73713         Copy rule from iconvdata/Makefile.
73714
73715 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73716
73717         [BZ #12922]
73718         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73719         but no long options are defined, just return 'W'.
73720
73721 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73722
73723         [BZ #9696]
73724         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73725
73726 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73727
73728         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73729         netgroups to read.
73730         (innetgr): Likewise.
73731
73732 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73733
73734         * config.make.in (install_root): Default to $(DESTDIR).
73735
73736 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73737
73738         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73739
73740 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73741
73742         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73743
73744         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73745         containing directory rather than embedding absolute directory names.
73746
73747         * scripts/check-local-headers.sh: Rewritten using awk.
73748         Match by word, not by line.  Print error messages for matches.
73749         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73750
73751         * Makerules [shlib-lds-flags empty]:
73752         ($(common-objpfx)libc_pic.opts): New target.
73753         ($(common-objpfx)libc_pic.os.clean): New target.
73754         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73755
73756         * config.make.in (OBJCOPY): New variable.
73757         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73758         * configure: Regenerated.
73759
73760         * config.make.in (use-default-link): New variable.
73761         * configure.in (use_default_link): Grok --with-default-link to set it.
73762         * configure: Regenerated.
73763         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73764         (shlib-lds, shlib-lds-flags): Define to empty.
73765
73766         * Makerules (shlib-lds): New variable.
73767         (shlib-lds-flags): New variable.
73768         (build-shlib, build-moduile, build-module-asneeded): Use it.
73769         ($(common-objpfx)libc.so): Use $(shlib-lds).
73770         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73771         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73772
73773         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73774         DT_FLAGS/DT_FLAGS_1 with zero flags.
73775
73776         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73777         linker script munging.
73778
73779 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73780
73781         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73782         as 128-bit value.
73783         * crypt/sha512.c (sha512_process_block): Perform total addition using
73784         128-bit if possible.
73785         (__sha512_finish_ctx): Likewise.
73786         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73787         as 64-bit value.
73788         * crypt/sha256.c (SWAP64): Define.
73789         (sha256_process_block): Perform total addition using 64-bit if
73790         possible.
73791         (__sha256_finish_ctx): Likewise.
73792
73793 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73794
73795         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73796         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73797         * nscd/hstcache.c (cache_addhst): Likewise.
73798         * nscd/grpcache.c (cache_addgr): Likewise.
73799         * nscd/aicache.c (addhstaiX): Likewise.
73800         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73801
73802 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73803
73804         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73805         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73806         * nscd/hstcache.c (cache_addhst): Likewise.
73807         * nscd/grpcache.c (cache_addgr): Likewise.
73808         * nscd/aicache.c (addhstaiX): Likewise.
73809
73810 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73811
73812         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73813         domain only when needed.
73814
73815 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73816
73817         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73818         is always restored.
73819
73820 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73821
73822         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73823         are re-adding the entry.
73824         * nscd/servicescache.c (cache_addserv): Likewise.
73825
73826 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73827
73828         * sysdeps/generic/dl-irel.h: fix protection against multiple
73829         inclusions.
73830         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73831
73832 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73833
73834         [BZ #12935]
73835         * malloc/memusage.sh: Fix quoting in message.
73836         * debug/xtrace.sh: Likewise.
73837
73838         * configure.in: Remove support for --experimental-malloc option, make
73839         it the default.
73840         * config.make.in: Likewise.
73841         * malloc/Makefile: Likewise.
73842
73843 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73844
73845         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73846         two-byte characters.
73847
73848 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73849
73850         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73851         AC_CACHE_CHECK invocation.
73852         * configure: Regenerated.
73853
73854         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73855
73856 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73857
73858         [BZ #12350]
73859         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73860         bit from old_res_options.
73861
73862         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73863
73864         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73865         value type for setfct.
73866
73867 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73868
73869         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73870         __gettimeofday instead of gettimeofday.
73871
73872 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73873
73874         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73875
73876 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73877
73878         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73879
73880         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73881         info.
73882
73883 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73884
73885         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73886         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73887         strcpy-sse2-unaligned strncpy-sse2-unaligned
73888         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73889         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73890         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73891         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73892         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73893         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73894         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73895         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73896         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73897         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73898         (STRCPY): Support SSE2 and SSSE3 versions.
73899
73900 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73901
73902         [BZ #12874]
73903         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73904         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73905         kernels which artificially limit size of requests.
73906
73907 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73908
73909         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73910         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73911         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73912         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73913         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73914         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73915         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73916         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73917         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73918         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73919         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73920         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73921         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73922         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73923         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73924         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73925         Enable unaligned load optimization for Intel Core i3, i5 and i7
73926         processors.
73927         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73928         Define.
73929         (index_Fast_Unaligned_Load): Define.
73930         (HAS_FAST_UNALIGNED_LOAD): Define.
73931
73932 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73933
73934         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73935
73936 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73937
73938         [BZ #12907]
73939         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73940         until it is clear that the information is realy needed.
73941         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73942
73943 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73944
73945         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73946
73947 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73948
73949         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73950         /sys/devices/system/cpu/online if it is usable.
73951
73952         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73953         reading the information from the /proc filesystem to once a second.
73954
73955 2011-06-21  Andreas Jaeger  <aj@suse.de>
73956
73957         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73958         NULL after inclusion of kernel headers.
73959
73960 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73961
73962         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73963         calls to internal_setent.
73964
73965         [BZ #12885]
73966         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73967         addresses using gethostbyname4_r ignore IPv4 addresses.
73968
73969         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73970         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73971
73972         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73973
73974 2011-06-20  David S. Miller  <davem@davemloft.net>
73975
73976         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73977         inclusions.
73978         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73979
73980         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73981         (elf_irel): Use it.
73982         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73983         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73984         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73985         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73986         * sysdeps/x86_64/dl-irel.h: Likewise.
73987
73988         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73989         * elf/dl-sym.c: Likewise.
73990
73991 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73992
73993         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73994         need to dereference resplen2.
73995
73996 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73997
73998         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73999
74000 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74001
74002         * Makeconfig: Define vardbdir and inst_vardbdir.
74003         * nss/Makefile: Add rules to install db-Makefile.
74004
74005         * nss/nss_db/db-XXX.c: Cleanup.
74006
74007         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74008         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74009         GLIBC_PRIVATE.
74010         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74011         * nss/makedb.c: Implement -g option to specify that value strings
74012         are generated and should not be added to table iterated over for
74013         get*ent calls.
74014         * nss/nss_db/db-initgroups.c: New file.
74015
74016         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74017         interface.
74018
74019         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74020         (internal_getgrouplist): Adjust to name change.
74021         Update use_initgroups_entry if this is not the first call.
74022         * nss/databases.def: Add initgroups entry.
74023
74024         * nss/makedb.c (compute_tables): Check result of multiple hash table
74025         sizes to minimize maximum chain length.
74026
74027 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74028
74029         * Versions.def: Add entry for libnss_db.
74030         * shlib-versions: Likewise.
74031         * nss/Makefile: Add rules to build libnss_db.
74032         * nss/Versions: Add libnss_db information.  Organize libnss_files
74033         entries better.
74034         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74035         makedb progra.  Some minor improvements to generate smaller files.
74036         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74037         here from...
74038         * nss/makedb.c: ...here.
74039         Improve database format to be smaller and require less memory at
74040         runtime.
74041         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74042         db anymore.
74043         * nss/nss_db/db-netgrp.c: Likewise.
74044         * nss/nss_db/db-open.c: Likewise.
74045         * nss/nss_files/flies-XXX.x: Adjust comments.
74046         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74047         * nss/nss_files/files-grp.c: Likewise.
74048         * nss/nss_files/files-hosts.c: Likewise.
74049         * nss/nss_files/files-network.c: Likewise.
74050         * nss/nss_files/files-proto.c: Likewise.
74051         * nss/nss_files/files-pwd.c: Likewise.
74052         * nss/nss_files/files-rpc.c: Likewise.
74053         * nss/nss_files/files-service.c: Likewise.
74054         * nss/nss_files/files-sgrp.c: Likewise.
74055         * nss/nss_files/files-spwd.c: Likewise.
74056         * nss/nss_db/db-alias.c: Removed.
74057         * nss/nss_db/dummy-db.h: Removed.
74058
74059 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74060
74061         * nss/makedb.c: Rewritten to not use database library.
74062         * nss/Makefile: Update to build new makedb program.
74063
74064 2011-06-14  Andreas Jaeger  <aj@suse.de>
74065
74066         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74067         memset declaration.
74068
74069 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74070
74071         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74072         tmpbuf.
74073
74074 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74075
74076         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74077         * elf/Makefile ($(objpfx)ld.so): Likewise.
74078
74079         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74080         Don't list ld.so twice in dependencies.
74081
74082         * posix/bug-regex31.c: Include <stdlib.h>.
74083
74084         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74085
74086         * nis/nss_compat/compat-spwd.c
74087         (getspent_next_nss_netgr): Remove unused variable.
74088         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74089
74090         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74091         nonmembers" output to use the right array.
74092
74093         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74094
74095         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74096
74097         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74098         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74099         * catgets/gencat.c (read_input_file): Likewise.
74100         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74101
74102         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74103         variable definition inside #if's controlling its use.
74104
74105         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74106
74107         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74108
74109         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74110
74111         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74112         unreachable code.
74113
74114         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74115
74116         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74117         * configure: Regenerated.
74118
74119         * Makerules: Revert last change.
74120         * elf/Makefile: Likewise.
74121
74122 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74123
74124         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74125         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74126         (reloc-link): Likewise.
74127
74128 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74129
74130         * elf/Makefile: Add rules to build pldd.
74131         * elf/pldd.c: New file.
74132         * elf/pldd-xx.c: New file.
74133
74134 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74135
74136         * version.h: Update for 2.15 development version.
74137
74138 2011-06-07  David S. Miller  <davem@davemloft.net>
74139
74140         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74141         ifuncs.
74142         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74143         elf_machine_lazy_rel): Likewise.
74144         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74145         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74146         elf_machine_lazy_rel): Likewise.
74147         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74148         dl_hwcap via passed in argument.
74149         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74150         Likewise.
74151
74152 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74153
74154         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74155
74156 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74157
74158         [BZ #12849]
74159         * manual/fdl-1.1.texi: New file, verbatim from:
74160         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74161         * manual/lgpl-2.1.texi: New file, verbatim from:
74162         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74163         * manual/Makefile (licenses): New variable, list those new file names.
74164         (texis): Use it.
74165         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74166
74167         * manual/fdl.texi: File removed.
74168         * manual/lesser.texi: File removed.
74169         * manual/libc.texinfo (Copying, Documentation License):
74170         Use new @include file names, put @appendix directive before @include.
74171
74172 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74173
74174         [BZ #12841]
74175         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74176         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74177         (mq_open): Add __NTH.
74178
74179 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74180
74181         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74182         Assume Intel Core i3/i5/i7 processor if AVX is available.
74183
74184 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74185
74186         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74187         typo.
74188
74189 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74190
74191         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74192         memory.  Use alloca_account.  Fix memory leak when retrying.
74193
74194 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74195
74196         * version.h (RELEASE): Bump for 2.14 release.
74197         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74198
74199         * config.make.in (RANLIB): Remove entry.
74200
74201 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74202
74203         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74204         (libc.pot): Work around missing support for .ksh extension in xgettext.
74205
74206         [BZ #12684]
74207         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74208         if both request failed.
74209         (send_dg): In case of server errors clear resplen or *resplen2.
74210
74211         [BZ #12454]
74212         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74213         when there are multiple maps.
74214         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74215         (_dl_fini): Remove test here.
74216
74217         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74218
74219 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74220
74221         [BZ #12350]
74222         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74223         bit from old_res_options.
74224         (gaih_inet): Likewise.
74225
74226         [BZ #11099]
74227         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74228         as signed.
74229
74230         * resolv/res_init.c (res_setoptions): Make the code more compact.
74231
74232         [BZ #11558]
74233         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74234         set RES_USEVC.
74235
74236         [BZ #11634]
74237         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74238
74239         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74240
74241         [BZ #11781]
74242         * malloc/malloc.h: Declare malloc hook variables as volatile.
74243
74244         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74245         in last patch.
74246
74247         [BZ #11799]
74248         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74249         raise in the comment.
74250         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74251         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74252         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74253
74254 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74255
74256         [BZ #12811]
74257         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74258         grow the buffers more if it already has to be sufficient.
74259         (build_wcs_upper_buffer): Likewise.
74260         * posix/regexec.c (check_matching): Likewise.
74261         (clean_state_log_if_needed): Likewise.
74262         (extend_buffers): Don't enlarge buffers beyond size of the input
74263         buffer.
74264         Patches mostly by Emil Wojak <emil@wojak.eu>.
74265         * posix/bug-regex32.c: New file.
74266         * posix/Makefile (tests): Add bug-regex32.
74267
74268         * locale/findlocale.c (_nl_find_locale): Return right away if
74269         _nl_explode_name failed.
74270         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74271
74272         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74273
74274         * debug/xtrace.sh: Unify messages.
74275         * malloc/memusage.sh: Likewise.
74276
74277         [BZ #12813]
74278         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74279         time symbol from vDSO.  Substitute with vsyscall if not available.
74280         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74281         __vdso_time.
74282
74283         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74284         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74285         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74286         Add sendmmsg and internal_sendmmsg.
74287         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74288         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74289         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74290
74291         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74292         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74293         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74294
74295 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74296
74297         [BZ #12813]
74298         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74299         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74300         available.
74301         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74302         __vdso_getcpu.
74303
74304         [BZ #12814]
74305         * iconvdata/Makefile (tests): Add bug-iconv9.
74306         * iconvdata/bug-iconv9.c: New file.
74307
74308 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74309
74310         [BZ #12814]
74311         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74312
74313 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74314
74315         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74316         (struct user_regs_struct): Change intcs field back to cs.
74317
74318 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74319
74320         * po/ja.po: Update from translation team.
74321
74322 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74323
74324         [BZ #12795]
74325         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74326         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74327
74328 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74329
74330         * stdlib/longlong.h: Update from GCC.
74331
74332 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74333
74334         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74335         parameter name.
74336         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74337         Add parameter name.
74338         (__sysconf): Pass it down.
74339
74340 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74341
74342         [BZ #12671]
74343         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74344         some situations.
74345         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74346         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74347         add in in __libc_use_alloca calls.  Adjust callers.
74348         (glob): Use malloc in some situations.
74349
74350         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74351         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74352         pltexit.
74353
74354 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74355
74356         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74357         and CLOCK_BOOTTIME_ALARM.
74358
74359         [BZ #12782]
74360         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74361         is returned.
74362
74363         * string/_strerror.c (__strerror_r): Print negative errors as signed
74364         numbers.
74365
74366         [BZ #12777]
74367         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74368         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74369         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74370
74371         * configure.in: Fix typo in redirection and correct removal of test
74372         files in two cases.
74373
74374         [BZ #12788]
74375         * locale/setlocale.c (new_composite_name): Fix test to check for
74376         identical name of all categories.
74377
74378         [BZ #12792]
74379         * libio/filedoalloc.c (local_isatty): New function.
74380         (_IO_file_doallocate): Use local_isatty.
74381         * stdio-common/perror.c (perror): In case a new stream is used
74382         forward the stream error.
74383         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74384         error flag.
74385
74386 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74387
74388         [BZ #11884]
74389         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74390         alloca.
74391         * include/alloca.h (extend_alloca_account): Define.
74392
74393         [BZ #11857]
74394         * posix/regex.h: Fix comments with documentation of user-accessible
74395         fields after compilation and describe correct free'ing of pattern
74396         after re_compile_pattern.
74397         Patch by Reuben Thomas <rrt@sc3d.org>.
74398
74399 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74400
74401         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74402         and -mno-altivec to prevent the compiler from using Altivec and/or
74403         VSX instructions when the corresponding registers are not available.
74404
74405 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74406
74407         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74408
74409 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74410
74411         * libio/freopen.c (freopen): Use __dup2, not dup2.
74412         * libio/freopen64.c (freopen64): Likewise.
74413
74414 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74415
74416         [BZ #12775]
74417         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74418         * math/Makefile (tests): Add test-powl.
74419         (CFLAGS-test-powl.c): Define.
74420         * math/test-powl.c: New file.
74421
74422 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74423
74424         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74425
74426 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74427
74428         [BZ #11837]
74429         * iconvdata/gb18030.c: Update to GB18020-2005.
74430
74431 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74432
74433         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74434         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74435         Patch by Aharon Robbins <arnold@skeeve.com>.
74436
74437         [BZ #11892]
74438         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74439         on the stack.
74440
74441         [BZ #11895]
74442         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74443         through underflows.
74444
74445         [BZ #12766]
74446         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74447         point to strings before performing equality test for error_one_per_line
74448         mode.
74449
74450         [BZ #11697]
74451         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74452
74453         [BZ #11820]
74454         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74455         (struct user_fpregs_struct): Avoid __uint*_t types.
74456
74457         [BZ #6420]
74458         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74459         symbol info.  Use it instead of calling _dl_addr locally.
74460         (lock_and_info): New function.
74461         (tr_freehook): Call lock_and_info and pass symbol info as additional
74462         parameter to tr_where.
74463         (tr_mallochook): Likewise.
74464         (tr_reallochook): Likewise.
74465         (tr_memalignhook): Likewise.
74466
74467         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74468         used and couldn't be at all thread-safe.
74469
74470 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74471
74472         * libio/freopen.c (freopen): Don't close old file descriptor
74473         before the new one is opened.  Instead dup the new file descriptor
74474         to the old one after the new stream is created.
74475         * libio/freopen64.c (freopen64): Likewise.
74476         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74477         * libio/fileops.c (_IO_new_file_close_it): Handle new
74478         _IO_FLAGS2_NOCLOSE flag.
74479         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74480         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74481         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74482         _IO_FLAGS2_NOCLOSE flag.
74483         * include/unistd.h: Add hidden_proto for dup3.
74484         Define __have_dup3.
74485         * io/dup3.c: Define hidden symbol.
74486         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74487
74488         [BZ #7101]
74489         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74490         when an incomplete long option is used.
74491         * posix/tst-getopt_long1.c: New file.
74492         * posix/Makefile (tests): Add tst-getopt_long1.
74493
74494         [BZ #10138]
74495         * scripts/config.guess: Update from autoconf-2.68.
74496         * scripts/config.sub: Likewise.
74497
74498         [BZ #10157]
74499         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74500         tests into ...
74501         (has_cpuclock): ...this.  New function.
74502         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74503         macro here based on has_cpuclock code.
74504
74505         [BZ #10149]
74506         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74507         First byte (not low byte) is now always NUL.
74508         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74509
74510         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74511         Use non-cancelable interfaces.
74512
74513         [BZ #9809]
74514         * locale/iso-639.def: Add entry for Sorani.
74515
74516         [BZ #11901]
74517         * include/stdlib.h: Move include protection to the right place.
74518         Define abort_msg_s.  Declare __abort_msg with it.
74519         * stdlib/abort.c (__abort_msg): Adjust type.
74520         * assert/assert.c (__assert_fail_base): New function.  Majority
74521         of code from __assert_fail.  Allocate memory for __abort_msg with
74522         mmap.
74523         (__assert_fail): Now call __assert_fail_base.
74524         * assert/assert-perr.c: Remove bulk of implementation.  Use
74525         __assert_fail_base.
74526         * include/assert.hL Declare __assert_fail_base.
74527         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74528         mmap.
74529         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74530
74531 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74532
74533         [BZ #11952]
74534         [BZ #12453]
74535         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74536         until all modules are registered in the DTV.
74537         * elf/Makefile: Add rules to build and run tst-tls19.
74538         * elf/tst-tls19.c: New file.
74539         * elf/tst-tls19mod1.c: New file.
74540         * elf/tst-tls19mod2.c: New file.
74541         * elf/tst-tls19mod3.c: New file.
74542         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74543
74544         [BZ #12083]
74545         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74546         correctly.
74547
74548         [BZ #12601]
74549         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74550         two-byte sequence errors.
74551         * iconvdata/Makefile (tests): Add bug-iconv8.
74552         * iconvdata/bug-iconv8.c: New file.
74553
74554         [BZ #12626]
74555         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74556         buf2 definition.
74557
74558         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74559
74560         [BZ #12432]
74561         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74562         (dummy_getcfa): New function.
74563         (init): Get _Unwind_GetCFA address, use dummy if not found.
74564         (backtrace_helper): In recursion check, also check whether CFA changes.
74565         (__backtrace): Completely initialize arg.
74566
74567         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74568         storing incomplete byte sequence in state object.  Avoid testing for
74569         guaranteed too small input if we know there is enough data available.
74570
74571 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74572
74573         * Makeconfig (+link-pie): Indent.
74574         * Rules (binaries-pie): Define if $(have-fpie) and
74575         $(build-shared).
74576         (binaries-shared): Also filter out $(binaries-pie).
74577         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74578         * nscd/Makefile (others-pie): Add nscd.
74579         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74580         ($(objpfx)nscd): Remove command override.
74581         * login/Makefile (others-pie): Add pt_chown.
74582         ($(objpfx)pt_chown): Remove command override.
74583         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74584         remove command overrides.
74585
74586 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74587
74588         * libio/tst_putwc.c: Fix error messages.
74589
74590         [BZ #12724]
74591         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74592         currently writing and seek to current position when not.
74593         * libio/Makefile (tests): Add bug-fclose1.
74594         * libio/bug-fclose1.c: New file.
74595
74596 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74597
74598         [BZ #12511]
74599         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74600         don't set DF_1_NODELETE here.
74601         (do_lookup_x): When entering new entry test for copy relocation
74602         and if necessary set DF_1_NODELETE flag.
74603         * elf/tst-unique4.cc: New file.
74604         * elf/tst-unique4.h: New file.
74605         * elf/tst-unique4lib.cc: New file.
74606         * elf/Makefile: Add rules to build and run tst-unique4.
74607         Patch by Piotr Bury <pbury@goahead.com>.
74608
74609 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74610
74611         [BZ #12052]
74612         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74613
74614         [BZ #12625]
74615         * misc/mntent_r.c (addmntent): Flush the stream after the output
74616
74617         [BZ #12393]
74618         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74619         (is_trusted_path_normalize): Skip initial colon.  Append slash
74620         to empty buffer.  Duplicate is_trusted_path code but allow
74621         constructed patch to be prefix.
74622         (is_dst): Allow $ORIGIN followed by /.
74623         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74624         Correct testing of result of is_trusted_path_normalize
74625         (decompose_rpath): Fix warning.
74626
74627 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74628
74629         [BZ #11257]
74630         * grp/initgroups.c (internal_getgrouplist): When we found the service
74631         list through the initgroups entry in nsswitch.conf do not always
74632         continue on a successful lookup.  Don't always use the
74633         __nss_group_database value if it is set.
74634         * nss/nsswitch.conf (initgroups): Change action for successful db
74635         lookup to continue for compatibility.
74636
74637 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74638
74639         [BZ #11532]
74640         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74641         and CP774 modules.
74642         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74643         and CP774 modules.
74644         * iconvdata/tst-tables.sh: Likewise.
74645         * iconvdata/cp770.c: New file.
74646         * iconvdata/cp771.c: New file.
74647         * iconvdata/cp772.c: New file.
74648         * iconvdata/cp773.c: New file.
74649         * iconvdata/cp774.c: New file.
74650         * iconvdata/testdata/CP770: New file.
74651         * iconvdata/testdata/CP770..UTF8: New file.
74652         * iconvdata/testdata/CP771: New file.
74653         * iconvdata/testdata/CP771..UTF8: New file.
74654         * iconvdata/testdata/CP772: New file.
74655         * iconvdata/testdata/CP772..UTF8: New file.
74656         * iconvdata/testdata/CP773: New file.
74657         * iconvdata/testdata/CP773..UTF8: New file.
74658         * iconvdata/testdata/CP774: New file.
74659         * iconvdata/testdata/CP774..UTF8: New file.
74660
74661         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74662         END CHARMAP line.
74663         * iconvdata/gen-8bit-gap.sh: Likewise.
74664         * iconvdata/gen-8bit.sh: Likewise.
74665
74666         * locale/iso-639.def: Add ary entry.
74667
74668         [BZ #11258]
74669         * locale/C-translit.h.in: Add U20A1 transliteration.
74670
74671         [BZ #12178]
74672         * locale/iso-639.def: Add wae entry.
74673         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74674
74675         [BZ #12545]
74676         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74677         for n.
74678
74679         [BZ #12711]
74680         * locale/C-translit.h.in: Add entry for U20B9.
74681         Patch by pravin.d.s@gmail.com.
74682
74683 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74684
74685         [BZ #12713]
74686         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74687         ENAMETOOLONG use generic getcwd.
74688         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74689         in rtld.  Use *stat64.
74690         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74691         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74692         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74693         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74694         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74695         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74696         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74697         __fstatat64 macros.
74698         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74699         * dirent/rewinddir.c: Add libc_hidden_def.
74700         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74701         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74702
74703         * include/dirent.h (__alloc_dir): Add flags parameter.
74704         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74705         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74706         __alloc_dir.
74707         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74708         from fdopendir if O_CLOEXEC is already set.
74709
74710 2011-03-15  Alan Modra  <amodra@gmail.com>
74711
74712         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74713         l_tls_firstbyte_offset non-zero.  Save padding offset in
74714         l_tls_firstbyte_offset for later use.
74715         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74716         freeing static tls block.
74717
74718 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74719
74720         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74721         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74722         being defined by the kernel headers.
74723
74724 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74725
74726         [BZ #12734]
74727         * resolv/resolv.h: Define RES_NOTLDQUERY.
74728         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74729         no-tld-query and set RES_NOTLDQUERY.
74730         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74731         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74732         modern BIND to search name as TLD unless forbidden.
74733
74734 2011-05-07  Petr Baudis  <pasky@suse.cz>
74735             Ulrich Drepper  <drepper@gmail.com>
74736
74737         [BZ #12393]
74738         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74739         (is_trusted_path): ...to here.
74740         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74741         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74742         using is_trusted_path_normalize() in setuid scripts.
74743
74744 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74745
74746         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74747         __BEGIN/__END_DECLS.
74748
74749 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74750
74751         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74752         NSS_STATUS_NOTFOUND if no record was found.
74753
74754 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74755
74756         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74757         (headers-not-in-tirpc): Remove rpc/netdb.h
74758         * resolv/netdb.h: Revert last change.
74759
74760 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74761
74762         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74763         circular dependency between libgcc.a and libc.a.
74764
74765 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74766
74767         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74768         * nis/Makefile: Don't install rpcsvc/*.
74769         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74770         instead of <rpc/types.h>.
74771         (MAXHOSTNAMELEN): Define.
74772
74773 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74774
74775         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74776
74777 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74778
74779         [BZ #12714]
74780         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74781         gethostbyname4_r when IPv6 results are possible.
74782
74783 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74784
74785         [BZ #12723]
74786         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74787         _PC_PIPE_BUF handling.
74788
74789 2011-04-30  Bruno Haible  <bruno@clisp.org>
74790
74791         [BZ #12717]
74792         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74793         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74794         to 'int'.
74795         * inet/getnameinfo.c (getnameinfo): Likewise.
74796
74797 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74798
74799         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74800         to groups setting in database lookup.
74801         * nss/nsswitch.conf: Add initgroups entry.
74802
74803 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74804
74805         [BZ #12685]
74806         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74807         mode string.
74808         Patch by Eric Blake <eblake@redhat.com>.
74809
74810 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74811
74812         * sunrpc/Makefile (need-export-routines): Add svc_run.
74813         (routines): Remove svc_run.
74814         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74815         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74816         * sunrpc/svc_run.c (svc_run): Likewise.
74817         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74818
74819 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74820
74821         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74822         problem in reallocation in last patch.
74823
74824 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74825
74826         * sunrpc/Makefile: Move inclusion of Rules.
74827
74828 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74829
74830         * nss/nss_files/files-initgroups.c: New file.
74831         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74832         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74833         _nss_files_initgroups_dyn.
74834
74835 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74836
74837         * elf/elf.h (R_ARM_IRELATIVE): Define.
74838
74839 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74840
74841         * po/ru.po: Update from translation team.
74842
74843 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74844
74845         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74846         dependencies.
74847
74848 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74849
74850         [BZ #12653]
74851         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74852         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74853         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74854         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74855         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74856
74857 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74858
74859         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74860         differing bytes.
74861         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74862         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74863         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74864
74865 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74866
74867         [BZ #12420]
74868         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74869         storing it.
74870         * stdlib/bug-getcontext.c: New file.
74871         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74872
74873 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74874
74875         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74876         instructions into .machine "z9-109".
74877         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74878         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74879
74880 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74881
74882         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74883         between environment variables and auxiliary vector.
74884
74885 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74886
74887         * Makefile: Add rules to build linkobj/libc.so.
74888         * include/libc-symbols.h: Define libc_hidden_nolink.
74889         * include/rpc/auth.h: Mark functions which are to be hidden.
74890         * include/rpc/auth_des.h: Likewise.
74891         * include/rpc/auth_unix.h: Likewise.
74892         * include/rpc/clnt.h: Likewise.
74893         * include/rpc/des_crypt.h: Likewise.
74894         * include/rpc/key_prot.h: Likewise.
74895         * include/rpc/pmap_clnt.h: Likewise.
74896         * include/rpc/pmap_prot.h: Likewise.
74897         * include/rpc/pmap_rmt.h: Likewise.
74898         * include/rpc/rpc_msg.h: Likewise.
74899         * include/rpc/svc.h: Likewise.
74900         * include/rpc/svc_auth.h: Likewise.
74901         * include/rpc/xdr.h: Likewise.
74902         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74903         * nss/Makefile: Likewise.
74904         * sunrpc/Makefile: Don't install headers.  Build library with normal
74905         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74906         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74907         for the compat linking library.  Remove use of INTDEF/INTUSE.
74908         * sunrpc/auth_none.c: Likewise.
74909         * sunrpc/auth_unix.c: Likewise.
74910         * sunrpc/authdes_prot.c: Likewise.
74911         * sunrpc/authuxprot.c: Likewise.
74912         * sunrpc/clnt_gen.c: Likewise.
74913         * sunrpc/clnt_perr.c: Likewise.
74914         * sunrpc/clnt_raw.c: Likewise.
74915         * sunrpc/clnt_simp.c: Likewise.
74916         * sunrpc/clnt_tcp.c: Likewise.
74917         * sunrpc/clnt_udp.c: Likewise.
74918         * sunrpc/clnt_unix.c: Likewise.
74919         * sunrpc/des_crypt.c: Likewise.
74920         * sunrpc/des_soft.c: Likewise.
74921         * sunrpc/get_myaddr.c: Likewise.
74922         * sunrpc/key_call.c: Likewise.
74923         * sunrpc/key_prot.c: Likewise.
74924         * sunrpc/netname.c: Likewise.
74925         * sunrpc/pm_getmaps.c: Likewise.
74926         * sunrpc/pm_getport.c: Likewise.
74927         * sunrpc/pmap_clnt.c: Likewise.
74928         * sunrpc/pmap_prot.c: Likewise.
74929         * sunrpc/pmap_prot2.c: Likewise.
74930         * sunrpc/pmap_rmt.c: Likewise.
74931         * sunrpc/publickey.c: Likewise.
74932         * sunrpc/rpc_cmsg.c: Likewise.
74933         * sunrpc/rpc_common.c: Likewise.
74934         * sunrpc/rpc_dtable.c: Likewise.
74935         * sunrpc/rpc_prot.c: Likewise.
74936         * sunrpc/rpc_thread.c: Likewise.
74937         * sunrpc/rtime.c: Likewise.
74938         * sunrpc/svc.c: Likewise.
74939         * sunrpc/svc_auth.c: Likewise.
74940         * sunrpc/svc_authux.c: Likewise.
74941         * sunrpc/svc_raw.c: Likewise.
74942         * sunrpc/svc_run.c: Likewise.
74943         * sunrpc/svc_simple.c: Likewise.
74944         * sunrpc/svc_tcp.c: Likewise.
74945         * sunrpc/svc_udp.c: Likewise.
74946         * sunrpc/svc_unix.c: Likewise.
74947         * sunrpc/svcauth_des.c: Likewise.
74948         * sunrpc/xcrypt.c: Likewise.
74949         * sunrpc/xdr.c: Likewise.
74950         * sunrpc/xdr_array.c: Likewise.
74951         * sunrpc/xdr_float.c: Likewise.
74952         * sunrpc/xdr_intXX_t.c: Likewise.
74953         * sunrpc/xdr_mem.c: Likewise.
74954         * sunrpc/xdr_rec.c: Likewise.
74955         * sunrpc/xdr_ref.c: Likewise.
74956         * sunrpc/xdr_sizeof.c: Likewise.
74957         * sunrpc/xdr_stdio.c: Likewise.
74958
74959 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74960
74961         [BZ #12650]
74962         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74963         * sysdeps/ia64/dl-tls.h: Likewise.
74964         * sysdeps/powerpc/dl-tls.h: Likewise.
74965         * sysdeps/s390/dl-tls.h: Likewise.
74966         * sysdeps/sh/dl-tls.h: Likewise.
74967         * sysdeps/sparc/dl-tls.h: Likewise.
74968         * sysdeps/x86_64/dl-tls.h: Likewise.
74969         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74970
74971 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74972
74973         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74974         rpath element also skip the following colon.
74975         (expand_dynamic_string_token): Add is_path parameter and pass
74976         down to DL_DST_REQUIRED and _dl_dst_substitute.
74977         (decompose_rpath): Call expand_dynamic_string_token with
74978         non-zero is_path.  Ignore empty rpaths.
74979         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74980         with zero is_path.
74981
74982 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74983
74984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74985         Make cancelable.
74986
74987 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74988
74989         [BZ #12655]
74990         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74991         Patch by Filipe David Manana <fdmanana@apache.org>.
74992
74993 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74994
74995         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74996         Maintain aligned stack.
74997         (CHECK_RSP): Remove unused macro.
74998
74999 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75000
75001         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75002         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75003
75004 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75005
75006         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75007
75008         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75009
75010 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75011
75012         [BZ #12518]
75013         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75014         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75015         * sysdeps/x86_64/memmove.c: New file.
75016         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75017         (memcpy): Renamed to ...
75018         (__new_memcpy): This.
75019         (memcpy): Provide GLIBC_2_14 memcpy.
75020         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75021         (memcpy): Provide GLIBC_2_2_5 memcpy.
75022
75023 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75024
75025         [BZ #12631]
75026         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75027
75028 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75029
75030         * misc/syncfs.c: New file.
75031         * misc/Makefile (routines): Add syncfs.
75032         * posix/unistd.h: Declare syncfs.
75033         * sysdeps/unix/syscalls.list: Add syncfs.
75034
75035 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75036
75037         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75038         open_by_handle_at.
75039         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75040         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75041         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75042         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75043         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75044         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75045         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75046
75047 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75048
75049         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75050         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75051         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75052         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75053         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75054         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75055         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75056
75057         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75058         sync_file_range.c with -fexceptions.
75059         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75060         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75061         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75062         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75063         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75064         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75065         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75066         sync_file_range as cancellation point
75067         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75068         now a wrapper around __call_sync_file_range with cancellation handling.
75069         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75070         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75071         function name to __call_sync_file_range.
75072         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75073         Add call_sync_file_range.
75074
75075 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75076
75077         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75078         bits/timex.h.
75079
75080 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75081
75082         * iconv/iconv.h: Fix typo in comment.
75083         * io/fcntl.h: Likewise.
75084         * libio/stdio.h: Likewise.
75085         * posix/spawn.h: Likewise.
75086         * posix/unistd.h: Likewise.
75087         * stdlib/stdlib.h: Likewise.
75088         * time/time.h: Likewise.
75089         * wcsmbs/wchar.h: Likewise.
75090
75091         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75092         open_by_handle): Add.
75093         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75094         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75095         Augment a few comments.
75096         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75097         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75098         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75099         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75100         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75101         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75102         open_by_handle.
75103
75104         * io/fcntl.h (AT_EMPTY_PATH): Define.
75105
75106 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75107
75108         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75109         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75110         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75111         to...
75112         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75113         * Versions.def: Add GLIBC_2.14.
75114         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75115         Export.
75116
75117 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75118
75119         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75120         round counter.
75121         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75122
75123 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75124
75125         [BZ #12597]
75126         * string/test-strncmp.c (do_page_test): New function.
75127         (check2): Likewise.
75128         (test_main): Call check2.
75129         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75130
75131 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75132
75133         [BZ #12587]
75134         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75135         Handle cache information in CPU leaf 4.
75136         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75137
75138 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75139
75140         [BZ #12583]
75141         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75142         character representation.
75143         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75144
75145 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75146
75147         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75148         END(__isnan) to END(__isnanf) to match function entry point/label
75149         EALIGN(__isnanf,...).
75150
75151 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75152
75153         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75154
75155 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75156
75157         [BZ #12510]
75158         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75159         copy from the symbol referenced in the relocation to initialize the
75160         used variable.
75161         Patch by Piotr Bury <pbury@goahead.com>.
75162         * elf/Makefile: Add rules to build and tst-unique3.
75163         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75164         * elf/tst-unique3.cc: New file.
75165         * elf/tst-unique3.h: New file.
75166         * elf/tst-unique3lib.cc: New file.
75167         * elf/tst-unique3lib2.cc: New file.
75168
75169         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75170
75171 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75172
75173         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75174         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75175         to _start.
75176
75177 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75178
75179         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75180         to-be-loaded object along a path to loader is ld.so.
75181
75182 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75183             Ulrich Drepper  <drepper@gmail.com>
75184
75185         * sysdeps/x86_64/memset.S: After aligning destination, code
75186         branches to different locations depending on the value of
75187         misalignment, when multiarch is enabled. Fix this.
75188
75189 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75190
75191         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75192         Set _x86_64_preferred_memory_instruction for AMD processsors.
75193         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75194         Set bit_Prefer_SSE_for_memop for AMD processors.
75195
75196 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75197
75198         * libio/fmemopen.c (fmemopen): Optimize a bit.
75199
75200 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75201
75202         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75203
75204 2011-03-03  Roland McGrath  <roland@redhat.com>
75205
75206         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75207
75208 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75209
75210         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75211         __bzero_ultra1 instead of __memset_ultra1.
75212
75213 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75214             Ulrich Drepper  <drepper@gmail.com>
75215
75216         [BZ #12509]
75217         * include/link.h (struct link_map): Add l_orig_initfini.
75218         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75219         returning unsuccessfully.
75220         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75221         close of a file loaded at startup, restore the original l_initfini
75222         list.
75223         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75224         list, store the pointer.
75225         * elf/Makefile ($(objpfx)noload-mem): New rule.
75226         (noload-ENV): Define.
75227         (tests): Add $(objpfx)noload-mem.
75228         * elf/noload.c: Include <memcheck.h>.
75229         (main): Call mtrace.  Close all opened handles.
75230
75231 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75232
75233         [BZ #12454]
75234         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75235         dependencies are missing.
75236
75237 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75238
75239         Fix __if_freereq crash: Unlike the generic version which uses free,
75240         Hurd needs munmap.
75241         * sysdeps/mach/hurd/ifreq.h: New file.
75242
75243 2011-01-27  Petr Baudis  <pasky@suse.cz>
75244             Ulrich Drepper  <drepper@gmail.com>
75245
75246         [BZ 12445]#
75247         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75248         to extend_alloca().
75249         * stdio-common/bug23.c: New file.
75250         * stdio-common/Makefile (tests): Add bug23.
75251
75252 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75253             Ulrich Drepper  <drepper@gmail.com>
75254
75255         [BZ #12489]
75256         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75257         before performing relro protection.  At old place add assertion
75258         to make sure nothing changed.
75259
75260 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75261             Glauber de Oliveira Costa  <glommer@gmail.com>
75262
75263         * elf/elf.h: Add new ARM TLS relocs.
75264
75265 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75266
75267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75268         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75269         cast from r3.
75270         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75271         'tests' variable.
75272         * sysdeps/wordsize-64/tst-writev.c: New file.
75273
75274 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75275
75276         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75277         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75278         insns in _dl_start to prevent a TOC reference before relocs are
75279         resolved.
75280
75281 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75282
75283         [BZ #12469]
75284         * Makeconfig: Remove RANLIB definition.
75285         * Makerules: Don't use RANLIB.
75286         * aclocal.m4: Remove ranlib test.
75287         * configure.in: No need to check for ranlib.
75288         * elf/rtld-Rules: Don't use RANLIB.
75289
75290 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75291
75292         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75293         protection macro.
75294         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75295         inclusion protection macro.
75296
75297         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75298         SIGRTMIN and SIGRTMAX and print information in that case only when
75299         SIGRTMIN is defined.
75300
75301 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75302
75303         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75304         arginfo fn returning -1.
75305
75306         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75307         and thousands string is zero terminated.
75308
75309 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75310
75311         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75312         sysdeps/unix/sysv/linux/bits/socket.h.
75313
75314 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75315
75316         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75317         (__CPU_COUNT): Remove old macros.
75318         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75319         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75320         (__CPU_ALLOC, __CPU_FREE): Add macros.
75321         (__sched_cpualloc, __sched_cpufree): Add declarations.
75322
75323 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75324
75325         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75326         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75327         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75328         (readdhstai): Return value of addhstaiX call.
75329         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75330         (addgrbyX): Return value returned by cache_addgr.
75331         (readdgrbyname): Return value returned by addgrbyX.
75332         (readdgrbygid): Likewise.
75333         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75334         (addpwbyX): Return value returned by cache_addpw.
75335         (readdpwbyname): Return value returned by addhstbyX.
75336         (readdpwbyuid): Likewise.
75337         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75338         (addservbyX): Return value returned by cache_addserv.
75339         (readdservbyname): Return value returned by addservbyX:
75340         (readdservbyport): Likewise.
75341         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75342         (addhstbyX): Return value returned by cache_addhst.
75343         (readdhstbyname): Return value returned by addhstbyX.
75344         (readdhstbyaddr): Likewise.
75345         (readdhstbynamev6): Likewise.
75346         (readdhstbyaddrv6): Likewise.
75347         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75348         (readdinitgroups): Return value returned by addinitgroupsX.
75349         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75350         (prune_cache): Keep track of timeout value of re-added entries.
75351         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75352         * nscd/nscd.h: Adjust prototypes of readd* functions.
75353
75354 2011-02-04  Roland McGrath  <roland@redhat.com>
75355
75356         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75357         (nis_stats): Likewise.
75358         * nis/nis_modify.c (nis_modify): Likewise.
75359         * nis/nis_remove.c (nis_remove): Likewise.
75360         * nis/nis_add.c (nis_add): Likewise.
75361
75362         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75363
75364         * posix/fnmatch_loop.c: Add some consts.
75365
75366         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75367
75368 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75369
75370         [BZ #12460]
75371         * config.make.in (config-cflags-novzeroupper): Define.
75372         * configure.in: Substitute libc_cv_cc_novzeroupper.
75373         * elf/Makefile (AVX-CFLAGS): Define.
75374         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75375         (CFLAGS-tst-auditmod4a.c): Likewise.
75376         (CFLAGS-tst-auditmod4b.c): Likewise.
75377         (CFLAGS-tst-auditmod6b.c): Likewise.
75378         (CFLAGS-tst-auditmod6c.c): Likewise.
75379         (CFLAGS-tst-auditmod7b.c): Likewise.
75380         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75381
75382 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75383
75384         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75385         function to the callback.
75386         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75387
75388 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75389
75390         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75391         of errno.
75392
75393 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75394
75395         [BZ #11724]
75396         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75397         of constructors.
75398         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75399         of destructors.
75400         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75401
75402         [BZ #11724]
75403         * elf/Makefile: Add rules to build and run new test.
75404         * elf/tst-initorder.c: New file.
75405         * elf/tst-initorder.exp: New file.
75406         * elf/tst-initordera1.c: New file.
75407         * elf/tst-initordera2.c: New file.
75408         * elf/tst-initordera3.c: New file.
75409         * elf/tst-initordera4.c: New file.
75410         * elf/tst-initorderb1.c: New file.
75411         * elf/tst-initorderb2.c: New file.
75412         * elf/tst-order-a1.c: New file.
75413         * elf/tst-order-a2.c: New file.
75414         * elf/tst-order-a3.c: New file.
75415         * elf/tst-order-a4.c: New file.
75416         * elf/tst-order-b1.c: New file.
75417         * elf/tst-order-b2.c: New file.
75418         * elf/tst-order-main.c: New file.
75419         New test case by George Gensure <werkt0@gmail.com>.
75420
75421 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75422
75423         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75424         decoding ACE if AI_CANONIDN.
75425
75426 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75427
75428         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75429
75430 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75431
75432         * version.h (RELEASE): Bump for 2.13 release.
75433         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75434
75435         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75436
75437         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75438         MADV_NOHUGEPAGE.
75439         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75440         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75441         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75442         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75443         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75444         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75445
75446         * posix/getconf.c: Update copyright year.
75447         * catgets/gencat.c: Likewise.
75448         * csu/version.c: Likewise.
75449         * debug/catchsegv.sh: Likewise.
75450         * debug/xtrace.sh: Likewise.
75451         * elf/ldconfig.c: Likewise.
75452         * elf/ldd.bash.in: Likewise.
75453         * elf/sprof.c (print_version): Likewise.
75454         * iconv/iconv_prog.c: Likewise.
75455         * iconv/iconvconfig.c: Likewise.
75456         * locale/programs/locale.c: Likewise.
75457         * locale/programs/localedef.c: Likewise.
75458         * malloc/memusage.sh: Likewise.
75459         * malloc/mtrace.pl: Likewise.
75460         * nscd/nscd.c (print_version): Likewise.
75461         * nss/getent.c: Likewise.
75462
75463         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75464         PF_CAIF, and PF_ALG.
75465         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75466
75467 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75468
75469         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75470         (modules-names): Use them.
75471         (ifunc-test-modules, ifunc-pie-tests): Define.
75472         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75473         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75474         (test-extras): Likewise.
75475         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75476         $(compile-command.c).
75477         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75478         (all-built-dso): Define.
75479         (check-textrel.out, check-execstack.out): Depend on it.
75480
75481         * configure.in: Don't override --enable-multi-arch.
75482
75483 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75484
75485         [BZ #6812]
75486         * nscd/hstcache.c (tryagain): Define.
75487         (cache_addhst): Return tryagain not notfound for temporary errors.
75488         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75489         failed.
75490
75491 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75492
75493         [BZ #10563]
75494         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75495         to make the syscall.
75496         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75497
75498         [BZ #12378]
75499         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75500         and fall back to matching as normal character if the string ends before
75501         the matching ']' is found.  This is what POSIX requires.
75502         * posix/testfnm.c: Adjust test result.
75503         * posix/globtest.sh: Adjust test result.  Add new test.
75504         * posix/tst-fnmatch.input: Likewise.
75505         * posix/tst-fnmatch2.c: Add new test.
75506
75507 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75508
75509         * elf/Makefile (check-execstack): Revert last change.  Depend on
75510         check-execstack.h.
75511         (check-execstack.h): New target.
75512         (generated): Add check-execstack.h.
75513         * elf/check-execstack.c: Include "check-execstack.h".
75514         (main): Revert last change.
75515         (handle_file): Return zero if GNU_STACK is absent and
75516         DEFAULT_STACK_PERMS doesn't include PF_X.
75517
75518 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75519
75520         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75521         in child fails because the descriptor is already closed.
75522         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75523         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75524         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75525
75526         [BZ #12397]
75527         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75528         syscall.
75529
75530         [BZ #10484]
75531         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75532         temporary buffer used to handle multi lookups locally.
75533         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75534
75535 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75536
75537         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75538         loader is ld.so.
75539
75540 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75541
75542         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75543         alignment for SSE2.
75544
75545 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75546
75547         [BZ #12394]
75548         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75549         characters.  When rounding increased number of integer digits recompute
75550         number of groups.
75551         * stdio-common/tst-grouping.c: New file.
75552         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75553
75554 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75555
75556         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75557         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75558
75559         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75560         void.
75561         * bits/select.h: Likewise.
75562
75563 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75564
75565         * po/ja.po: Update from translation team.
75566
75567 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75568
75569         [BZ #11155]
75570         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75571         implementation just like for lxstat, fxstatat, et al.
75572
75573 2010-12-27  Jim Meyering  <meyering@redhat.com>
75574
75575         [BZ #12348]
75576         * posix/regexec.c (build_trtable): Return failure indication upon
75577         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75578
75579 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75580
75581         [BZ #12201]
75582         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75583         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75584         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75585         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75586
75587         [BZ #12207]
75588         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75589
75590         [BZ #12204]
75591         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75592         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75593
75594 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75595
75596         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75597         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75598         script has SORT_BY_INIT_PRIORITY.
75599         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75600         NO_CTORS_DTORS_SECTIONS is defined.
75601         * elf/soinit.c: Likewise.
75602         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75603         NO_CTORS_DTORS_SECTIONS is defined.
75604         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75605         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75606         * sysdeps/sh/init-first.c: Likewise.
75607         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75608
75609 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75610
75611         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75612         always use the slow path.
75613
75614 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75615
75616         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75617         similar rule which adds the sysdep directories to the header search in
75618         order to pick up the correct platform stackinfo.h.
75619         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75620         perform test if it is, otherwise return successfully without testing.
75621         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75622         DEFAULT_STACK_PERMS define in stackinfo.h.
75623         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75624         defined in stackinfo.h.
75625         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75626         DEFAULT_STACK_PERMS defined in stackinfo.h.
75627         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75628         * sysdeps/ia64/stackinfo.h: Likewise.
75629         * sysdeps/s390/stackinfo.h: Likewise.
75630         * sysdeps/sh/stackinfo.h: Likewise.
75631         * sysdeps/sparc/stackinfo.h: Likewise.
75632         * sysdeps/x86_64/stackinfo.h: Likewise.
75633         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75634         PF_X for powerpc64.  Retain PF_X for powerpc32.
75635
75636 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75637
75638         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75639         accurately.
75640         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75641         GETDENTS_64BIT_ALIGNED.
75642
75643 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75644
75645         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75646
75647 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75648
75649         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75650         _GNU_SOURCE.
75651
75652         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75653         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75654         Remove __restrict.
75655         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75656         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75657
75658 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75659
75660         [BZ #11655]
75661         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75662         are initialized.
75663
75664 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75665
75666         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75667
75668 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75669
75670         * po/it.po: Update from translation team.
75671
75672 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75673
75674         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75675         unused codes.
75676
75677 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75678
75679         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75680
75681 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75682
75683         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75684         specially.
75685         (gaih_getanswer_slice): Likewise.
75686
75687 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75688
75689         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75690
75691 2010-05-31  Petr Baudis  <pasky@suse.cz>
75692
75693         [BZ #11149]
75694         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75695         silently even in the chroot mode.
75696
75697 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75698
75699         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75700         last patch a bit.  Pretty printing
75701
75702 2010-05-31  Petr Baudis <pasky@suse.cz>
75703
75704         [BZ #10085]
75705         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75706         initialization of skip_initgroups_dyn.
75707
75708 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75709
75710         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75711         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75712
75713 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75714
75715         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75716
75717 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75718
75719         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75720         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75721         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75722         ($(objpfx)tst-fnmatch-mem): New rule.
75723         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75724         * posix/tst-fnmatch.c (main): Call mtrace.
75725
75726 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75727
75728         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75729         Support Intel processor model 6 and model 0x2c.
75730
75731 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75732
75733         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75734           signed comparison.
75735
75736 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75737
75738         [BZ #12205]
75739         * string/test-strncasecmp.c (check_result): New function.
75740         (do_one_test): Use it.
75741         (check1): New function.
75742         (test_main): Use it.
75743         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75744         Support strcasecmp and strncasecmp.
75745
75746 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75747
75748         [BZ #12194]
75749         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75750         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75751
75752 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75753
75754         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75755         IFUNC support.
75756         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75757         memset-x86-64.
75758         * sysdeps/x86_64/multiarch/bzero.S: New file.
75759         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75760         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75761         * sysdeps/x86_64/multiarch/memset.S: New file.
75762         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75763         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75764         Set bit_Prefer_SSE_for_memop for Intel processors.
75765         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75766         Define.
75767         (index_Prefer_SSE_for_memop): Define.
75768         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75769
75770 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75771
75772         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75773         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75774
75775 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75776
75777         [BZ #12191]
75778         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75779         (__x86_64_raw_data_cache_size_half): Likewise.
75780         (__x86_64_raw_shared_cache_size): Likewise.
75781         (__x86_64_raw_shared_cache_size_half): Likewise.
75782
75783         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75784         (__x86_64_raw_data_cache_size_half): Likewise.
75785         (__x86_64_raw_shared_cache_size): Likewise.
75786         (__x86_64_raw_shared_cache_size_half): Likewise.
75787         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75788         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75789         and __x86_64_raw_shared_cache_size_half.  Round
75790         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75791         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75792         to multiple of 256 bytes.
75793
75794 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75795
75796         [BZ #12167]
75797         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75798         of inacessible symlinks.  Verify result of symlink before returning it.
75799         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75800         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75801
75802 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75803
75804         * math/math.h (isinf): Fix typo in comment.
75805
75806 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75807
75808         * po/da.po: Update from translation team.
75809
75810 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75811
75812         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75813         is added to the list.
75814
75815 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75816             Ulrich Drepper  <drepper@gmail.com>
75817
75818         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75819         the global list here.  Move code to...
75820         (_dl_add_to_namespace_list): ...here.  New function.
75821         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75822         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75823         * elf/dl-load.c (lose): Don't remove the element from the list.
75824         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75825         (_dl_map_object): Likewise.
75826
75827 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75828
75829         [BZ #12159]
75830         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75831         into all bytes of SSE register.
75832         Patch by Richard Li <richardpku@gmail.com>.
75833
75834 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75835
75836         [BZ #12140]
75837         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75838         perturbing.
75839
75840 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75841
75842         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75843         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75844         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75845         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75847         submachine.
75848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75849
75850 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75851
75852         * include/dlfcn.h (__RTLD_SECURE): Define.
75853         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75854         mode & __RTLD_SECURE instead.
75855         (open_path): Rename preloaded parameter to secure.
75856         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75857         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75858         * elf/dl-deps.c (openaux): Likewise.
75859         * elf/rtld.c (struct map_args): Remove is_preloaded.
75860         (map_doit): Don't use it.
75861         (dl_main): Likewise.
75862         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75863         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75864
75865 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75866
75867         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75868         (sysd-rules-targets): Remove duplicates.
75869         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75870         rtld-%.$o dependency.
75871
75872 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75873
75874         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75875         _dl_map_object do it.
75876
75877 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75878
75879         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75880         fast fma builtins, define the macros in the C99 standard.
75881         (FP_FAST_FMAF): Likewise.
75882         (FP_FAST_FMAL): Likewise.
75883         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75884
75885         * bits/mathdef.h: Update copyright year.
75886         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75887
75888 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75889
75890         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75891         builtins, define the macros in the C99 standard.
75892         (FP_FAST_FMAF): Likewise.
75893         (FP_FAST_FMAL): Likewise.
75894         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75895         multiply/add.
75896         (FP_FAST_FMAF): Likewise.
75897
75898 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75899
75900         [BZ #3268]
75901         * math/libm-test.inc (fma_test): Some new testcases.
75902         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75903         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75904         y and infinite z.  Do multiplication by C already in long double.
75905         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75906         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75907         y and infinite z.  Do bitwise or of inexact bit into u.d.
75908         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75909         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75910         * sysdeps/i386/fpu/s_fma.S: Removed.
75911         * sysdeps/i386/fpu/s_fmal.S: Removed.
75912
75913 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75914
75915         [BZ #3268]
75916         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75917         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75918         computation is not scheduled after fetestexcept.  Fix value
75919         of minimum denormal long double.
75920
75921 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75922
75923         [BZ #3268]
75924         * math/libm-test.inc (fma_test): Add some more tests.
75925         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75926         correctly.
75927
75928 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75929
75930         * scripts/data/localplt-s390-linux-gnu.data: New file.
75931         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75932
75933 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75934
75935         [BZ #3268]
75936         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75937         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75938         instead of dbl-64.
75939         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75940         inlines.
75941         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75942         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75943         if one of x and y is very large and the other is subnormal.
75944         * sysdeps/s390/fpu/s_fmaf.c: New file.
75945         * sysdeps/s390/fpu/s_fma.c: New file.
75946         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75947         * sysdeps/powerpc/fpu/s_fma.S: New file.
75948         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75949         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75950         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75951
75952 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75953
75954         [BZ #3268]
75955         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75956         fma tests.
75957         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75958         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75959         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75960         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75961         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75962         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75963         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75964
75965 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75966
75967         [BZ #12078]
75968         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75969         * posix/bug-regex31.input: Add test case.
75970
75971 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75972
75973         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75974         * posix/bug-regex31.input: New file.
75975
75976         [BZ #12078]
75977         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75978         (parse_sub_exp): Fix last change, use postorder.
75979
75980         * posix/bug-regex31.c: New file.
75981         * posix/Makefile: Add rules to build and run bug-regex31.
75982
75983         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75984
75985         [BZ #12078]
75986         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75987
75988         [BZ #12108]
75989         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75990         to have entries in sys_siglist.
75991
75992         [BZ #12093]
75993         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75994         be NULL.
75995
75996 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75997
75998         [BZ #3268]
75999         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76000         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76001         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76002         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76003         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76004         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76005         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76006         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76007         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76008         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76009         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76010         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76011         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76012         * math/ftestexcept.c (fetestexcept): Likewise.
76013         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76014         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76015         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76016         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76017         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76018         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76019         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76020
76021 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76022
76023         [BZ #12107]
76024         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76025         newline.
76026
76027 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76028
76029         * string/bug-strstr1.c: New file.
76030         * string/Makefile: Add rules to build and run bug-strstr1.
76031
76032 2010-10-05  Eric Blake  <eblake@redhat.com>
76033
76034         [BZ #12092]
76035         * string/str-two-way.h (two_way_long_needle): Always clear memory
76036         when skipping input due to the shift table.
76037
76038 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76039
76040         [BZ #12005]
76041         * malloc/mcheck.c: Handle large requests.
76042
76043         [BZ #12077]
76044         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76045         for strncmp and strncasecmp.
76046         * string/stratcliff.c: Add tests for strcmp and strncmp.
76047         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76048
76049 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76050
76051         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76052         __set_fpscr.
76053
76054 2010-09-30  Andreas Jaeger  <aj@suse.de>
76055
76056         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76057         (CGROUP_SUPER_MAGIC): Define.
76058         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76059         Handle btrfs and cgroup file systems.
76060         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76061         Likewise.
76062
76063 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76064
76065         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76066         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76067
76068 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76069
76070         [BZ #12067]
76071         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76072         trying to locate the ELF header.
76073
76074 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76075
76076         [BZ #11611]
76077         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76078         Mask out sign-bit copies when constructing f_fsid.
76079
76080 2010-09-24  Petr Baudis <pasky@suse.cz>
76081
76082         * debug/stack_chk_fail_local.c: Add missing licence exception.
76083         * debug/warning-nop.c: Likewise.
76084
76085 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76086
76087         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76088         implementing getdents64 using getdents syscall, set d_type if
76089         __ASSUME_GETDENTS32_D_TYPE.
76090
76091 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76092
76093         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76094         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76095
76096 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76097
76098         [BZ #12037]
76099         * posix/unistd.h: Undo change of feature selection for ftruncate from
76100         2010-01-11.
76101
76102 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76103
76104         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76105         detection.
76106
76107 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76108
76109         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76110         fanotify_mark.
76111         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76112
76113 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76114
76115         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76116         variables after CHECK_SP call.
76117         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76118
76119 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76120             Ulrich Drepper  <drepper@redhat.com>
76121
76122         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76123         re-relocationg ld.so.
76124         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76125         _dl_init_paths call.
76126         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76127         here anymore.
76128
76129 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76130
76131         * resolv/res_init.c (__res_vinit): Count the default server we added.
76132
76133 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76134             Ulrich Drepper  <drepper@redhat.com>
76135
76136         [BZ #11968]
76137         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76138         (____longjmp_chk): Use %ebx for saving value across system call.
76139         Add unwind info.
76140
76141 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76142
76143         * manual/Makefile: Don't mix pattern rules with normal rules.
76144
76145 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76146
76147         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76148         operation.
76149         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76150         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76151         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76152         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76153         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76154         Likewise.
76155
76156 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76157
76158         [BZ #11979]
76159         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76160         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76161
76162 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76163
76164         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76165         * sysdeps/x86_64/addmul_1.S: Likewise.
76166         * sysdeps/x86_64/lshift.S: Likewise.
76167         * sysdeps/x86_64/mul_1.S: Likewise.
76168         * sysdeps/x86_64/rshift.S: Likewise.
76169         * sysdeps/x86_64/sub_n.S: Likewise.
76170         * sysdeps/x86_64/submul_1.S: Likewise.
76171
76172 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76173
76174         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76175         Define __sched_param instead of SCHED_* and sched_param when
76176         <bits/sched.h> is included with __need_schedparam defined.
76177         * bits/sched.h [__need_schedparam]
76178         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76179         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76180         (__defined_schedparam): Define to 1.
76181         (__sched_param): New structure, identical to sched_param.
76182         (__need_schedparam): Undefine.
76183
76184 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76185
76186         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76187         (epoll_create1): Declare.
76188
76189         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76190
76191 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76192
76193         [BZ #7066]
76194         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76195         shifting retval into place.
76196
76197 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76198
76199         * nis/rpcsvc/nis.h: Update copyright notice.
76200         * nis/rpcsvc/nis.x: Likewise.
76201         * nis/rpcsvc/nis_callback.h: Likewise.
76202         * nis/rpcsvc/nis_callback.x: Likewise.
76203         * nis/rpcsvc/nis_object.x: Likewise.
76204         * nis/rpcsvc/nis_tags.h: Likewise.
76205         * nis/rpcsvc/yp.h: Likewise.
76206         * nis/rpcsvc/yp.x: Likewise.
76207         * nis/rpcsvc/ypupd.h: Likewise.
76208         * nis/yp_xdr.c: Likewise.
76209         * nis/ypupdate_xdr.c: Likewise.
76210
76211         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76212         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76213         (pmap_getport): Use __libc_rpc_getport.
76214         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76215         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76216         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76217
76218 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76219
76220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76221         fanotify_mark.
76222
76223 2010-08-27  Roland McGrath  <roland@redhat.com>
76224
76225         * sysdeps/i386/i686/multiarch/Makefile
76226         (CFLAGS-varshift.c): New variable.
76227
76228 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76229
76230         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76231         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76232
76233         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76234
76235         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76236
76237 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76238
76239         * sysdeps/x86_64/strlen.S: Unroll the loop.
76240         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76241         strlen-sse2 strlen-sse2-bsf.
76242         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76243         __strlen_no_bsf if bit_Slow_BSF is set.
76244         (__strlen_sse42): Removed.
76245         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76246         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76247
76248 2010-08-25  Roland McGrath  <roland@redhat.com>
76249
76250         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76251         * sysdeps/x86_64/multiarch/varshift.c: New file.
76252         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76253         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76254         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76255         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76256
76257 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76258
76259         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76260         strlen-sse2 strlen-sse2-bsf.
76261         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76262         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76263         (__strlen_sse2): Removed.
76264         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76265         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76266         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76267         bit_Slow_BSF for Atom.
76268         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76269         (index_Slow_BSF): Define.
76270         (HAS_SLOW_BSF): Define.
76271
76272 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76273
76274         [BZ #10851]
76275         * resolv/res_init.c (__res_vinit): When no server address at all
76276         is given default to loopback.
76277
76278 2010-08-24  Roland McGrath  <roland@redhat.com>
76279
76280         * configure.in: Remove config-name.h generation.
76281         * configure: Regenerated.
76282         * config-name.in: File removed.
76283         * scripts/config-uname.sh: New file.
76284         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76285         ($(objdir)config-name.h): New target.
76286
76287         * sunrpc/rpc_parse.h: Avoid nested comment.
76288
76289 2010-08-24  Richard Henderson  <rth@redhat.com>
76290             Ulrich Drepper  <drepper@redhat.com>
76291             H.J. Lu  <hongjiu.lu@intel.com>
76292
76293         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76294         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76295         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76296         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76297         _mm_alignr_epi8 with _mm_loadu_si128.
76298         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76299         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76300         (__m128i_shift_right): Removed.
76301         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76302         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76303         * sysdeps/x86_64/multiarch/varshift.h: New file.
76304         * sysdeps/x86_64/multiarch/varshift.S: New file.
76305
76306 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76307
76308         * configure.in: Move assembler checks to before sysdep dir checking.
76309
76310 2010-08-20  Petr Baudis  <pasky@suse.cz>
76311
76312         * LICENSES: Sync the sunrpc license.
76313
76314 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76315
76316         * sunrpc/auth_des.c: Update copyright notice once again.
76317         * sunrpc/auth_none.c: Likewise.
76318         * sunrpc/auth_unix.c: Likewise.
76319         * sunrpc/authdes_prot.c: Likewise.
76320         * sunrpc/authuxprot.c: Likewise.
76321         * sunrpc/bindrsvprt.c: Likewise.
76322         * sunrpc/clnt_gen.c: Likewise.
76323         * sunrpc/clnt_perr.c: Likewise.
76324         * sunrpc/clnt_raw.c: Likewise.
76325         * sunrpc/clnt_simp.c: Likewise.
76326         * sunrpc/clnt_tcp.c: Likewise.
76327         * sunrpc/clnt_udp.c: Likewise.
76328         * sunrpc/clnt_unix.c: Likewise.
76329         * sunrpc/des_crypt.c: Likewise.
76330         * sunrpc/des_soft.c: Likewise.
76331         * sunrpc/get_myaddr.c: Likewise.
76332         * sunrpc/getrpcport.c: Likewise.
76333         * sunrpc/key_call.c: Likewise.
76334         * sunrpc/key_prot.c: Likewise.
76335         * sunrpc/openchild.c: Likewise.
76336         * sunrpc/pm_getmaps.c: Likewise.
76337         * sunrpc/pm_getport.c: Likewise.
76338         * sunrpc/pmap_clnt.c: Likewise.
76339         * sunrpc/pmap_prot.c: Likewise.
76340         * sunrpc/pmap_prot2.c: Likewise.
76341         * sunrpc/pmap_rmt.c: Likewise.
76342         * sunrpc/rpc/auth.h: Likewise.
76343         * sunrpc/rpc/auth_unix.h: Likewise.
76344         * sunrpc/rpc/clnt.h: Likewise.
76345         * sunrpc/rpc/des_crypt.h: Likewise.
76346         * sunrpc/rpc/key_prot.h: Likewise.
76347         * sunrpc/rpc/netdb.h: Likewise.
76348         * sunrpc/rpc/pmap_clnt.h: Likewise.
76349         * sunrpc/rpc/pmap_prot.h: Likewise.
76350         * sunrpc/rpc/pmap_rmt.h: Likewise.
76351         * sunrpc/rpc/rpc.h: Likewise.
76352         * sunrpc/rpc/rpc_des.h: Likewise.
76353         * sunrpc/rpc/rpc_msg.h: Likewise.
76354         * sunrpc/rpc/svc.h: Likewise.
76355         * sunrpc/rpc/svc_auth.h: Likewise.
76356         * sunrpc/rpc/types.h: Likewise.
76357         * sunrpc/rpc/xdr.h: Likewise.
76358         * sunrpc/rpc_clntout.c: Likewise.
76359         * sunrpc/rpc_cmsg.c: Likewise.
76360         * sunrpc/rpc_common.c: Likewise.
76361         * sunrpc/rpc_cout.c: Likewise.
76362         * sunrpc/rpc_dtable.c: Likewise.
76363         * sunrpc/rpc_hout.c: Likewise.
76364         * sunrpc/rpc_main.c: Likewise.
76365         * sunrpc/rpc_parse.c: Likewise.
76366         * sunrpc/rpc_parse.h: Likewise.
76367         * sunrpc/rpc_prot.c: Likewise.
76368         * sunrpc/rpc_sample.c: Likewise.
76369         * sunrpc/rpc_scan.c: Likewise.
76370         * sunrpc/rpc_scan.h: Likewise.
76371         * sunrpc/rpc_svcout.c: Likewise.
76372         * sunrpc/rpc_tblout.c: Likewise.
76373         * sunrpc/rpc_util.c: Likewise.
76374         * sunrpc/rpc_util.h: Likewise.
76375         * sunrpc/rpcinfo.c: Likewise.
76376         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76377         * sunrpc/rpcsvc/key_prot.x: Likewise.
76378         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76379         * sunrpc/rpcsvc/mount.x: Likewise.
76380         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76381         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76382         * sunrpc/rpcsvc/rex.x: Likewise.
76383         * sunrpc/rpcsvc/rstat.x: Likewise.
76384         * sunrpc/rpcsvc/rusers.x: Likewise.
76385         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76386         * sunrpc/rpcsvc/spray.x: Likewise.
76387         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76388         * sunrpc/rtime.c: Likewise.
76389         * sunrpc/svc.c: Likewise.
76390         * sunrpc/svc_auth.c: Likewise.
76391         * sunrpc/svc_authux.c: Likewise.
76392         * sunrpc/svc_raw.c: Likewise.
76393         * sunrpc/svc_run.c: Likewise.
76394         * sunrpc/svc_simple.c: Likewise.
76395         * sunrpc/svc_tcp.c: Likewise.
76396         * sunrpc/svc_udp.c: Likewise.
76397         * sunrpc/svc_unix.c: Likewise.
76398         * sunrpc/svcauth_des.c: Likewise.
76399         * sunrpc/xcrypt.c: Likewise.
76400         * sunrpc/xdr.c: Likewise.
76401         * sunrpc/xdr_array.c: Likewise.
76402         * sunrpc/xdr_float.c: Likewise.
76403         * sunrpc/xdr_mem.c: Likewise.
76404         * sunrpc/xdr_rec.c: Likewise.
76405         * sunrpc/xdr_ref.c: Likewise.
76406         * sunrpc/xdr_sizeof.c: Likewise.
76407         * sunrpc/xdr_stdio.c: Likewise.
76408
76409         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76410         handling.
76411
76412 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76413
76414         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76415
76416 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76417
76418         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76419         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76420         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76421         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76422         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76423         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76424         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76425         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76426         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76427         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76428         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76429         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76430         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76431         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76432
76433 2010-07-26  Anton Blanchard  <anton@samba.org>
76434
76435         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76436         * malloc/arena.c (heap_trim): Likewise.
76437
76438 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76439
76440         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76441         here.  Not...
76442         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76443         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76444
76445 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76446
76447         * sysdeps/i386/elf/Makefile: New file.
76448
76449 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76450
76451         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76452         from fanotify_init.
76453         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76454         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76455
76456 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76457
76458         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76459         of strncasecmp_l.
76460         * sysdeps/multiarch/strcmp.S: Likewise.
76461
76462 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76463
76464         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76465         strncase_l-nonascii.
76466         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76467         Add strncase_l-ssse3.
76468         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76469         * sysdeps/x86_64/strcmp.S: Likewise.
76470         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76471         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76472         * sysdeps/x86_64/strncase.S: New file.
76473         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76474         * sysdeps/x86_64/strncase_l.S: New file.
76475         * string/Makefile (strop-tests): Add strncasecmp.
76476         * string/test-strncasecmp.c: New file.
76477
76478         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76479         warning.
76480
76481         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76482         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76483
76484 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76485
76486         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76487
76488 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76489
76490         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76491         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76492         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76493
76494 2010-05-01  Alan Modra  <amodra@gmail.com>
76495
76496         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76497         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76498         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76499         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76500         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76501         tidying.  Don't tail-call __sigjmp_save for static lib.
76502         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76503         save location.
76504         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76505         (CALL_MCOUNT): Add eh info, and nop after bl.
76506         (TAIL_CALL_SYSCALL_ERROR): New macro.
76507         (PSEUDO_RET): Use it.
76508         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76509         Correct save location of integer regs and cr.
76510         (_dl_profile_resolve): Correct cr save location.  Delete nops
76511         after bl when SHARED.  Reduce cfi size a little by better
76512         placement of cfi directives.
76513         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76514         make a stack frame.  Instead use parm save area as a temp.
76515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76516         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76518         Don't make a stack frame for parent, use parm save area.
76519         Increase child stack frame to 112 bytes.  Don't save unused reg,
76520         and adjust reg usage.  Set up cfi on error recovery and
76521         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76523         (__makecontext): Add dummy nop after jump to exit.
76524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76525         Use correct parm save area and cr save, reduce stack frame.
76526         Correct cfi for possible PSEUDO_RET frame setup.
76527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76528         Branch to local label emitted by PSEUDO_RET rather than
76529         __syscall_error.
76530
76531 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76532
76533         [BZ #11904]
76534         * locale/programs/locale.c (print_assignment): New function.
76535         (show_locale_vars): Use it.
76536
76537 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76538
76539         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76540         field.
76541         (struct statfs64): Likewise.
76542         (_STATFS_F_FLAGS): Define.
76543         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76544         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76545         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76546         (ST_VALID): Define locally.
76547         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76548         __statvfs_getflags, use the provided value.
76549         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76550         __ASSUME_STATFS_F_FLAGS.
76551
76552         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76553
76554         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76555         Add sys/fanotify.h.
76556         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76557         fanotify_mask for GLIBC_2.13.
76558         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76559         fanotify_init and fanotify_mark.
76560         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76561         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76562
76563         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76564         Add prlimit.
76565         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76566         prlimit64 for GLIBC_2.13.
76567         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76568         prlimit64.
76569         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76570         syscall.
76571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76572         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76573         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76574         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76575         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76576         add prlimit alias.
76577         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76578
76579         [BZ #11903]
76580         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76581         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76582
76583         * nss/Makefile: Add rules to build and run tst-nss-test1.
76584         * shlib-versions: Add entry for libnss_test1.
76585         * nss/nss_test1.c: New file.
76586         * nss/tst-nss-test1.c: New file.
76587
76588         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76589         (__nss_configure_lookup): Set appropriate entry in
76590         __nss_configure_lookup to true.
76591         * nss/nsswitch.h: Define enum with indeces of databases in
76592         databases and __nss_database_custom arrays.  Declare
76593         __nss_database_custom.
76594         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76595         to avoid using nscd when custom rules are installed.
76596         * nss/getXXbyYY_r.c: Likewise.
76597         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76598
76599         * nss/nss_files/files-parse.c: Whitespace fixes.
76600
76601 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76602
76603         [BZ #11883]
76604         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76605         * posix/fnmatch_loop.c: Likewise.
76606
76607 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76608
76609         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76610         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76611         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76612         * Versions.def [GLIBC_2.13]: Add.
76613
76614 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76615
76616         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76617         Also fail if tpwd after pwuid call is NULL.
76618
76619 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76620
76621         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76622         when converting to ms.
76623
76624 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76625
76626         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76627         EOPNOTSUPP errors with ENOTTY.
76628         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76629         EOPNOTSUPP errors with ENOTTY.
76630
76631 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76632
76633         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76634         Add strcasecmp_l-ssse3.
76635         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76636         strcasecmp.
76637         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76638         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76639         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76640
76641 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76642
76643         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76644
76645         * string/Makefile (strop-tests): Add strcasecmp.
76646         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76647         strcasecmp_l-nonascii.
76648         (gen-as-const-headers): Add locale-defines.sym.
76649         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76650         * sysdeps/x86_64/strcasecmp.S: New file.
76651         * sysdeps/x86_64/strcasecmp_l.S: New file.
76652         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76653         * sysdeps/x86_64/locale-defines.sym: New file.
76654         * string/test-strcasecmp.c: New file.
76655
76656         * string/test-strcasestr.c: Test both ends of the range of characters.
76657         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76658
76659 2010-07-29  Roland McGrath  <roland@redhat.com>
76660
76661         [BZ #11856]
76662         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76663
76664 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76665
76666         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76667         for ld.so.
76668
76669 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76670
76671         * manual/memory.texi (Malloc Tunable Parameters): Document
76672         M_PERTURB.
76673
76674 2010-07-26  Roland McGrath  <roland@redhat.com>
76675
76676         [BZ #11840]
76677         * configure.in (-fgnu89-inline check): Set and substitute
76678         gnu89_inline, not libc_cv_gnu89_inline.
76679         * configure: Regenerated.
76680         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76681
76682 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76683
76684         * string/test-strnlen.c: New file.
76685         * string/Makefile (strop-tests): Add strnlen.
76686         * string/tester.c (test_strnlen): Add a few more test cases.
76687         * string/tst-strlen.c: Better error reporting.
76688
76689         * sysdeps/x86_64/strnlen.S: New file.
76690
76691 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76692
76693         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76694         lower-latency instructions.
76695
76696 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76697
76698         * string/test-strcasestr.c: New file.
76699         * string/test-strstr.c: New file.
76700         * string/Makefile (strop-tests): Add strstr and strcasestr.
76701         * string/str-two-way.h: Don't undefine MAX.
76702         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76703
76704 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76705
76706         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76707         strcasestr-nonascii.
76708         (CFLAGS-strcasestr-nonascii.c): Define.
76709         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76710         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76711         Remove unused attribute.
76712
76713 2010-07-20  Roland McGrath  <roland@redhat.com>
76714
76715         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76716         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76717         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76718         like LD_HWCAP_MASK can disable hwcaps.
76719
76720 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76721
76722         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76723
76724 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76725
76726         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76727         call in strcasestr.
76728         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76729         __strcasestr_sse42_nonascii.
76730         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76731         strcasestr-nonascii.c.
76732         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76733
76734 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76735
76736         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76737         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76738         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76739         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76740
76741 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76742
76743         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76744         fcntl.
76745
76746 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76747
76748         [BZ #11577]
76749         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76750         dl_signal_cerror.
76751
76752 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76753
76754         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76755         _PC_PIPE_BUF using F_GETPIPE_SZ.
76756
76757 2010-07-05  Roland McGrath  <roland@redhat.com>
76758
76759         * manual/arith.texi (Rounding Functions): Fix rint description
76760         implicit in round description.
76761
76762 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76763
76764         * elf/Makefile: Fix linking for a few tests to make recent linker
76765         happy.
76766
76767 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76768
76769         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76770         $(common-objpfx)libc_nonshared.a.
76771
76772 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76773
76774         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76775         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76776         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76777         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76778         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76779         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76780         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76781         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76796         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76797         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76798         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76799         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76800         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76801         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76802         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76803         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76804         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76805         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76806         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76807         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76822
76823 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76824
76825         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76826         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76827         * string/memmove.c (memmove): Renamed to ...
76828         (MEMMOVE): ...this.  Default to memmove.
76829         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76830         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76831         (END_CHK): Define.
76832         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76833         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76834         mempcpy-ssse3-back memmove-ssse3-back.
76835         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76836         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76837         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76838         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76839         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76840         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76841         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76842         * sysdeps/x86_64/multiarch/memmove.c: New file.
76843         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76844         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76845         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76846         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76847         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76848         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76849         Define.
76850         (index_Fast_Copy_Backward): Define.
76851         (HAS_ARCH_FEATURE): Define.
76852         (HAS_FAST_REP_STRING): Define.
76853         (HAS_FAST_COPY_BACKWARD): Define.
76854
76855 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76856
76857         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76858         Restore proper fallback handling.
76859
76860 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76861
76862         [BZ #11701]
76863         * posix/group_member.c (__group_member): Correct checking loop.
76864
76865         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76866         OOM in getpwuid_r correctly.  Return error number when the caller
76867         should return, otherwise -1.
76868         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76869         call returning > 0 value.
76870         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76871
76872 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76873
76874         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76875         libc_nonshared.a from targets in modules-names.
76876
76877 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76878
76879         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76880         requires it.
76881
76882 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76883
76884         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76885         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76886         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76887         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76888
76889 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76890
76891         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76892
76893 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76894
76895         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76896         and F_GETPIPE_SZ.
76897         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76898         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76899         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76900         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76901         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76902         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76903
76904 2010-06-14  Roland McGrath  <roland@redhat.com>
76905
76906         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76907
76908 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76909
76910         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76911         __REDIRECT followed by __THROW.
76912         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76913         * posix/getopt.h (getopt): Likewise.
76914
76915 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76916
76917         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76918         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76919         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76920         in AT_FLAGS.
76921         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76922         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76923
76924 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76925
76926         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76927
76928 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76929
76930         [BZ #11640]
76931         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76932         Properly check family and model.
76933
76934 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76935
76936         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76937
76938 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76939
76940         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76941
76942 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76943
76944         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76945         symbol reference.
76946
76947 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76948
76949         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76950         symbol reference.
76951
76952 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76953
76954         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76955         and internal_recvmmsg.
76956         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76957         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76958         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76959         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76960
76961         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76962         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76963         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76964
76965 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76966
76967         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76968
76969 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76970
76971         POWER7 optimizations.
76972         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76973         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76974
76975 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76976
76977         * version.h: Update for 2.13 development version.
76978
76979 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76980
76981         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76982         exceptions.  Return 0.
76983
76984 2010-05-07  Roland McGrath  <roland@redhat.com>
76985
76986         * elf/ldconfig.c (main): Add a const.
76987
76988 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76989
76990         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76991         (args_options): Add no-idn option.
76992         (ahosts_keys_int): Add idn_flags to ai_flags.
76993         (parse_option): Handle 'i' option to clear idn_flags.
76994
76995         * malloc/malloc.c (_int_free): Possible race in the most recently
76996         added check.  Only act on the data if no current modification
76997         happened.
76998
76999 See ChangeLog.17 for earlier changes.